"interrupt" not define as keyword w/ Codewarrior v11

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

"interrupt" not define as keyword w/ Codewarrior v11

759 次查看
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 

标记 (1)
0 项奖励
回复
1 回复

720 次查看
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 项奖励
回复