diff options
-rw-r--r-- | zephyr/shim/src/console.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/zephyr/shim/src/console.c b/zephyr/shim/src/console.c index 241c6f104b..ae3ae51deb 100644 --- a/zephyr/shim/src/console.c +++ b/zephyr/shim/src/console.c @@ -226,10 +226,16 @@ void uart_write_char(char c) void uart_flush_output(void) { shell_process(shell_zephyr); + uart_tx_flush(); } void uart_tx_flush(void) { + const struct device *dev = + device_get_binding(CONFIG_UART_SHELL_ON_DEV_NAME); + + while (!uart_irq_tx_complete(dev)) + ; } int uart_getc(void) |