Skip to main content

IAR Embedded Workbench for Arm 9.70.x

__irq

In this section:
Syntax

See Syntax for type attributes used on functions.

Description

The __irq keyword declares an interrupt function. All interrupt functions must be compiled in Arm mode. A function declared __irq does not accept parameters and does not have a return value. This keyword is not available when you compile for Cortex-M devices. In 64-bit mode, this keyword cannot be used.

Example
__irq __arm void interrupt_function(void);
See also

‑‑align_sp_on_irq.