Hi,
I would like to have an interrupt driven RS232 driver - does anyone have
code they would like to share? I have looked at the example in Rob
Krten’s book (Chapter 4), but am wondering if this hasn’t already been
done many times by better programmers than myself…
The devc-8250 is most likely interrupt driven.
Do you want to replace this?
Bruce Davis wrote:
Hi,
I would like to have an interrupt driven RS232 driver - does anyone have
code they would like to share? I have looked at the example in Rob
Krten’s book (Chapter 4), but am wondering if this hasn’t already been
done many times by better programmers than myself…
I need to get a pulse or message or something when a character (or terminator)
arrives so I don’t need to poll. I don’t see how to do this with read() or
readcond().
Alex wrote:
The devc-8250 is most likely interrupt driven.
Do you want to replace this?
Bruce Davis wrote:
Hi,
I would like to have an interrupt driven RS232 driver - does anyone have
code they would like to share? I have looked at the example in Rob
Krten’s book (Chapter 4), but am wondering if this hasn’t already been
done many times by better programmers than myself…
Previously, Bruce Davis wrote in qdn.public.qnxrtp.os:
I need to get a pulse or message or something when a character (or terminator)
arrives so I don’t need to poll. I don’t see how to do this with read() or
readcond().
Here are two approaches.
Have a thread read the device, and when it receives a char, send the char
in a pulse to the main process.
Previously, Bruce Davis wrote in qdn.public.qnxrtp.os:
I need to get a pulse or message or something when a character (or
terminator)
arrives so I don’t need to poll. I don’t see how to do this with read()
or
readcond().
Here are two approaches.
Have a thread read the device, and when it receives a char, send the
char
in a pulse to the main process.