Add check for TXRDY mask

pull/1/head
Felix Kopp 4 years ago
parent e2c2d84744
commit fe87a65ded
No known key found for this signature in database
GPG Key ID: C478BA0A85F75728

@ -74,8 +74,11 @@ void arch_serial_exit(struct serial_interface *interface)
void arch_serial_notify(struct serial_interface *interface)
{
/* unmask the TXRDY interrupt */
REG_UART_IER = REG_UART_IER_TXRDY_MASK;
/* if the TXRDY event is masked ... */
if ((REG_UART_IMR & REG_UART_IMR_TXRDY_MASK) == 0) {
/* ... unmask it */
REG_UART_IER = REG_UART_IER_TXRDY_MASK;
}
}
void irq_uart(void)

Loading…
Cancel
Save