The INTERRUPT pragma enables you to handle 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 INTERRUPT (func) |
The syntax of the pragma in C++ is:
#pragma INTERRUPT
void func( void ) |
The code for the function will return via the IRP (interrupt return pointer).
NOTE
Hwi Objects and the INTERRUPT PragmaThe INTERRUPT pragma must not be used when SYS/BIOS Hwi objects are used in conjunction with C functions. The Hwi_enter/Hwi_exit macros and the Hwi dispatcher contain this functionality, and the use of the C modifier can cause negative results.