17.7 Enabling/Disabling Interrupts
The following functions from the CMSIS API are used to manipulate the interrupt state of the CPU:
__enable_irq()
__disable_irq()
When using a Cortex-M device, the Nested Vector Interrupt Controller (NVIC), which controls the aspects of nearly all internal and external interrupts, can be manipulated using the CMSIS API. See the Interrupts and Exceptions (NVIC) reference section of the API for more information. The NVIC API functions are made available when you include the <xc.h>
header.
With Cortex-A devices, the CMSIS API can be used to control aspects of interrupts. See the Interrupts and Exceptions reference section. These functions are made available when you include the <xc.h>
header.