2016-01-20 07:53 AM
Hi all,
How can I check if interrupts are enabled (i.e. find out if __enable_irq() or __disable_irq() were previously called)? I use STM32L4 (M4) Thank you #interrupts #arm-cortex-m42016-01-20 08:56 AM
Found it:
if (__get_PRIMASK() & 0x01) //Global interrupts disabled