[En-Nut-Discussion] Re: a yielding I/O flush
JasonG
jas_g at yahoo.com
Thu Jan 2 23:45:52 CET 2003
Found it, I'll answer myself:
#include <sys/uart.h>
int UartAvrFlush ( NUTDEVICE * dev )
Wait for output buffer empty.
If the output buffer contains any data, the calling thread is suspended
until all data has been transmitted.
Parameters:
dev Indicates the UART device.
Returns:
0 on success, -1 otherwise.
--- JasonG <jas_g at yahoo.com> wrote:
> 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.
=====
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