I see the ARM has a non-maskable interrupt (NMI). Is there an easy way to mask all maskable interrupts, like a single flag or bit?
解決済! 解決策の投稿を見る。
Hi Brent,
yes, the 'I' bit in the PRIMASK ARM core register. Below how to enable/disable all maskable interrupts:
#define DisableInterrupts() | __asm volatile("cpsid i") | |
#define EnableInterrrupts() | __asm volatile("cpsie i") |
I hope this helps,
Erich
Hi Brent,
yes, the 'I' bit in the PRIMASK ARM core register. Below how to enable/disable all maskable interrupts:
#define DisableInterrupts() | __asm volatile("cpsid i") | |
#define EnableInterrrupts() | __asm volatile("cpsie i") |
I hope this helps,
Erich