Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of LG2 by
config.h
00001 #ifndef CONFIG 00002 #define CONFIG 00003 00004 00005 #define DEBUG 00006 00007 //========== device selection ========================== 00008 #define GLD_DEVICE 00009 //#define OID_DEVICE 00010 //#define OID_RF_DEVICE 00011 //====================================================== 00012 #define COMMAND_DEBUG 00013 00014 #if defined(GLD_DEVICE) 00015 #define FIRMWARE_VER 0xD // 9.13 - firmware version 00016 #define NEW_THERMO_ADC 00017 #define CONFIG_HFO_REG 00018 // #define DELTA_SF_DELAY 00019 #define CONFIG_PLC_SINUS 00020 // #define CONFIG_HW_PLC 00021 //#define CONFIG_SIMUL_HW_PLC // simulation of part of PLC regulator in FPGA 00022 #define CONFIG_PLC_LIDEM // PLC reg. works with demodulated LI signal (demodulation in analog IC) 00023 // #define CONFIG_PLC_LIM // PLC reg. works with modulated LI signal (demodulation inside FPGA) 00024 #define WP_TRANSITION_ENA //e. allow the linear transition process for PLC reset //r. разрешен линейный переходной процесс при обнулении СРП 00025 00026 #define CONFIG_HFO_MOV_AVER_FILTER 00027 00028 #define CONFIG_SIX_THERMO_SENSORS 00029 00030 #define DEBUG_EXT_LAT_CNTR 00031 00032 //#warning "=== GLD_DEVICE configuration selected ===" 00033 00034 #elif defined(OID_DEVICE) 00035 #define FIRMWARE_VER 0x1C // 1.12 - firmware version 00036 00037 #define CONFIG_CURRENT_REG 00038 // #define CONFIG_IA_STABILIZING 00039 #define CONFIG_LI_STABILIZING 00040 // #define CONFIG_IB_EQUAL_IA 00041 #define CONFIG_IB_IA_BALANCE 00042 00043 #define CONFIG_HW_PLC 00044 // #define CONFIG_PLC_LIDEM // PLC reg. works with demodulated LI signal (demodulation in analog IC) 00045 #define CONFIG_PLC_LIM // PLC reg. works with modulated LI signal (demodulation inside FPGA) 00046 //#define CONFIG_SIMUL_HW_PLC // simulation of part of PLC regulator in FPGA 00047 #define WP_TRANSITION_ENA //e. allow the linear transition process for PLC reset //r. разрешен линейный переходной процесс при обнулении СРП 00048 00049 //#warning "=== OID_DEVICE configuration selected ===" 00050 00051 #elif defined(OID_RF_DEVICE) 00052 #define FIRMWARE_VER 0x1C // 1.12 - firmware version 00053 00054 #define CONFIG_HFO_REG 00055 00056 #define CONFIG_HW_PLC 00057 // #define CONFIG_PLC_LIDEM // PLC reg. works with demodulated LI signal (demodulation in analog IC) 00058 #define CONFIG_PLC_LIM // PLC reg. works with modulated LI signal (demodulation inside FPGA) 00059 00060 //#warning "=== OID_RF_DEVICE configuration selected ===" 00061 00062 #else 00063 #error "Not defined Device type" 00064 #endif 00065 00066 // -------- conditional compiles errors messages --------------------------- 00067 #if !(defined(GLD_DEVICE) ^ defined(OID_DEVICE) ^ defined(OID_RF_DEVICE)) 00068 #error "Should be defined only one device, not several" 00069 #endif 00070 00071 #if defined(CONFIG_PLC_LIDEM) & defined(CONFIG_PLC_LIM) 00072 #error "Should be defined CONFIG_PLC_LIDEM or CONFIG_PLC_LIM, not both" 00073 #endif 00074 00075 #if !( defined(CONFIG_PLC_LIDEM) | defined(CONFIG_PLC_LIM) ) 00076 #error "Not defined PLC mode: modulated / demodulated" 00077 #endif 00078 00079 #if defined(OID_DEVICE) 00080 #if defined(CONFIG_IA_STABILIZING) & defined(CONFIG_LI_STABILIZING) 00081 #error "Should be defined CONFIG_IA_STABILIZING or CONFIG_LI_STABILIZING, not both" 00082 #endif 00083 00084 #if !( defined(CONFIG_IA_STABILIZING) | defined(CONFIG_LI_STABILIZING) ) 00085 #error "Not defined IA regulator mode: select CONFIG_IA_STABILIZING or CONFIG_LI_STABILIZING" 00086 #endif 00087 00088 #if defined(CONFIG_IB_EQUAL_IA) & defined(CONFIG_IB_IA_BALANCE) 00089 #error "Should be defined CONFIG_IB_EQUAL_IA or CONFIG_IB_IA_BALANCE, not both" 00090 #endif 00091 00092 #if !( defined(CONFIG_IB_EQUAL_IA) | defined(CONFIG_IB_IA_BALANCE) ) 00093 #error "Not defined IB regulator mode: select CONFIG_IB_EQUAL_IA or CONFIG_IB_IA_BALANCE" 00094 #endif 00095 #endif // OID_DEVICE 00096 00097 #endif
Generated on Thu Jul 14 2022 02:34:42 by
1.7.2
