Datasheet
82
SAM4S Series [DATASHEET]
11100F–ATARM–29-Jan-14
12.5.2.3 External Event Input
The processor provides an external event input signal. Peripherals can drive this signal, either to wake the processor
from WFE, or to set the internal WFE event register to 1 to indicate that the processor must not enter sleep mode on a
later WFE instruction. See “Wait for Event” for more information.
12.5.3 Power Management Programming Hints
ISO/IEC C cannot directly generate the WFI and WFE instructions. The CMSIS provides the following functions for these
instructions:
void __WFE(void) // Wait for Event
void __WFI(void) // Wait for Interrupt