We're no longer updating This wiki!!

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:c2_gpio_pps [2016/06/13 16:54]
odroid
en:c2_gpio_pps [2017/04/15 10:00]
odroid
Line 1: Line 1:
 ====== GPIO PPS Client ====== ====== GPIO PPS Client ======
  
-In this example I'​ve ​choose ​pin #12 (GPIOX.BIT10) to be my PPS input. You can use any other GPIO [[en:​c2_hardware#​expansion_connectors|Here]]. \\ +In this example I'​ve ​chosen ​pin #12 (GPIOX.BIT10) ​that's GPIO 238 to be my PPS input. You can use any other GPIO [[en:​c2_hardware#​expansion_connectors|Here]]. \\ 
-GPIOX.BIT10 is 102 in decimal ​and it is 0x66 in hex-decimal.+Check the pin number ​and export number to use on gpio_pin 
 + 
 +Thanks to dan_d for providing kernel patchs + forum info. 
 +[[http://​forum.odroid.com/​viewtopic.php?​f=136&​t=21733&​p=148292#​p148292|Forum Thread]]
  
 == Enabling GPIO PPS Client == == Enabling GPIO PPS Client ==
 <​code>​ <​code>​
 sudo -s sudo -s
-apt-get install ​device-tree-compiler ​pps-tools +apt-get install pps-tools 
-fdtput ​-/media/boot/​meson64_odroidc2.dtb /pps +echo pps-gpio > /etc/modules-load.d/pps-gpio.conf 
-fdtput ​-t s /media/boot/​meson64_odroidc2.dtb /pps compatible "pps-gpio+echo options pps-gpio gpio_pin=238 > /etc/modprobe.d/pps-gpio.conf 
-fdtput -t x /​media/​boot/​meson64_odroidc2.dtb /pps gpios 0x1e, 0x66, 0x1+modprobe ​pps-gpio
 </​code>​ </​code>​
- 
-Reboot the board to test.  
  
  
Line 31: Line 32:
 </​code>​ </​code>​
  
-Note this example will only run on kernel 3.14.65-67 or greater.+Note this example will only run on kernel 3.14.65-70 or higher.
en/c2_gpio_pps.txt · Last modified: 2017/04/15 10:00 by odroid
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0