µvision Configuration Wizard different settings

Hi, i'm using the uvision Configuration Wizard and a board in different versions in HW. Is there a way to provide different settings by ConfWiz like following?

#define HW_Version 1

//   Timer clock value [Hz] 
//    Defines the timer clock value.
//    Default: 12000000  (12MHz)
#ifndef OS_CLOCK
 #if HW_Version == 1
  #define OS_CLOCK       12000000
 #elseif HW_Version == 2
  #define OS_CLOCK       8000000
The Problem in upper code is, the ConfWiz is using (changing/editing) the next following value in the text even disabled by proprozessor (here 12000000).

Parents Reply Children
More questions in this forum