Empty declaration error for ISR

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

Empty declaration error for ISR

跳至解决方案
2,156 次查看
SSK
Contributor I
Hello forum members,
 
I am using Codewarrior 4.6 build 6345 with MC9S12A128B. I am trying to use interrupt for SCI0 but while compiling the code , it gives following error(s) -
Error   : C1017: Empty declaration
STT25x.c line 85  
Error   : C2801: ';' missing
STT25x.c line 85  
Error   : Compile failed
 
I am also attaching a snap of the error. Your earliest help is highly appreciated.
 
Thanking you in advance.
标签 (1)
标记 (1)
0 项奖励
回复
1 解答
668 次查看
CrasyCat
Specialist III
Hello
 
Looks like something weird happens after pre-processing.
Did you look at the pre-processor listing for this source file?
 
To generate preprocessor listing:
  - Click with the right mouse button on the file name in the .mcp window
  - select preprocess
    A new window containing preprocessing listing should be opened in the IDE.
    Look at the preprocessing code generated.
 
You may have a #define somewhere, which is redefining something....
 
CrasyCat

在原帖中查看解决方案

0 项奖励
回复
1 回复
669 次查看
CrasyCat
Specialist III
Hello
 
Looks like something weird happens after pre-processing.
Did you look at the pre-processor listing for this source file?
 
To generate preprocessor listing:
  - Click with the right mouse button on the file name in the .mcp window
  - select preprocess
    A new window containing preprocessing listing should be opened in the IDE.
    Look at the preprocessing code generated.
 
You may have a #define somewhere, which is redefining something....
 
CrasyCat
0 项奖励
回复