Thank you for the quick response.  I can't seem to get the sample character driver to load.  I tried using the precompiled driver and I compiled my own, but each time I try to load the module I get the following error:

# insmod char-driver.ko
insmod: cannot insert `char-driver.ko': Unknown symbol in module (-1): No such file or directory
 
Any ideas?

Thanks again

-Richard

On 6/27/06, Chris Danis <cgd3@cornell.edu> wrote:
On 6/27/06, Richard Marchant <rmarchant@gmail.com> wrote:
> I recently got nano-X running on the gumstix, but now I need a way to
> control the interface.  I have a custom-made daughterboard with a
> directional pad wired up to GPIO, but I'm not sure how  to trigger an event
> when a button is pushed.  Can anyone give me some pointers on accessing the
> GPIO information, or for example triggering a program to run when a button
> is pushed?  I eventually want to be able to navigate thru a web-interface
> with this directional pad.  Thank you.

Richard,

Your best bet is probably to start with David Hylands' sample
character driver.  His code (if I recall correctly) watches for edge
transitions on a single GPIO pin and, when loaded into the kernel,
will allow userspace applications to listen for these events.

http://www.gumstix.org/tikiwiki/tiki-index.php?page=Kernel-Programming

Obviously you'll have to extend this a bit to do what you want, but it
should provide a good starting point.

best,
-chris

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users