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

Reply via email to