Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:c2_gpio_pps [2016/06/22 08:41] mdrjr |
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) that's GPIO 238 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]]. \\ |
Check the pin number and export number to use on gpio_pin | 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 |
echo pps-gpio > /etc/modules-load.d/pps-gpio.conf | echo pps-gpio > /etc/modules-load.d/pps-gpio.conf | ||
echo options pps-gpio gpio_pin=238 > /etc/modprobe.d/pps-gpio.conf | echo options pps-gpio gpio_pin=238 > /etc/modprobe.d/pps-gpio.conf | ||
modprobe pps-gpio | 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-69 or greater. | + | Note this example will only run on kernel 3.14.65-70 or higher. |