__disable_interrupt
In this section:
Syntax
void __disable_interrupt(void);
Description
Disables interrupts.
In 32-bit mode: For Cortex-M devices, it raises the execution priority level to 0 by setting the priority mask bit, PRIMASK. For other devices, it disables interrupt requests (irq) and fast interrupt requests (fiq). This intrinsic function can only be used in privileged mode.
In 64-bit mode: Disables all four types of interrupts in the DAIF system register (low 4 bits).
Note
To use intrinsic functions in an application, you must include the header file(s) where they are declared, see Summary of intrinsic functions.