Interrupts
To use the macros that identify a function as an interrupt service routine, you must include the following file:
#include <sys/attribs.h>
extern "C"
{
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 |