All of lore.kernel.org
 help / color / mirror / Atom feed
* GPIO interrupt reading timeout
@ 2021-02-28 12:17 Gabriel Dinse
  2021-02-28 13:08 ` Greg Gallagher
  0 siblings, 1 reply; 3+ messages in thread
From: Gabriel Dinse @ 2021-02-28 12:17 UTC (permalink / raw)
  To: xenomai

Hello,

I currently have a loop rt_task for reading interrupts on a GPIO pin of 
my raspberry pi.

I'm using:
ret = read(pin, &value, sizeof(value));

but I don't want it to block forever, because my task should exit when 
there are not more interrupts to read. Can I use "select" for 
introducing a reading timeout on my loop and yet being "real-time"?

Thank you,
Gabriel Dinse


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-02-28 13:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-28 12:17 GPIO interrupt reading timeout Gabriel Dinse
2021-02-28 13:08 ` Greg Gallagher
2021-02-28 13:16   ` Gabriel Dinse

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.