Skip to content

Commit 356c8fd

Browse files
committed
M2354: Add serial_tx_empty(...)
Enable serial sync with the below PR: #14600
1 parent fd8ac31 commit 356c8fd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

targets/TARGET_NUVOTON/TARGET_M2354/serial_api.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,11 @@ int serial_writable(serial_t *obj)
508508
return ! UART_IS_TX_FULL(((UART_T *) NU_MODBASE(obj->serial.uart)));
509509
}
510510

511+
int serial_tx_empty(serial_t *obj)
512+
{
513+
return UART_IS_TX_EMPTY(((UART_T *) NU_MODBASE(obj->serial.uart)));
514+
}
515+
511516
void serial_pinout_tx(PinName tx)
512517
{
513518
pinmap_pinout(tx, PinMap_UART_TX);

0 commit comments

Comments
 (0)