how to check if global interrupts are enabled
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2016-01-20 7:53 AM
Posted on January 20, 2016 at 16:53
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-m4
Labels:
- Labels:
-
Interrupt
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2016-01-20 8:56 AM
Posted on January 20, 2016 at 17:56
Found it:
if (__get_PRIMASK() & 0x01) //Global interrupts disabled