I expect there's a simple answer to this, but I can't work it out.
I have an SPI interrupt routine (spiArxFifoISR) in the proj_lab13b_test.c file, and in the hal.h file I added "pie->SPIRXINTA = &spiArxFifoISR;" to the HAL_initIntVectorTable function.
All of that compiles fine and works. Then I added another interrupt (ECAN0_ISR ) for ECAN into proj_lab13b_test.c, and added a line "pie->ECANAINT0 = &ECAN0_ISR " to the HAL_initIntVectorTable function.
This time the compiler reports an error "#20 identifier ECAN0_ISR is undefined"
I'm guessing there must be some declaration that I've missed out somewhere; I've used the CCS search to find an equivalent declaration for the SPI , but it finds nothing. Tried declaring ECAN0_ISR as extern in hal,h but the compiler just reports it as being defined twice.
What am I doing wrong ?
Thanks