This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Semantic error w.r.t. interrupt keyword

Hi,

 

CCS 5.1.0.08020 gives me some semantic errors in the problems view. I've discovered that the same issue is mentioned here:

http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/88538/306519.aspx#306519

 

There, a workaround is proposed to define the interrupt keyword as #define interrupt. So, I've added the following code to a general include file in my project:

#if defined(COMP_TMS320C28X)
    #if defined(__CDT_PARSER__)
        #define interrupt
    #endif
#endif

The COMP_TMS320C28X define is custom, it's defined as:

#elif defined(__TI_COMPILER_VERSION__)
  #if defined(__TMS320C28X__)
    #define COMP_TMS320C28X
  #else
    #error "Processor not supported yet"
  #endif

However, the code snippets shown are displayed gray in CCS; so i think that the auto discovery did not recognize the __TI_COMPILER_VERSION__ define.

 

My questions:

1) Is the original problem (for which the approach described above) w.r.t. recognize interrupt keyword in CCS solved?

2) How can I let the auto discovery detect __TI_COMPILER_VERSION__ correctly?

 

Best regards,

Ronald