Compiler error on Interrupts

groufosse wrote on Thursday, January 03, 2013:

For some reason, the IAR compiler now throws an error on an interrupt function that previously compiled in code before I integrated FreeRTOS in.

extern “C” void TIMER0_IRQHandler(void)

is causing IAR to have these 2 error messages:

Error: expected an identifier C:\Users\grr\Documents\IAR Embedded Workbench\Code_Base\RTOS\Timer_COM.c 18
Error: explicit type is missing (“int” assumed) C:\Users\grr\Documents\IAR Embedded Workbench\Code_Base\RTOS\Timer_COM.c 21

I’m using the same handler verbatim in another project file and it compiles OK there.

groufosse wrote on Thursday, January 03, 2013:

Ok, I’ve figured it out…thanks!