We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello, Keil uVision world! :)
Keil uVision project file contains some target's settings, stored as e.g. Device (C8051F340) or DevID (3997). How to use these values in the source text (e.g. for conditionally translation)?
For example:
#if DevID==3997 ... #endif
or
$if (DevID==3997) ... $endif
The answer from Keil:
currently this information cannot be directly accessed by the Compiler/Assembler. It is indented to be used by programming utilities and the help systems (by querying the environment variables).