From: Addison \Nik\ M. <nm...@ra...> - 2006-08-24 19:40:15
|
On Thu, 2006-08-24 at 14:35 -0500, Addison "Nik" Martin wrote: > On Thu, 2006-08-24 at 11:09 -0700, Dave Hylands wrote: > > Hi Addison, > >=20 >=20 > >=20 > > The Kernel Programming page > > http://docwiki.gumstix.org/Kernel_programming > > has a driver that will do most of what you want. > >=20 > > Perhaps its time to add the ability to monitor multiple GPIOs and have > > the user mode program call a script with each event that occurs. > >=20 > I think that may be desirable. I got the module built and loaded, and > it was set to monitor GPIO 60, as defined in the source. I see I'm able > to manipulate this via /proc/sample somehow. Cat-ing /proc/sample > returns nothing, in fact cat blocks for some reason. I tried to echo > "gpio-irq 77" into /proc/sample, but that didn't work so well. Is this > how I change the GPIO to monitor? never mind, I'm an idiot. I was looking at the sample node in /dev, not /proc |