Part Number: DRA72XEVM
Tool/software: Starterware
Hi,
I'm currently trying to write an ISR in the mcspiMasterSlave_spi1_spi2 example project, and am unsure how to actually capture the interrupt event. I tried using syntax from an MSP:
#pragma vector = PORT1_VECTOR __interrupt void PORT1_ISR(void) { //code }
but during compilation got the following error(s):
mcspiMasterSlave_spi1_spi2.c:265:0: warning: ignoring #pragma vector [-Wunknown-pragmas]
#pragma vector = PORT1_VECTOR
^
mcspiMasterSlave_spi1_spi2.c:266:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
__interrupt void PORT1_ISR(void)
What is the correct way to capture an interrupt? And a follow up question would be how do I change the pin the ISR is listening to?
Thanks,
Barend