Dmitry Kovalev
/
LG
n
Fork of LG by
config.h@21:bc8c1cec3da6, 2016-02-03 (annotated)
- Committer:
- igor_v
- Date:
- Wed Feb 03 07:19:30 2016 +0000
- Revision:
- 21:bc8c1cec3da6
- Parent:
- 0:8ad47e2b6f00
?????????? ??????? ??????????, ???????? ??? ?????? ?????????? ??????????? ?????????.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
igor_v | 0:8ad47e2b6f00 | 1 | #ifndef CONFIG |
igor_v | 0:8ad47e2b6f00 | 2 | #define CONFIG |
igor_v | 0:8ad47e2b6f00 | 3 | |
igor_v | 0:8ad47e2b6f00 | 4 | |
igor_v | 0:8ad47e2b6f00 | 5 | #define DEBUG |
igor_v | 0:8ad47e2b6f00 | 6 | |
igor_v | 0:8ad47e2b6f00 | 7 | //========== device selection ========================== |
igor_v | 0:8ad47e2b6f00 | 8 | #define GLD_DEVICE |
igor_v | 0:8ad47e2b6f00 | 9 | //#define OID_DEVICE |
igor_v | 0:8ad47e2b6f00 | 10 | //#define OID_RF_DEVICE |
igor_v | 0:8ad47e2b6f00 | 11 | //====================================================== |
igor_v | 0:8ad47e2b6f00 | 12 | #define COMMAND_DEBUG |
igor_v | 0:8ad47e2b6f00 | 13 | |
igor_v | 0:8ad47e2b6f00 | 14 | #if defined(GLD_DEVICE) |
igor_v | 21:bc8c1cec3da6 | 15 | #define FIRMWARE_VER 0xD // 9.13 - firmware version |
igor_v | 21:bc8c1cec3da6 | 16 | #define NEW_THERMO_ADC |
igor_v | 21:bc8c1cec3da6 | 17 | #define CONFIG_HFO_REG |
igor_v | 0:8ad47e2b6f00 | 18 | // #define DELTA_SF_DELAY |
igor_v | 21:bc8c1cec3da6 | 19 | #define CONFIG_PLC_SINUS |
igor_v | 0:8ad47e2b6f00 | 20 | // #define CONFIG_HW_PLC |
igor_v | 21:bc8c1cec3da6 | 21 | //#define CONFIG_SIMUL_HW_PLC // simulation of part of PLC regulator in FPGA |
igor_v | 21:bc8c1cec3da6 | 22 | #define CONFIG_PLC_LIDEM // PLC reg. works with demodulated LI signal (demodulation in analog IC) |
igor_v | 0:8ad47e2b6f00 | 23 | // #define CONFIG_PLC_LIM // PLC reg. works with modulated LI signal (demodulation inside FPGA) |
igor_v | 21:bc8c1cec3da6 | 24 | #define WP_TRANSITION_ENA //e. allow the linear transition process for PLC reset //r. разрешен линейный переходной процесс при обнулении СРП |
igor_v | 21:bc8c1cec3da6 | 25 | |
igor_v | 21:bc8c1cec3da6 | 26 | #define CONFIG_HFO_MOV_AVER_FILTER |
igor_v | 21:bc8c1cec3da6 | 27 | |
igor_v | 21:bc8c1cec3da6 | 28 | #define CONFIG_SIX_THERMO_SENSORS |
igor_v | 21:bc8c1cec3da6 | 29 | |
igor_v | 21:bc8c1cec3da6 | 30 | #define DEBUG_EXT_LAT_CNTR |
igor_v | 21:bc8c1cec3da6 | 31 | |
igor_v | 21:bc8c1cec3da6 | 32 | //#warning "=== GLD_DEVICE configuration selected ===" |
igor_v | 21:bc8c1cec3da6 | 33 | |
igor_v | 0:8ad47e2b6f00 | 34 | #elif defined(OID_DEVICE) |
igor_v | 21:bc8c1cec3da6 | 35 | #define FIRMWARE_VER 0x1C // 1.12 - firmware version |
igor_v | 21:bc8c1cec3da6 | 36 | |
igor_v | 21:bc8c1cec3da6 | 37 | #define CONFIG_CURRENT_REG |
igor_v | 0:8ad47e2b6f00 | 38 | // #define CONFIG_IA_STABILIZING |
igor_v | 21:bc8c1cec3da6 | 39 | #define CONFIG_LI_STABILIZING |
igor_v | 0:8ad47e2b6f00 | 40 | // #define CONFIG_IB_EQUAL_IA |
igor_v | 21:bc8c1cec3da6 | 41 | #define CONFIG_IB_IA_BALANCE |
igor_v | 21:bc8c1cec3da6 | 42 | |
igor_v | 21:bc8c1cec3da6 | 43 | #define CONFIG_HW_PLC |
igor_v | 0:8ad47e2b6f00 | 44 | // #define CONFIG_PLC_LIDEM // PLC reg. works with demodulated LI signal (demodulation in analog IC) |
igor_v | 21:bc8c1cec3da6 | 45 | #define CONFIG_PLC_LIM // PLC reg. works with modulated LI signal (demodulation inside FPGA) |
igor_v | 21:bc8c1cec3da6 | 46 | //#define CONFIG_SIMUL_HW_PLC // simulation of part of PLC regulator in FPGA |
igor_v | 21:bc8c1cec3da6 | 47 | #define WP_TRANSITION_ENA //e. allow the linear transition process for PLC reset //r. разрешен линейный переходной процесс при обнулении СРП |
igor_v | 21:bc8c1cec3da6 | 48 | |
igor_v | 21:bc8c1cec3da6 | 49 | //#warning "=== OID_DEVICE configuration selected ===" |
igor_v | 21:bc8c1cec3da6 | 50 | |
igor_v | 0:8ad47e2b6f00 | 51 | #elif defined(OID_RF_DEVICE) |
igor_v | 21:bc8c1cec3da6 | 52 | #define FIRMWARE_VER 0x1C // 1.12 - firmware version |
igor_v | 21:bc8c1cec3da6 | 53 | |
igor_v | 21:bc8c1cec3da6 | 54 | #define CONFIG_HFO_REG |
igor_v | 21:bc8c1cec3da6 | 55 | |
igor_v | 21:bc8c1cec3da6 | 56 | #define CONFIG_HW_PLC |
igor_v | 0:8ad47e2b6f00 | 57 | // #define CONFIG_PLC_LIDEM // PLC reg. works with demodulated LI signal (demodulation in analog IC) |
igor_v | 21:bc8c1cec3da6 | 58 | #define CONFIG_PLC_LIM // PLC reg. works with modulated LI signal (demodulation inside FPGA) |
igor_v | 21:bc8c1cec3da6 | 59 | |
igor_v | 21:bc8c1cec3da6 | 60 | //#warning "=== OID_RF_DEVICE configuration selected ===" |
igor_v | 21:bc8c1cec3da6 | 61 | |
igor_v | 0:8ad47e2b6f00 | 62 | #else |
igor_v | 21:bc8c1cec3da6 | 63 | #error "Not defined Device type" |
igor_v | 0:8ad47e2b6f00 | 64 | #endif |
igor_v | 0:8ad47e2b6f00 | 65 | |
igor_v | 0:8ad47e2b6f00 | 66 | // -------- conditional compiles errors messages --------------------------- |
igor_v | 0:8ad47e2b6f00 | 67 | #if !(defined(GLD_DEVICE) ^ defined(OID_DEVICE) ^ defined(OID_RF_DEVICE)) |
igor_v | 21:bc8c1cec3da6 | 68 | #error "Should be defined only one device, not several" |
igor_v | 0:8ad47e2b6f00 | 69 | #endif |
igor_v | 0:8ad47e2b6f00 | 70 | |
igor_v | 0:8ad47e2b6f00 | 71 | #if defined(CONFIG_PLC_LIDEM) & defined(CONFIG_PLC_LIM) |
igor_v | 21:bc8c1cec3da6 | 72 | #error "Should be defined CONFIG_PLC_LIDEM or CONFIG_PLC_LIM, not both" |
igor_v | 0:8ad47e2b6f00 | 73 | #endif |
igor_v | 0:8ad47e2b6f00 | 74 | |
igor_v | 0:8ad47e2b6f00 | 75 | #if !( defined(CONFIG_PLC_LIDEM) | defined(CONFIG_PLC_LIM) ) |
igor_v | 21:bc8c1cec3da6 | 76 | #error "Not defined PLC mode: modulated / demodulated" |
igor_v | 0:8ad47e2b6f00 | 77 | #endif |
igor_v | 0:8ad47e2b6f00 | 78 | |
igor_v | 0:8ad47e2b6f00 | 79 | #if defined(OID_DEVICE) |
igor_v | 0:8ad47e2b6f00 | 80 | #if defined(CONFIG_IA_STABILIZING) & defined(CONFIG_LI_STABILIZING) |
igor_v | 21:bc8c1cec3da6 | 81 | #error "Should be defined CONFIG_IA_STABILIZING or CONFIG_LI_STABILIZING, not both" |
igor_v | 0:8ad47e2b6f00 | 82 | #endif |
igor_v | 0:8ad47e2b6f00 | 83 | |
igor_v | 0:8ad47e2b6f00 | 84 | #if !( defined(CONFIG_IA_STABILIZING) | defined(CONFIG_LI_STABILIZING) ) |
igor_v | 21:bc8c1cec3da6 | 85 | #error "Not defined IA regulator mode: select CONFIG_IA_STABILIZING or CONFIG_LI_STABILIZING" |
igor_v | 0:8ad47e2b6f00 | 86 | #endif |
igor_v | 0:8ad47e2b6f00 | 87 | |
igor_v | 0:8ad47e2b6f00 | 88 | #if defined(CONFIG_IB_EQUAL_IA) & defined(CONFIG_IB_IA_BALANCE) |
igor_v | 21:bc8c1cec3da6 | 89 | #error "Should be defined CONFIG_IB_EQUAL_IA or CONFIG_IB_IA_BALANCE, not both" |
igor_v | 0:8ad47e2b6f00 | 90 | #endif |
igor_v | 0:8ad47e2b6f00 | 91 | |
igor_v | 0:8ad47e2b6f00 | 92 | #if !( defined(CONFIG_IB_EQUAL_IA) | defined(CONFIG_IB_IA_BALANCE) ) |
igor_v | 21:bc8c1cec3da6 | 93 | #error "Not defined IB regulator mode: select CONFIG_IB_EQUAL_IA or CONFIG_IB_IA_BALANCE" |
igor_v | 0:8ad47e2b6f00 | 94 | #endif |
igor_v | 0:8ad47e2b6f00 | 95 | #endif // OID_DEVICE |
igor_v | 0:8ad47e2b6f00 | 96 | |
igor_v | 0:8ad47e2b6f00 | 97 | #endif |