Displaying 1 result from an estimated 1 matches for "isr_name".
Did you mean:
ifr_name
2018 May 25
1
MSP430: interrupt vector number out of bounds error in v6/trunk (with patch)
...he
app code, define the symbol manually (name of the symbol does not
matter) and allocate it to the section __interrupt_vector_ for that
vector number that is defined by the linker script shipped by TI MSP
GCC:
#define VNUM(x) x // to drop parenthesis around *_VECTOR values from TI
#define ISR_NAME(vect) CONCAT(ISR_, vect)
#define ISR(vect) \
void ISR_NAME(VNUM vect)(void); \
__attribute__((section("__interrupt_vector_" STR(VNUM vect)), aligned(2))) \
void(*CONCAT(__vector_, VNUM vect))(void) = ISR_NAME(VNUM vect); \
__attribute__ ((interrupt(vect...