expected function body after function declaration | Cypress Semiconductor
expected function body after function declaration
I am having an ISR like this in my program.
/* Place your Interrupt code here. */
/* `#START Timer1_ISR_Interrupt` */
if (timCnt > ledDelay)
ledState ^= 0x01u; // Toggle LED state
timCnt = 0;
/* `#END` */
/* PSoC3 ES1, ES2 RTC ISR PATCH */
#if(CYDEV_CHIP_FAMILY_USED == CYDEV_CHIP_FAMILY_PSOC3)
#if((CYDEV_CHIP_REVISION_USED <= CYDEV_CHIP_REVISION_3A_ES2) && (Timer1_ISR__ES2_PATCH ))
#endif /* CYDEV_CHIP_REVISION_USED */
#endif /* (CYDEV_CHIP_FAMILY_USED == CYDEV_CHIP_FAMILY_PSOC3) */
There are no compilation errors or warnings on this and the program executes as expected. But there is a red cross to the left of CY_ISR(Timer1_ISR_Interrupt). Hovering mouse on this shows "expected function body after function declaration". Any instruction why this is and how to overcome. I came across even a thread having this message as its heading, but my questions werte not answered there.