X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=test_src%2Fuart_i.h;h=097cfcc988403f007ee1805701815ab9273f1d5c;hp=b9a65c0ba5694b71bc15e052a041373d5885574e;hb=7edc452f9303d020656a094a465a3f45cacf8587;hpb=fdbda6486df88be6ac2ba948f21e84c396499535 diff --git a/test_src/uart_i.h b/test_src/uart_i.h index b9a65c0..097cfcc 100644 --- a/test_src/uart_i.h +++ b/test_src/uart_i.h @@ -115,7 +115,7 @@ typedef struct{ #endif #if UART1_SWFLOWCTRL volatile uint8_t txon; /**< flag indicating if we are allowed to send data */ - volatile uint8_t rxon; /**< flag indicating if we have send an \a XOFF */ + volatile uint8_t rxon; /**< flag indicating if we have send a XOFF */ #endif } uart1_ctx_t; @@ -156,6 +156,15 @@ uint16_t uart0_getc(void); */ uint8_t uart0_dataavail(void); +/** + * \brief flushes the internal transmit buffer. + * + * This function function waits until all data was send (the transmit-buffer + * does not contain any data). + */ +void uart0_flush(void); + + #if UART0_HOOK /** * \brief sets the hook for uart0.