µVISION: Set Unique Preprocessor Symbols by Project Target
Information in this article applies to
I have different targets that require different initialization schemes. I currently use #defines and #ifdef/#ifndef to change this, but have to manually change this every time I switch targets. Is there an easier way to change #defines than manually in the file?
Yes. You can do this by creating separate Project Targets and assigning them unique Preprocessor Symbols (#defines).
To do this:
Repeat this process for any other unique Preprocessor Symbols configurations needed.
Once finished, you can now switch between targets (and their Preprocessor Symbols) using the dropdown.
Last Reviewed: Wednesday, January 9, 2019
of your data.