Hello forum members,   I am using Codewarrior 4.6 build 6...

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

Hello forum members,   I am using Codewarrior 4.6 build 6...

跳至解决方案
1,887 次查看
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 解答
921 次查看
Stephen
Contributor III
Hi
Try reordering the function declaration to put the void keyword before the interrupt keyword.
E.g.
void interrupt _SCI0_interrupt(void)
{
 /* your code goes here :smileyhappy: */
}
 
Good luck
Steve

在原帖中查看解决方案

0 项奖励
回复
1 回复
922 次查看
Stephen
Contributor III
Hi
Try reordering the function declaration to put the void keyword before the interrupt keyword.
E.g.
void interrupt _SCI0_interrupt(void)
{
 /* your code goes here :smileyhappy: */
}
 
Good luck
Steve
0 项奖励
回复