diff options
Diffstat (limited to 'chip/npcx/uart.c')
-rw-r--r-- | chip/npcx/uart.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chip/npcx/uart.c b/chip/npcx/uart.c index 5b47110835..b9f06f42dc 100644 --- a/chip/npcx/uart.c +++ b/chip/npcx/uart.c @@ -66,6 +66,9 @@ void uart_tx_flush(void) /* Wait for transmit FIFO empty */ while (!(NPCX_UICTRL & 0x01)) ; + /* Wait for transmitting completed */ + while (NPCX_USTAT & 0x40) + ; } int uart_tx_ready(void) @@ -101,9 +104,6 @@ void uart_write_char(char c) ; NPCX_UTBUF = c; -#ifdef CONFIG_LOW_POWER_IDLE - clock_refresh_console_in_use(); -#endif } int uart_read_char(void) |