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.

CCSTUDIO: CCS MSP430 Compiler // Predefined Symbol // Symbol with value

Part Number: CCSTUDIO

Hello TI,

i look for the syntax to create a predefined symbol. In my example its the symbol name "HWID_VARIANT" and this should have different values, MYVAR1, ...

How i can enter it in this window?

image.png

The belonging c code looks like follows:

 

-------------------------

#if HWID_VARIANT == MYVAR1
  #define MYDEFS ...
 
#elif HWID_VARIANT == MYVAR1
  #define MYDEFS ...
 
#else
  // No selection
  #error "Unsupported HWID_VARIANT value!"
#endif

---------------------

 

Thanks for your support.

 

BR,

Andreas