I am trying to use a compiler switch for defining preprocessor directives. The controller is STM32F072VC and IAR Workbench is used.
#define EXICOM_2KW 1 #define EXICOM_1KWH 0 #if EXICOM_2KW #define EXICOM_RX_MAX_SIZE 60 #define EXICOM_TX_MAX_SIZE 18 #define EXICOM_RX_INDEX_MAX 60 #define EXI_ACTIVE ...