diff options
-rw-r--r-- | chip/mt_scp/uart.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/chip/mt_scp/uart.c b/chip/mt_scp/uart.c index 73a284319c..94f78748dd 100644 --- a/chip/mt_scp/uart.c +++ b/chip/mt_scp/uart.c @@ -15,7 +15,6 @@ /* Console UART index */ #define UARTN CONFIG_UART_CONSOLE -#define UART_WAIT_US 50 #define UART_IDLE_WAIT_US 500 static uint8_t uart_done, tx_started; @@ -58,7 +57,7 @@ void uart_tx_stop(void) void uart_tx_flush(void) { while (!(UART_LSR(UARTN) & UART_LSR_TEMT)) - usleep(UART_WAIT_US); + ; } int uart_tx_ready(void) @@ -76,7 +75,7 @@ int uart_rx_available(void) void uart_write_char(char c) { while (!uart_tx_ready()) - usleep(UART_WAIT_US); + ; UART_DATA(UARTN) = c; } |