serial: ttyS0 - how to use the IRQ ?hi!
hi!
i've written a program to send and read raw data through serial port (/dev/ttyS0). it works fine, but during the read() i have to poll until a get the expected amount of bytes in the buffer. i would like to use the IRQ to wake up my read() process when the buffer is ready to be read. i would appreciate any suggestions. thanks, cardias. |
Can't use IRQ's in UNIX/Linux (unless you're doing kernel programming).
Check these pages for alternatives: http://www.easysw.com/~mike/serial/ http://www.stokely.com/unix.serial.port.resources/ |
All times are GMT -5. The time now is 02:01 AM. |