"interrupt" not define as keyword w/ Codewarrior v11

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

"interrupt" not define as keyword w/ Codewarrior v11

695件の閲覧回数
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 返信

656件の閲覧回数
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 件の賞賛
返信