2020-01-01 10:15 PM
2020-01-01 10:37 PM
It will be pending until interrupts are enabled again.
2020-01-01 10:25 PM
Disabling interrupt should intuitively just be a AND mask, because to clear any pending interrupt would require ti kling perupheral registers.
A side note: don t disable / enable interrupts only. If the interrupts were already disabled by higher level function, the code will enable them wrongly. Push the core register controlling interrupt enable in the stack, then disable, do the deeds and pop the register to restore previous setting. The easiest way to see the side effect would be to think recurse function.
2020-01-01 10:33 PM
Hello, ST experts
Thanks for your quick reply. Sorry I really do not quite understand what you mean? What is "ti kling"? And what is "perupheral"?
Back to my question, what happens if an interrupt is raised when interrupt is disabled?
Best Regards
Yang
2020-01-01 10:37 PM
It will be pending until interrupts are enabled again.