expected function body after function declaration

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

 Hello,

   

I am having an ISR like this in my program.

   

CY_ISR(Timer1_ISR_Interrupt)

   

{

   

    /*  Place your Interrupt code here. */

   

    /* `#START Timer1_ISR_Interrupt` */

   

Timer_1_ReadStatusRegister();

   

timCnt++;

   

if (timCnt > ledDelay)

   

{

   

ledState ^= 0x01u; // Toggle LED state

   

Pin_LED_Write(ledState);

   

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 ))      

   

            Timer1_ISR_ISR_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.

   

Thanks.
-Anuradha.

0 Likes
2 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

This is a known bug of the on-line-code-checker. Appears only for PSoC3. Just ignore it , you are on the safe side when compilation is without errors and warnings.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

 Hi Bob,

   

Thnaks for replying.

   

🙂

   

-Anuradha.

0 Likes