SLAU132V October 2004 – February 2020
The BIS_IE1_INTERRUPT pragma treats the named function as an interrupt routine. Additionally, the compiler generates a BIS operation on the IE1 special function register upon function exit. The mask value, which must be an 8-bit constant literal, is logically ORed with the IE1 SFR, just before the RETI instruction. The compiler assumes the IE1 SFR is mapped to address 0x0000.
The syntax of the pragma in C is:
#pragma BIS_IE1_INTERRUPT (func, mask) |
The syntax of the pragma in C++ is:
#pragma BIS_IE1_INTERRUPT (mask) |
In C, the argument func is the name of the function that is an interrupt. In C++, the pragma applies to the next function declared.