mspgcc: A port of the GNU tools to the Texas Instruments MSP430 microcontrollers | ||
---|---|---|
<<< Previous | MSP430 specific extensions to the GNU toolchain | Next >>> |
There are some function definitions in "signal.h" to make interrupt control easier.
Enable interrupts by setting the global interrupt enable bit. This function actually compiles to a single instruction, so there is no function call overhead. "_EINT()" is defined as an alternative name for this function, for compatibility with other MSP430 tools.
Disable interrupts by clearing the global interrupt enable bit. This function actually compiles to a single instruction, so there is no function call overhead. "_DINT()" is defined as an alternative name for this function, for compatibility with other MSP430 tools.
You may declare your own version of the "_RESET()" function to override the default reset vector handler.
You may declare your own version of the "UNEXPECTED()" function to override the default handling of unexpected interrupts (i.e. ones for which no specific interrupt service routine has been defined).
<<< Previous | Home | Next >>> |
Customising the interrupt vector table | Up | Data types and memory handling |