6.15 __disable_interrupt Intrinsic Function

For Cortex-M devices, it raises the execution priority level to 0 by setting the priority mask bit, PRIMASK. This intrinsic function can only be used in privileged mode.
Note: For XC32, cmsis_compiler.h needs to be included.

Suggested Replacement

__set_PRIMASK(1)

Caveats

None.

Examples

Consider migrating IAR code such as:
void __disable_interrupt(void); 
to MPLAB XC codes similar to:
__set_PRIMASK(1);

Further Information

None.