You are quite right. Checking the UART state will also clear (some) interrupt causes.
Thank you Bob.
Which are the flags I could polling to catch "TX FIFO empty" and "RX FIFO not empty" events ?
I want to be able to distinguish between the two events and so do the corresponding task. I mean, U1_UartGetChar(); if "RX FIFO not empty" interrupt happens and U1_UartPutChar(); if it catches "TX FIFO empty".
1 of 1 people found this helpful
Look into datasheet for uint32 SCB_GetTxInterruptSource(void) starting at page 189.