cfg.h 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. #ifndef __CONFIG_Hx__
  2. #define __CONFIG_Hx__
  3. #define VERSION "V0.0.1"
  4. #define PROD_ID 0
  5. #define PROD_TYPE 1
  6. /////////////customer demannd//////////////////////
  7. //#define PRJ_XIAN_AC_I1_O1_P4
  8. //#define PRJ_XIAN_AC_I1_O1_P8
  9. //#define PRJ_USASL_AC_I3_O1
  10. //#define PRJ_USASL_AC_I3_O3
  11. //#define PRJ_ITK_AC_I1_O1
  12. #define PRJ_ITK_AC_I3_O1
  13. //#define PRJ_STSC_I3_O3
  14. //#define PRJ_INSPUR_DC_I_DC_O
  15. //#define PRJ_ANDERSON_AC_I3_O3
  16. //#define PRJ_HYPERTEC_AC_I3_O1
  17. //#define PRJ_TEST
  18. #if (defined PRJ_XIAN_AC_I1_O1_P4) || (defined PRJ_XIAN_AC_I1_O1_P8) //GOM037
  19. #define LANGUAGE 0 //chinese
  20. #define SMPLE_TIME 30 //ms
  21. #define SAVE_TIME 60000 //ms
  22. #define CASCADE_CNT 0
  23. #define MAX_CHN_COUNT 16
  24. #define PHASE_GROUP 8
  25. #ifdef PRJ_XIAN_AC_I1_O1_P4
  26. //#define GOM037PDU_GC20_04K_125H //ac_in1_out1_40a_p4_5ch_nologo_cn
  27. #define CHANNEL_DELAY 5
  28. #else
  29. //#define GOM037_PDU_GC10_08K_80H //ac_in1_out1_40a_p8_5ch_nologo_cn
  30. #define CHANNEL_DELAY 8
  31. #endif
  32. #define USE_SMTP
  33. #define SMTP_SEND_BUILTIN
  34. #define PROD_POWER_TYPE 0
  35. #define IN_INDEX_MAP {3,2,0,1}
  36. #elif (defined PRJ_USASL_AC_I3_O1) || (defined PRJ_USASL_AC_I3_O3)
  37. #define LANGUAGE 1 //english
  38. #define SMPLE_TIME 30 //ms
  39. #define SAVE_TIME 60000 //ms
  40. #define CASCADE_CNT 0
  41. #define MAX_CHN_COUNT 16
  42. #define PHASE_GROUP 8
  43. #define CHANNEL_DELAY 8
  44. #define USE_SMTP
  45. #define SMTP_SEND_BUILTIN
  46. //#define PDU_GC40_03K_125H //ac_in3_out3_40a_p8_12ch_nologo_en
  47. //#define PDU_GC60_04K_125H //ac_in3_out1_40a_p4_24ch_nologo_en
  48. #ifdef PRJ_USASL_AC_I3_O1
  49. #define PROD_POWER_TYPE 5
  50. #else
  51. #define PROD_POWER_TYPE 3
  52. #endif
  53. #elif (defined PRJ_ITK_AC_I1_O1) || (defined PRJ_ITK_AC_I3_O1)
  54. #define LANGUAGE 2 //russia
  55. #define SMPLE_TIME 30 //ms
  56. #define SAVE_TIME 60000 //ms
  57. #define CASCADE_CNT 0
  58. #define MAX_CHN_COUNT 16
  59. #define PHASE_GROUP 8
  60. #define CHANNEL_DELAY 8
  61. #define USE_LOGO_ITK
  62. #define USE_SMTP
  63. #define SMTP_SEND_BUILTIN
  64. #ifdef PRJ_ITK_AC_I1_O1
  65. #define PROD_POWER_TYPE 0
  66. #else
  67. #define PROD_POWER_TYPE 5
  68. #endif
  69. #elif (defined PRJ_LITECH_AC_I1_O1) || (defined PRJ_LITECH_AC_I3_O1)
  70. #define LANGUAGE 1 //english
  71. #define SMPLE_TIME 30 //ms
  72. #define SAVE_TIME 60000 //ms
  73. #define CASCADE_CNT 0
  74. #define MAX_CHN_COUNT 16
  75. #define PHASE_GROUP 8
  76. #define CHANNEL_DELAY 8
  77. #define USE_LOGO_LITECH
  78. #define USE_SMTP
  79. #define SMTP_SEND_BUILTIN
  80. #ifdef PRJ_LITECH_AC_I1_O1
  81. #define PROD_POWER_TYPE 0
  82. #else
  83. #define PROD_POWER_TYPE 5
  84. #endif
  85. #elif defined PRJ_STSC_I3_O3
  86. #define LANGUAGE 1 //english
  87. #define SMPLE_TIME 30 //ms
  88. #define SAVE_TIME 60000 //ms
  89. #define CASCADE_CNT 0
  90. #define MAX_CHN_COUNT 24
  91. #define PHASE_GROUP 8
  92. #define CHANNEL_DELAY 8
  93. #define USE_SMTP
  94. #define SMTP_SEND_BUILTIN
  95. #define PROD_POWER_TYPE 3
  96. #elif defined PRJ_ANDERSON_AC_I3_O3
  97. #define LANGUAGE 1 //english
  98. #define SMPLE_TIME 30 //ms
  99. #define SAVE_TIME 60000 //ms
  100. #define CASCADE_CNT 0
  101. #define MAX_CHN_COUNT 24
  102. #define PHASE_GROUP 8
  103. #define CHANNEL_DELAY 8
  104. #define USE_SMTP
  105. #define SMTP_SEND_BUILTIN
  106. #define PROD_POWER_TYPE 3
  107. #elif defined PRJ_HYPERTEC_AC_I3_O1
  108. //ac_in3_out1_36ch_nologo_en_hypertec
  109. #define LANGUAGE 1 //english
  110. #define SMPLE_TIME 30 //ms
  111. #define SAVE_TIME 60000 //ms
  112. #define CASCADE_CNT 0
  113. #define MAX_CHN_COUNT 16
  114. #define PHASE_GROUP 6
  115. #define CHANNEL_DELAY 6
  116. #define USE_LOGO_HYPERTEC
  117. #define USE_SMTP
  118. #define SMTP_SEND_BUILTIN
  119. #define PROD_POWER_TYPE 5
  120. #elif defined PRJ_INSPUR_DC_I_DC_O
  121. #define LANGUAGE 0 //english
  122. #define SMPLE_TIME 30 //ms
  123. #define SAVE_TIME 60000 //ms
  124. #define CASCADE_CNT 0
  125. #define MAX_CHN_COUNT 16
  126. #define PHASE_GROUP 6
  127. #define CHANNEL_DELAY 6
  128. #define USE_SMTP
  129. #define SMTP_SEND_BUILTIN
  130. #define PROD_POWER_TYPE 1
  131. #elif defined PRJ_TEST
  132. #define LANGUAGE 0 //chinese
  133. #define SMPLE_TIME 30 //ms
  134. #define SAVE_TIME 60000 //ms
  135. #define CASCADE_CNT 0
  136. #define MAX_CHN_COUNT 2//4
  137. #define PHASE_GROUP 8
  138. #define CHANNEL_DELAY 8
  139. //#define USE_SMTP
  140. //#define SMTP_SEND_BUILTIN
  141. //#define USE_MQTT
  142. //#define MQTT_SERVER_BUILTIN
  143. #define PROD_POWER_TYPE 3
  144. #else
  145. #error define a PRJ_XXXX please!
  146. #endif
  147. #endif