3

I have an external text file with some preprocessor defines. How can I integrate them in my CCS project?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
snakile
  • 52,936
  • 62
  • 169
  • 241

3 Answers3

5

For CCSv5

Project -> properties -> C/C++ General -> Path and Symbols

Under the tap Symbols you can put your defines

One thing to note: remember to press the "Show advanced setting" in the bottom left corner, or else the C/C++ General does not show up

BaCaRoZzo
  • 7,502
  • 6
  • 51
  • 82
user1613800
  • 66
  • 1
  • 2
  • 2
    Thank you for adding info on `Show advanced settings`, I have been wondering how people got the C/C++ to show. +1 – chwi Nov 27 '12 at 16:25
1

You could copy/past in compiler settings : Menu Build properties > compiler > preprocessor > defines.

TridenT
  • 4,879
  • 1
  • 32
  • 56
0

For CCSv8

Project -> properties -> Build -> MSP430 Compiler -> Predefined Symbols

Bassrelic
  • 90
  • 11