Difference between revisions of "ECE497 Notes on gpio-keys"

From eLinux.org
Jump to: navigation, search
m (Initial page)
 
(Added notes on timers)
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[Category:ECE497]]
+
[[Category:ECE497 |Notes]]
 
{{YoderHead}}
 
{{YoderHead}}
  
 +
== Timers ==
 +
Here's some leads on using timers.
 +
 +
[https://groups.google.com/forum/?fromgroups#!topic/beagleboard/lCagocQaKiY%5B1-25%5D kunen.org]
 +
 +
== gpio-keys ==
 
I'm trying to figure out how to access the USER button on the Beagle xM.  It looks like the new versions of the SD image use gpio-keys to manage gpio 4 so you can't access it via
 
I'm trying to figure out how to access the USER button on the Beagle xM.  It looks like the new versions of the SD image use gpio-keys to manage gpio 4 so you can't access it via
 
  beagle$ '''cd /sys/class/gpio'''
 
  beagle$ '''cd /sys/class/gpio'''

Revision as of 19:17, 13 August 2012

thumb‎ Embedded Linux Class by Mark A. Yoder


Timers

Here's some leads on using timers.

kunen.org

gpio-keys

I'm trying to figure out how to access the USER button on the Beagle xM. It looks like the new versions of the SD image use gpio-keys to manage gpio 4 so you can't access it via

beagle$ cd /sys/class/gpio
beagle$ echo 4 > export
bash: echo: write error: Device or resource busy

You need to access it via evtest, but I don't see a way to do it via the shell.

References

  • Here Jason suggests looking at evtest.c to learn how to access the USER button.
  • Here are some details on evtest.




thumb‎ Embedded Linux Class by Mark A. Yoder