This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Using target's settings in the program code

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

0