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

Parents Reply Children
More questions in this forum