next up previous contents index
Next: 10.13.12 com_cons_enable_receive_interrupt: enable receive Up: (X86 PC) Base Environment: Previous: 10.13.10 com_cons_putchar: write a

10.13.11 com_cons_flush: delay until all output is flushed on a serial line

   

SYNOPSIS

#include <oskit/x86/pc/com_cons.h>

void com_cons_flush(int port);

DESCRIPTION

Waits until the transmit FIFOs are empty on the serial port specified. This is useful as it allows the programmer to know that the message sent out has been received. This is necessary before resetting the UART or changing settings if it is desirable for any data already ``sent'' to actually be transmitted.

PARAMETERS

port
COM port to flush. Must be 1, 2, 3 or 4.

DEPENDENCIES

inb
10.3.7



University of Utah Flux Research Group