[sw/lib] minor edits
Some checks are pending
Processor / processor simulation (push) Waiting to run

This commit is contained in:
stnolting 2025-04-20 20:03:22 +02:00
parent 1eab05070d
commit 21436a8d5b

View file

@ -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;
}
}