mspgcc: A port of the GNU tools to the Texas Instruments MSP430 microcontrollers | ||
---|---|---|
<<< Previous | MSP430 specific extensions to the GNU toolchain | Next >>> |
The interrupt vectors table is defined in the startup file for each device - "crtXXX". These files are automatically linked when a project is built. The tables are customised for the specific interrupt vectors present in each device. Undefined interrupts will result in a call to "_unexpected_1_", which branches to "_unexpected_". "_unexpected_" can be redefined in your code.
If you wish, you can completely customise the interrupt vector table, by defining your own, like this:
/* Define interrupt vector table */ INTERRUPT_VECTORS = { zero_vector, zero_vector, zero_vector, zero_vector, zero_vector, zero_vector, wakeup_vector, zero_vector, zero_vector, zero_vector, zero_vector, zero_vector, zero_vector, zero_vector, zero_vector, reset_vector }; |
<<< Previous | Home | Next >>> |
Writing interrupt service routines | Up | Controlling interrupt processing |