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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
1,304 Views
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.
Labels (1)
Tags (1)
0 Kudos
1 Solution
338 Views
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

View solution in original post

0 Kudos
1 Reply
339 Views
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 Kudos