Arm Cortex-M Processor Macro Definition Documentation
SYS_WAIT_FOR_EVENT
#define SYS_WAIT_FOR_EVENT __ASM("wfe")
Wait for an event.
Location: cortex.h:44
Example Code for SYS_WAIT_FOR_EVENT |
// Stop executing code, put core into low power state, waiting for an event. |
SYS_WAIT_FOR_INTERRUPT
#define SYS_WAIT_FOR_INTERRUPT __ASM("wfi")
Wait for an interrupt.
Location: cortex.h:50
Example Code for SYS_WAIT_FOR_INTERRUPT |
// Stop executing code, put core into low power state, waiting for an // interrupt. |