5.5 __enable_interrupt Intrinsic Function
The IAR __enable_interrupt
intrinsic function enables interrupts with the
relevant instructions.
Suggested Replacement
There is an MPLAB XC8 macro that performs a similar task.
Use
the
ei()
macro to enable interrupts.
Caveats
The Common C Interface must be enabled using -mext=cci
to use the
macro replacement.
Examples
Consider migrating IAR code such as:
__enable_interrupt();
to
MPLAB XC8 code similar to:ei();
and build with the
-mext=cci
option.Further Information
See the Enabling Interrupts section in the MPLAB XC8 C Compiler User's Guide for AVR MCUs for more information on this macro.