Hi team,
I'm working on developing code for an I2C slave that triggers an interrupt once the FIFO is full.
I am successfully entering my ISR but I am having trouble clearing the interrupt bit. Once I exit my ISR it returns to it immediately afterwards.
Here is what I have in my main to enable the interrupt:
I2CSlaveIntEnableEx(I2C0_BASE, I2C_SLAVE_INT_RX_FIFO_FULL);
And here is what I have in my ISR to clear the interrupt:
I2CSlaveIntClearEx(I2C0_BASE, I2C_SLAVE_INT_RX_FIFO_FULL);
Looking at the I2C registers, I see that the RXFFRIS bit is not cleared in the I2CSRIS register.
Regards,
Akash Patel