Interrupts in the MPLAB® XC32/32++ Compiler
Last modified by Microchip on 2025/08/26 05:31
Interrupt Service Routines
To use the macros that identify a function as an interrupt service routine, you must include the #include <sys/attribs.h> file.
extern "C"
{
void _ISR(vector, IPLn[SRS|SOFT|AUTO]) functionName();
}
{
void _ISR(vector, IPLn[SRS|SOFT|AUTO]) functionName();
}
Parameter | Description | Possible Values |
---|---|---|
vector | PIC32 Interrupt Vector Number | see here |
IPLn[SRS|SOFT|AUTO] | Interrupt Priority Level and Context Save Method | n is a value from 0 to 7 SRS = X SOFT = Y AUTO = Z |