2 Replies Latest reply on Oct 28, 2014 4:46 AM by anuradha.nanayakkara

    expected function body after function declaration

    anuradha.nanayakkara

       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.