Controlling interrupt processing

There are some function definitions in "signal.h" to make interrupt control easier.

#include <signal.h>

void eint(void);

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.

#include <signal.h>

void dint(void);

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.

#include <signal.h>

void _RESET(void);

You may declare your own version of the "_RESET()" function to override the default reset vector handler.

#include <signal.h>

void UNEXPECTED(void);

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).