X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=test_src%2Fuart_i.c;h=539dc222c81d72d1d145ec73cce4a91750f4060a;hb=6095187b080b960d111a54f18a3b2da788d2d59d;hp=1eb421edd6fcce62a0bb9c64c9ba07bba60f2f5f;hpb=a5fa5eb95b79e98e260365878fc9338ccba3fba9;p=arm-crypto-lib.git diff --git a/test_src/uart_i.c b/test_src/uart_i.c index 1eb421e..539dc22 100644 --- a/test_src/uart_i.c +++ b/test_src/uart_i.c @@ -272,6 +272,8 @@ void uart_flush(uint8_t uartno){ if(uartno>UART_MAX){ return; } + while(circularbytebuffer_cnt(&(uart_tx_buffer[uartno]))) + ; while((HW_REG(uart_base[uartno]+UARTCTL_OFFSET)&_BV(UART_EOT)) == 0) ; }