Hi,
I have a question about the UART driver library.
In the receive interrupt, the interrupt factor is cleared and the UART Error is acquired as described below.
// Clear interrupt factor
UARTIntClear (m_ui32UartModule [enPortId], ui32IntStatus);
// Get UART Error
ui32UartError = UARTRxErrorGet (m_ui32UartModule [enPortId]);
After clearing the interrupt factor, when trying to get a UART error, the UARTRSR value was read as 0x00.
(Originally, 0x01 should be read by the value of UARTRSR, but it has probably been cleared by UARTIntClear)
Is it a specification that UARTRSR is cleared at the same time when the interrupt factor is cleared?
When I set the breakpoint with UARTIntClear () and checked the value of UARTRSR, I got 0x01 (before it was cleared).
Thanks,
Koki