Skip to main content

IAR Embedded Workbench for RISC-V 3.40

__user

In this section:
Syntax

See Syntax for type attributes used on functions.

Description

The __user keyword specifies that an interrupt function will be stored in the .utext section, and makes the function use the return instruction uret. Use of this keyword requires that the support for the Standard Extension for User-Level Interrupts (N) is enabled, see ‑‑core.

Note

Automatic interrupt vector setup works only for machine-level interrupts. This means that the user interrupt vector table must be set up manually.

Example
__user __interrupt void myInterruptFunction(void);
See also

.utext