Merge pull request #1919 from nrndda/uart_tx_irq_handling_fix

Uart tx irq handling fix
This commit is contained in:
enjoy-digital 2024-04-12 10:45:12 +02:00 committed by GitHub
commit 2d1dd45fd2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -49,11 +49,11 @@ void uart_isr(void)
}
if(stat & UART_EV_TX) {
uart_ev_pending_write(UART_EV_TX);
while((tx_consume != tx_produce) && !uart_txfull_read()) {
uart_rxtx_write(tx_buf[tx_consume]);
tx_consume = (tx_consume + 1) & UART_RINGBUFFER_MASK_TX;
}
uart_ev_pending_write(UART_EV_TX);
}
}