Hi everyone.
I need to learn about interrupts. How can I do an interrupt when data is receive to RPi ? I'm using Raspbian.
Has any idea about it?
You can use pthreads - create a thread that simply waits on data being avalable at the serial port and it will wake up when data is there - that's the easiest you'll get to an interrupt in userland under Linux. When the thread wakes up, you can then process the data, etc.eqooo wrote:Hi everyone.
I need to learn about interrupts. How can I do an interrupt when data is receive to RPi ? I'm using Raspbian.
Has any idea about it?