The NMI_INTERRUPT pragma enables you to handle non-maskable interrupts directly with C code. In C, the argument func is the name of a function. In C++, the pragma applies to the next function declared.
The syntax of the pragma in C is:
#pragma NMI_INTERRUPT(func) |
The syntax of the pragma in C++ is:
#pragma NMI_INTERRUPT |
The code generated for the function will return via the NRP versus the IRP as for a function declared with the interrupt keyword or INTERRUPT pragma.
Except for _c_int00, which is the name reserved for the system reset interrupt for C programs, the name of the interrupt (function) does not need to conform to a naming convention.