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:c1_hardware_irq [2016/04/26 11:51]
charles.park [Hardware GPIO-IRQ]
en:c1_hardware_irq [2016/06/09 10:15]
brian.kim [Usage]
Line 9: Line 9:
 ===== Usage ===== ===== Usage =====
 To use the GPIO Interrupt in the User space, you must export the GPIO and add the Trigger option in Edge parameter.\\ To use the GPIO Interrupt in the User space, you must export the GPIO and add the Trigger option in Edge parameter.\\
- 
-GPIO SYSFS node is accessible via **/​sys/​class/​aml_gpio/​**. The access method is exactly same as /​sys/​class/​gpio.\\ 
  
 === GPIO Export === === GPIO Export ===
  
-echo [GPIO Number(Refer **[[en:​c1_hardware#​expansion_connectors]]** )] > /sys/class/aml_gpio/export+echo [GPIO Number(Refer **[[en:​c1_hardware#​expansion_connectors]]** )] > /sys/class/gpio/export
  
 e.g) GPIOY.BIT3 Export (Pin Number 7) e.g) GPIOY.BIT3 Export (Pin Number 7)
  
 <​code>​ <​code>​
-echo 83 > /sys/class/aml_gpio/export+echo 83 > /sys/class/gpio/export
 </​code>​ </​code>​
  
Line 33: Line 31:
  
 == Run == == Run ==
 +
 +"​Usage:​ aml_gpio_irq [GPIO Number]"​
  
 <​code>​ <​code>​
-sudo aml_gpio_irq_test ​[GPIO Number]+sudo aml_gpio_irq_test ​83
 </​code>​ </​code>​
  
Line 55: Line 55:
  
 //​[*]-------------------------------------------------------------------------[*] //​[*]-------------------------------------------------------------------------[*]
-#define SYSFS_GPIO_DIR ​ "/​sys/​class/​aml_gpio"+#define SYSFS_GPIO_DIR ​ "/​sys/​class/​gpio"
 #define POLL_TIMEOUT ​   (3 * 1000) /* 3 seconds */ #define POLL_TIMEOUT ​   (3 * 1000) /* 3 seconds */
 #define MAX_BUF ​        64 #define MAX_BUF ​        64
en/c1_hardware_irq.txt ยท Last modified: 2016/06/09 10:15 by brian.kim
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0