"interrupt" not define as keyword w/ Codewarrior v11

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

"interrupt" not define as keyword w/ Codewarrior v11

631 Views
zhangp973
Contributor II

seen as below 

issue.JPG

i call for an interrupt function of timer ,  but the interrupt was recognized as normal code rather than a keyword(like void, while).  

in consequence, the build result  failed with "function has no prototype "

 

can anyone help , thx in advance 

Tags (1)
0 Kudos
1 Reply

592 Views
stanish
NXP Employee
NXP Employee

Hello,

This is caused by the compiler option - require prototype. I'd recommend you to declare ISR routine  prototype: 

void interrupt Timer();

Hope it helps.

Stan

0 Kudos