"Expected =" Compiler Error at beginning of interr
Posted: Wed Jun 06, 2007 7:32 am
I am using a 16F87 PIC. I need an interrupt on overflow, so I am using the TIMER1 overflow interrupt. The problem I am encountering is a "Expected =" right at the beginning of the interrupts function call.
#int_TIMER1
void TIMER1_isr() <- "Expected =" error here
If you need me to post any extra code or information, I'll be happy to do so.
Thanks,
EJensen
rnielsen
Joined: 23 Sep 2003 Posts: 852 Location: Utah
Posted: Wed Jun 06, 2007 8:25 am
Please post the interrupt routine so we can see what's going on with it.
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
Posted: Wed Jun 06, 2007 9:09 am
Most likely the error is in one of the lines just before the indicated line.
EJensen
Joined: 06 Jun 2007 Posts: 2
Posted: Wed Aug 29, 2007 7:45 am
Aaaaah, ckielstra you are correct.
The error was in the last line of my include file. The #include directive being just before the line indicated in the error message.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum