diff options
Diffstat (limited to 'chip/g/uart.c')
-rw-r--r-- | chip/g/uart.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chip/g/uart.c b/chip/g/uart.c index 8d0e39f868..d48b6e3d9b 100644 --- a/chip/g/uart.c +++ b/chip/g/uart.c @@ -21,6 +21,9 @@ int uart_init_done(void) void uart_tx_start(void) { + if (!uart_init_done()) + return; + /* If interrupt is already enabled, nothing to do */ if (GR_UART_ICTRL(0) & GC_UART_ICTRL_TX_MASK) return; |