mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +03:00
mode_cardemu: mask the USART status register with mask register
otherwise it might be reacting on stale bits in CSR, which actually are no longer able to cause any interrupts.
This commit is contained in:
@@ -145,7 +145,7 @@ void usart_irq_rx(uint8_t uart)
|
||||
if (uart == 1)
|
||||
ci = &cardem_inst[1];
|
||||
#endif
|
||||
csr = usart->US_CSR;
|
||||
csr = usart->US_CSR & usart->US_IMR;
|
||||
|
||||
if (csr & US_CSR_RXRDY) {
|
||||
byte = (usart->US_RHR) & 0xFF;
|
||||
|
||||
Reference in New Issue
Block a user