Hello, I'm trying to compile a project for PIC16F887 with XC8, this routine gives me some problems:
void interrupt isr(void)
{
if (SSPIF)
{
SSPIF = 0;
isrEnd = 1;
}
}
This is the error that the compiler gives me:
make[2]: *** [build/default/production/main.p1] Error 1
main.c:36:6: error: variable has incomplete type 'void'
void interrupt isr(void)
make[1]: *** [.build-conf] Error 2
^
make: *** [.build-impl] Error 2
main.c:36:15: error: expected ';' after top level declarator
void interrupt isr(void)
^
;
2 errors generated.
(908) exit status = 1
Anybody can help me ? Thanks very much