Skip to main content

IAR Embedded Workbench for RISC-V 3.40

__disable_interrupt

In this section:
Syntax
__istate_t __disable_interrupt(void);
Description

Disables interrupts by inserting the csrc or csrrc instruction, to clear the MIE bit in the MSTATUS register, and returns the previous interrupt state.

For information about the __istate_t type, see __get_interrupt_state.

Note

To use intrinsic functions in an application, you must include the header file(s) where they are declared, see Summary of intrinsic functions.