[En-Nut-Discussion] a yielding I/O flush
JasonG
jas_g at yahoo.com
Thu Jan 2 23:24:50 CET 2003
What's a simple way to do a flush (either NutPrintFlush,
NutIfStreamFlush, or NutDeviceWrite(arg, 0, 0) ) that yields until the
transmission buffer is absolutely empty? I didn't want to play with
the UART Device Driver directly unless this is necessary.
This is really important in situations like multiprocessor
communication mode where we need to transmit some bytes with certain
other settings intact.
I can see how we might use NutEventWait() on a queue and then post to
this queue when the transmitter is clean. But is there a way to
specify an additional function to call for the transmitter complete
Interrupt that inside of here we could post the event?
Thanks for advice or ideas,
=====
JasonG
jas_g at yahoo.com
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
More information about the En-Nut-Discussion
mailing list