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.
by checking PRIMASK register, you can know whether the interrupt is enable or disable..
Best regards,
Yasuhiko Koumoto.