Revert "Uart tx irq handling fix " (issue #554)

This reverts commit 6885770e47.
This commit is contained in:
Gwenhael Goavec-Merou 2024-04-16 14:01:38 +02:00
parent 3978af9c39
commit 22f4637570
1 changed files with 1 additions and 1 deletions

View File

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