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

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

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

ソリューションへジャンプ
1,899件の閲覧回数
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 解決策
933件の閲覧回数
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 返信
934件の閲覧回数
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 件の賞賛
返信