Interrupt Function Vector Table Allocation

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Interrupt Function Vector Table Allocation

610 Views
_hiper_
Contributor I

Hello everyone!

 

I am using CW V4.6 for HCS12(X) and I wanted to ask some questions about the syntax for the Interrupt vector table allocation in the interrupt function definition/declaration.

 

1º: Does the Interrupt Vector Number have to be in the definition AND in the declaration? Or only in the declaration?

2º What is the syntax with that number? In the documentation it says that is only a number, but does this structure work? e.g


#define INTVEC_START 0

interrupt (INTVEC_START + 0x00) void random_interrupt(void);

 

Thanks in advance.

 

Best regards,

Labels (1)
0 Kudos
1 Reply

290 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

we have tn101 that includes all the information you need. see attached

0 Kudos