Function Definition
#pragma TRAP_PROC
See Backend
None
This pragma marks a function to be an interrupt function. Because interrupt functions may need some special entry and exit code, this pragma has to be used for interrupt functions.
Do not use this pragma for declarations (e.g., in header files) because the pragma is valid for the next definition.
See the RS08 Backend chapter for details.
The following listing marks the MyInterrupt() function as an interrupt function.
#pragma TRAP_PROC void MyInterrupt(void) { ... }