M2354: Add serial_tx_empty(...)

Enable serial sync with the below PR:
https://github.com/ARMmbed/mbed-os/pull/14600
pull/14441/head
Chun-Chieh Li 2021-04-29 14:33:47 +08:00
parent fd8ac31537
commit 356c8fdeb3
1 changed files with 5 additions and 0 deletions

View File

@ -508,6 +508,11 @@ int serial_writable(serial_t *obj)
return ! UART_IS_TX_FULL(((UART_T *) NU_MODBASE(obj->serial.uart)));
}
int serial_tx_empty(serial_t *obj)
{
return UART_IS_TX_EMPTY(((UART_T *) NU_MODBASE(obj->serial.uart)));
}
void serial_pinout_tx(PinName tx)
{
pinmap_pinout(tx, PinMap_UART_TX);