24.6 Intrinsic Functions
Intrinsic functions can be used to perform common tasks in the source code. The MPLAB XC compilers’ support for the intrinsic functions offered by other compilers is shown in the following table.
IAR Compatibility Mode | |||
---|---|---|---|
Function | XC8 | XC16 | XC32 |
__disable_fiq 1 | support | ignore | ignore |
__disable_interrupt | support | support | support |
__disable_irq 1. | support | ignore | ignore |
__enable_fiq 1. | support | ignore | ignore |
__enable_interrupt | support | support | support |
__enable_irq 1. | support | ignore | ignore |
__get_interrupt_state | ignore | support | support |
__set_interrupt_stat e | ignore | support | support |
The header file <xc.h>
must be included for supported
functions to operate correctly.
1 These
intrinsic functions map to macros which disable or enable the global
interrupt enable bit on 8-bit PIC®
devices.