- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Labels:
-
PSoC 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Bob,
Thnaks for replying.
🙂
-Anuradha.