I am programming a pic18f4550. When I try to compile the project I get two errors.
According to what the console indicates, they are caused by the following function.
void interrupt interupciones()
{
//do something.
}
The errors are the following:
control.c: 126: 6: error: variable has incomplete type 'void' void interrupt interrupts ()
control.c: 126: 15: error: expected ';' after top level declarator void interrupt interrupts ()
I have tried the following but the error persists.
void __interrupt my_interr(void)
{
//do something.
}
If I remove the interrupt from the function then the project compiles correctly.
But doing the simulation doesn't work.