3.7.12. WFI

Wait for Interrupt.

Syntax

WFI

Operation

WFI suspends execution until one of the following events occurs:

  • an exception

  • an interrupt becomes pending, which would preempt if PRIMASK was clear

  • a Debug Entry request, regardless of whether debug is enabled.

Note

WFI is intended for power saving only. When writing software assume that WFI might behave as a NOP operation.

Restrictions

There are no restrictions.

Condition flags

This instruction does not change the flags.

Examples

    WFI ; Wait for interrupt 

Copyright © 2009 ARM Limited. All rights reserved.ARM DUI 0497A
Non-Confidential