From: Nik M. <nm...@ra...> - 2007-01-11 14:00:38
|
On 1/10/07, Rob Barnes <ro...@gm...> wrote: > > Two Questions: > > > My program needs to quickly respond to changes on the GPIO pins (push buttons). I'm using the gpio-event driver posted the wiki to monitor the GPIO events. In my program I run a separate thread that does a blocking read on /proc/gpio-event, this causes the thread to stall until an interrupt occurs. Is this a good way of monitoring GPIO interrupts in a multi-threaded C program on the gumstix? Is there a better way of doing this? > If your thread only responds to gpio events, is it a problem for the thread to stall? I run an app in exactly the same manner, and it works like a champ. > > > Thanks. > > -RobB > > > |