|
PebbleOS
|
Exception and interrupt-mask state of the CPU. More...
Functions | |
| static bool | mcu_state_is_isr (void) |
| Check whether the CPU is executing an exception handler. | |
| static uint32_t | mcu_state_get_isr_priority (void) |
| Get the priority of the exception handler being executed. | |
| bool | mcu_state_are_interrupts_enabled (void) |
| Check whether interrupts are globally enabled. | |
Exception and interrupt-mask state of the CPU.
On host builds (unit tests) code never runs in an exception handler.
| bool mcu_state_are_interrupts_enabled | ( | void | ) |
Check whether interrupts are globally enabled.
|
inlinestatic |
Get the priority of the exception handler being executed.
Lower numbers mean higher priority. Handlers more urgent than PBL_IRQ_PRIO_MAX_SYSCALL must not call the kernel.
|
inlinestatic |
Check whether the CPU is executing an exception handler.