mirror of
https://github.com/stnolting/neorv32.git
synced 2025-04-23 21:57:33 -04:00
This commit is contained in:
parent
1eab05070d
commit
21436a8d5b
1 changed files with 6 additions and 1 deletions
|
@ -254,7 +254,12 @@ int neorv32_uart_tx_busy(neorv32_uart_t *UARTx) {
|
|||
**************************************************************************/
|
||||
int neorv32_uart_tx_free(neorv32_uart_t *UARTx) {
|
||||
|
||||
return (int)~(UARTx->CTRL & (1<<UART_CTRL_TX_FULL));
|
||||
if (UARTx->CTRL & (1<<UART_CTRL_TX_FULL)) {
|
||||
return 0;
|
||||
}
|
||||
else {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue