cfg.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. #ifndef __CONFIG_Hx__
  2. #define __CONFIG_Hx__
  3. #define VERSION "V0.0.1"
  4. #define PROD_ID 1
  5. #define PROD_TYPE 1
  6. #define PROD_POWER_TYPE 1
  7. #define LANGUAGE 0
  8. #define SMPLE_TIME 100 //ms
  9. #define SAVE_TIME 1000 //ms
  10. #define CASCADE_CNT 5
  11. #define MAX_CHN_COUNT 16
  12. #define PHASE_GROUP_CNT 8
  13. #define CHANNEL_DELAY_SEC 8
  14. /////////////customer demannd//////////////////////
  15. //#define CUST_GOM037 //xian
  16. //#define CUST_USASL
  17. //#define CUST_ANDERSON
  18. //#define CUST_HYPERTEC
  19. #define CUST_CGANGJIANG_RIVER
  20. #ifdef CUST_GOM037 //xian
  21. //#define GOM037_PDU_GC10_08K_80H //ac_in1_out1_40a_p8_5ch_nologo_cn
  22. //#define GOM037PDU_GC20_04K_125H //ac_in1_out1_40a_p4_5ch_nologo_cn
  23. #ifdef GOM037PDU_GC20_04K_125H
  24. #undef CHANNEL_DELAY_SEC
  25. #define CHANNEL_DELAY_SEC 5
  26. #endif
  27. #endif
  28. #ifdef CUST_USASL
  29. #define PDU_GC40_03K_125H //ac_in3_out3_40a_p8_12ch_nologo_en
  30. //#define PDU_GC60_04K_125H //ac_in3_out1_40a_p4_24ch_nologo_en
  31. #endif
  32. #ifdef CUST_ANDERSON
  33. #define USE_SMTP
  34. #define USE_NETSWITCH
  35. #define SW_STATIC_PORT_START
  36. #define SW_PORT_INDEX_START 0
  37. #define SW_PORT_INDEX_END 21
  38. //#define SW_STATIC_IP
  39. #ifdef SW_STATIC_IP
  40. #define SW_HOST_IP "192.168.234.1"
  41. #define SW_PDU_IP "192.168.234.132"
  42. #endif
  43. #undef MAX_CHN_COUNT
  44. #define MAX_CHN_COUNT 24
  45. #endif
  46. #ifdef CUST_HYPERTEC
  47. //ac_in3_out1_36ch_nologo_en_hypertec
  48. #undef PHASE_GROUP_CNT
  49. #undef CHANNEL_DELAY_SEC
  50. #define PHASE_GROUP_CNT 6
  51. #define CHANNEL_DELAY_SEC 6
  52. #endif
  53. #ifdef CUST_CGANGJIANG_RIVER
  54. #define __USE_CURL_SMTP
  55. #endif
  56. #define IS_IP 1
  57. ////////////////////////////////////////////////////
  58. #endif