![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
test fork
Fork of LG by
config.h@20:e56d63c1ca05, 2016-02-03 (annotated)
- Committer:
- DarkPatrick
- Date:
- Wed Feb 03 09:33:19 2016 +0400
- Revision:
- 20:e56d63c1ca05
- Parent:
- 0:8ad47e2b6f00
test
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 | 0:8ad47e2b6f00 | 15 | #define FIRMWARE_VER 0xD // 9.13 - firmware version |
igor_v | 0:8ad47e2b6f00 | 16 | #define NEW_THERMO_ADC |
igor_v | 0:8ad47e2b6f00 | 17 | #define CONFIG_HFO_REG |
igor_v | 0:8ad47e2b6f00 | 18 | // #define DELTA_SF_DELAY |
igor_v | 0:8ad47e2b6f00 | 19 | #define CONFIG_PLC_SINUS |
igor_v | 0:8ad47e2b6f00 | 20 | // #define CONFIG_HW_PLC |
igor_v | 0:8ad47e2b6f00 | 21 | //#define CONFIG_SIMUL_HW_PLC // simulation of part of PLC regulator in FPGA |
igor_v | 0:8ad47e2b6f00 | 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 | 0:8ad47e2b6f00 | 24 | #define WP_TRANSITION_ENA //e. allow the linear transition process for PLC reset //r. ðàçðåøåí ëèíåéíûé ïåðåõîäíîé ïðîöåññ ïðè îáíóëåíèè ÑÐÏ |
igor_v | 0:8ad47e2b6f00 | 25 | |
igor_v | 0:8ad47e2b6f00 | 26 | #define CONFIG_HFO_MOV_AVER_FILTER |
igor_v | 0:8ad47e2b6f00 | 27 | |
igor_v | 0:8ad47e2b6f00 | 28 | #define CONFIG_SIX_THERMO_SENSORS |
igor_v | 0:8ad47e2b6f00 | 29 | |
igor_v | 0:8ad47e2b6f00 | 30 | #define DEBUG_EXT_LAT_CNTR |
igor_v | 0:8ad47e2b6f00 | 31 | |
igor_v | 0:8ad47e2b6f00 | 32 | //#warning "=== GLD_DEVICE configuration selected ===" |
igor_v | 0:8ad47e2b6f00 | 33 | |
igor_v | 0:8ad47e2b6f00 | 34 | #elif defined(OID_DEVICE) |
igor_v | 0:8ad47e2b6f00 | 35 | #define FIRMWARE_VER 0x1C // 1.12 - firmware version |
igor_v | 0:8ad47e2b6f00 | 36 | |
igor_v | 0:8ad47e2b6f00 | 37 | #define CONFIG_CURRENT_REG |
igor_v | 0:8ad47e2b6f00 | 38 | // #define CONFIG_IA_STABILIZING |
igor_v | 0:8ad47e2b6f00 | 39 | #define CONFIG_LI_STABILIZING |
igor_v | 0:8ad47e2b6f00 | 40 | // #define CONFIG_IB_EQUAL_IA |
igor_v | 0:8ad47e2b6f00 | 41 | #define CONFIG_IB_IA_BALANCE |
igor_v | 0:8ad47e2b6f00 | 42 | |
igor_v | 0:8ad47e2b6f00 | 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 | 0:8ad47e2b6f00 | 45 | #define CONFIG_PLC_LIM // PLC reg. works with modulated LI signal (demodulation inside FPGA) |
igor_v | 0:8ad47e2b6f00 | 46 | //#define CONFIG_SIMUL_HW_PLC // simulation of part of PLC regulator in FPGA |
igor_v | 0:8ad47e2b6f00 | 47 | #define WP_TRANSITION_ENA //e. allow the linear transition process for PLC reset //r. ðàçðåøåí ëèíåéíûé ïåðåõîäíîé ïðîöåññ ïðè îáíóëåíèè ÑÐÏ |
igor_v | 0:8ad47e2b6f00 | 48 | |
igor_v | 0:8ad47e2b6f00 | 49 | //#warning "=== OID_DEVICE configuration selected ===" |
igor_v | 0:8ad47e2b6f00 | 50 | |
igor_v | 0:8ad47e2b6f00 | 51 | #elif defined(OID_RF_DEVICE) |
igor_v | 0:8ad47e2b6f00 | 52 | #define FIRMWARE_VER 0x1C // 1.12 - firmware version |
igor_v | 0:8ad47e2b6f00 | 53 | |
igor_v | 0:8ad47e2b6f00 | 54 | #define CONFIG_HFO_REG |
igor_v | 0:8ad47e2b6f00 | 55 | |
igor_v | 0:8ad47e2b6f00 | 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 | 0:8ad47e2b6f00 | 58 | #define CONFIG_PLC_LIM // PLC reg. works with modulated LI signal (demodulation inside FPGA) |
igor_v | 0:8ad47e2b6f00 | 59 | |
igor_v | 0:8ad47e2b6f00 | 60 | //#warning "=== OID_RF_DEVICE configuration selected ===" |
igor_v | 0:8ad47e2b6f00 | 61 | |
igor_v | 0:8ad47e2b6f00 | 62 | #else |
igor_v | 0:8ad47e2b6f00 | 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 | 0:8ad47e2b6f00 | 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 | 0:8ad47e2b6f00 | 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 | 0:8ad47e2b6f00 | 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 | 0:8ad47e2b6f00 | 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 | 0:8ad47e2b6f00 | 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 | 0:8ad47e2b6f00 | 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 | 0:8ad47e2b6f00 | 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 |
igor_v | 0:8ad47e2b6f00 | 98 | |
igor_v | 0:8ad47e2b6f00 | 99 |