The STM32 Cortex-M4 instruction set PM0214
192/262 PM0214 Rev 9
3.11.12 WFI
Wait for Interrupt.
Syntax
WFI{cond}
Where:
• ‘cond’ is an optional condition code, see Conditional execution on page 65.
Operation
WFI is a hint instruction that suspends execution until one of the following events occurs:
• An exception
• A Debug Entry request, regardless of whether Debug is enabled.
Condition flags
This instruction does not change the flags.
Examples
WFI ; Wait for interrupt