This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to detect interrupt enabled flag in Cortex-M4 processor?

Hello,

I wanna know if global interrupts are enabled or not.

In ARM compiler,__disable_irq() function returns 0 if interrupts were disabled or not, but on GCC based compiler, this function is declared as void.

Which register should I take a look for bit reading? I was looking at SCB section but did not succedded at all.

Please help here.

Have a nice day.

Parents Reply Children
No data