X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=test_src%2Fuart_i.h;h=9be6e00d670913ffa8b07862a331da21f792b4b2;hp=b9a65c0ba5694b71bc15e052a041373d5885574e;hb=4b5da1dc27a791b5c448274a3db09cd035b33493;hpb=b246a2a0589f234db6247255555df98f4c281c41 diff --git a/test_src/uart_i.h b/test_src/uart_i.h index b9a65c0..9be6e00 100644 --- a/test_src/uart_i.h +++ b/test_src/uart_i.h @@ -1,7 +1,7 @@ /* uart_i.h */ /* This file is part of the AVR-uart_ni. - Copyright (C) 2009 Daniel Otte (daniel.otte@rub.de) + Copyright (C) 2006-2015 Daniel Otte (bg@nerilex.org) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,7 +18,7 @@ */ /** * \file uart_i.h - * \email daniel.otte@rub.de + * \email bg@nerilex.org * \author Daniel Otte * \date 2009-07-24 * \license GPLv3 or later @@ -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.