cfg.h 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. #ifndef __CONFIG_Hx__
  2. #define __CONFIG_Hx__
  3. #define VERSION "V0.0.2"
  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_LITECH_AC_I1_O1
  15. //#define PRJ_LITECH_AC_I3_O1
  16. //#define PRJ_INSPUR_DC_I_DC_O
  17. //#define PRJ_ANDERSON_AC_I3_O3
  18. //#define PRJ_HYPERTEC_AC_I3_O1
  19. //#define PRJ_SG_I3_O3
  20. #define PRJ_TEST
  21. //#define PRJ_TEST_AC_I1_O1
  22. //#define PRJ_TEST_AC_I3_O1
  23. //#define PRJ_IP_AC_I3_O3
  24. //
  25. #define USE_BOARD_UPGRADE
  26. #define USE_MAIL
  27. #define MAIL_SEND_BUILTIN
  28. #define CHIP_T113i 0
  29. #define CHIP_T113s 1
  30. #define USE_MQTT
  31. #define MQTT_SERVER_BUILTIN
  32. #if (defined PRJ_XIAN_AC_I1_O1_P4) || (defined PRJ_XIAN_AC_I1_O1_P8) //GOM037
  33. #define LANGUAGE 0 //chinese
  34. #define SMPLE_TIME 30 //ms
  35. #define SAVE_TIME 60000 //ms
  36. #define CASCADE_CNT 0
  37. #define PHASE_GROUP 8
  38. #ifdef PRJ_XIAN_AC_I1_O1_P4
  39. //#define GOM037PDU_GC20_04K_125H //ac_in1_out1_40a_p4_5ch_nologo_cn
  40. #define CHANNEL_DELAY 5
  41. #else
  42. //#define GOM037_PDU_GC10_08K_80H //ac_in1_out1_40a_p8_5ch_nologo_cn
  43. #define CHANNEL_DELAY 8
  44. #endif
  45. #define PROD_POWER_TYPE 0
  46. #define IN_INDEX_MAP {3,2,0,1}
  47. #elif (defined PRJ_USASL_AC_I3_O1) || (defined PRJ_USASL_AC_I3_O3)
  48. #define LANGUAGE 1 //english
  49. #define SMPLE_TIME 30 //ms
  50. #define SAVE_TIME 60000 //ms
  51. #define CASCADE_CNT 0
  52. #define PHASE_GROUP 8
  53. #define CHANNEL_DELAY 8
  54. //#define PDU_GC40_03K_125H //ac_in3_out3_40a_p8_12ch_nologo_en
  55. //#define PDU_GC60_04K_125H //ac_in3_out1_40a_p4_24ch_nologo_en
  56. #ifdef PRJ_USASL_AC_I3_O1
  57. #define PROD_POWER_TYPE 5
  58. #else
  59. #define PROD_POWER_TYPE 3
  60. #endif
  61. #elif (defined PRJ_ITK_AC_I1_O1) || (defined PRJ_ITK_AC_I3_O1)
  62. #define LANGUAGE 2 //russia
  63. #define SMPLE_TIME 30 //ms
  64. #define SAVE_TIME 60000 //ms
  65. #define CASCADE_CNT 0
  66. #define PHASE_GROUP 8
  67. #define CHANNEL_DELAY 8
  68. #define USE_LOGO_ITK
  69. #ifdef PRJ_ITK_AC_I1_O1
  70. #define PROD_POWER_TYPE 0
  71. #else
  72. #define PROD_POWER_TYPE 5
  73. #endif
  74. #elif (defined PRJ_LITECH_AC_I1_O1) || (defined PRJ_LITECH_AC_I3_O1)
  75. #define LANGUAGE 1 //english
  76. #define SMPLE_TIME 30 //ms
  77. #define SAVE_TIME 60000 //ms
  78. #define CASCADE_CNT 0
  79. #define USE_LOGO_LITECH
  80. #ifdef PRJ_LITECH_AC_I1_O1
  81. #define PHASE_GROUP 8
  82. #define CHANNEL_DELAY 8
  83. #define PROD_POWER_TYPE 0
  84. #else
  85. #define PHASE_GROUP 6
  86. #define CHANNEL_DELAY 6
  87. #define PROD_POWER_TYPE 5
  88. #endif
  89. #elif defined PRJ_STSC_I3_O3
  90. #define LANGUAGE 1 //english
  91. #define SMPLE_TIME 30 //ms
  92. #define SAVE_TIME 60000 //ms
  93. #define CASCADE_CNT 0
  94. #define PHASE_GROUP 8
  95. #define CHANNEL_DELAY 8
  96. #define PROD_POWER_TYPE 3
  97. #elif defined PRJ_ANDERSON_AC_I3_O3
  98. #define LANGUAGE 1 //english
  99. #define SMPLE_TIME 30 //ms
  100. #define SAVE_TIME 60000 //ms
  101. #define CASCADE_CNT 0
  102. #define PHASE_GROUP 8
  103. #define CHANNEL_DELAY 8
  104. #define USE_NF_CTRL
  105. #define PROD_POWER_TYPE 3
  106. #elif defined PRJ_HYPERTEC_AC_I3_O1
  107. //ac_in3_out1_36ch_nologo_en_hypertec
  108. #define LANGUAGE 1 //english
  109. #define SMPLE_TIME 30 //ms
  110. #define SAVE_TIME 60000 //ms
  111. #define CASCADE_CNT 0
  112. #define PHASE_GROUP 6
  113. #define CHANNEL_DELAY 6
  114. #define USE_LOGO_HYPERTEC
  115. #define PROD_POWER_TYPE 5
  116. #elif defined PRJ_INSPUR_DC_I_DC_O
  117. #define LANGUAGE 0 //english
  118. #define SMPLE_TIME 30 //ms
  119. #define SAVE_TIME 60000 //ms
  120. #define CASCADE_CNT 0
  121. #define PHASE_GROUP 6
  122. #define CHANNEL_DELAY 6
  123. #define PROD_POWER_TYPE 1
  124. #elif defined PRJ_SG_I3_O3
  125. #define LANGUAGE 0 //english
  126. #define SMPLE_TIME 30 //ms
  127. #define SAVE_TIME 60000 //ms
  128. #define CASCADE_CNT 0
  129. #define PHASE_GROUP 6
  130. #define CHANNEL_DELAY 6
  131. #define PROD_POWER_TYPE 3
  132. #elif defined PRJ_TEST
  133. #define LANGUAGE 0 //chinese
  134. #define SMPLE_TIME 30 //ms
  135. #define SAVE_TIME 60000 //ms
  136. #define CASCADE_CNT 0
  137. #define PHASE_GROUP 8
  138. #define CHANNEL_DELAY 8
  139. #define PROD_POWER_TYPE 5
  140. #elif defined PRJ_TEST_AC_I1_O1
  141. #define LANGUAGE 0 //chinese
  142. #define SMPLE_TIME 30 //ms
  143. #define SAVE_TIME 60000 //ms
  144. #define CASCADE_CNT 0
  145. #define PHASE_GROUP 8
  146. #define CHANNEL_DELAY 8
  147. #define PROD_POWER_TYPE 0
  148. #elif defined PRJ_TEST_AC_I3_O1
  149. #define LANGUAGE 0 //chinese
  150. #define SMPLE_TIME 30 //ms
  151. #define SAVE_TIME 60000 //ms
  152. #define CASCADE_CNT 0
  153. #define PHASE_GROUP 8
  154. #define CHANNEL_DELAY 8
  155. #define PROD_POWER_TYPE 5
  156. #elif defined PRJ_IP_AC_I3_O3
  157. #define LANGUAGE 0
  158. #define SMPLE_TIME 30 //ms
  159. #define SAVE_TIME 60000 //ms
  160. #define CASCADE_CNT 0
  161. #define PHASE_GROUP 8
  162. #define CHANNEL_DELAY 8
  163. #define PROD_POWER_TYPE 3
  164. #define NOT_USE_CONTROL
  165. #elif defined PRJ_INST2302_DC_OLED
  166. #define LANGUAGE 0 //chinese
  167. #define SMPLE_TIME 30 //ms
  168. #define SAVE_TIME 60000 //ms
  169. #define CASCADE_CNT 0
  170. #define PHASE_GROUP 8
  171. #define CHANNEL_DELAY 8
  172. #define PROD_POWER_TYPE 1
  173. #else
  174. #error define a PRJ_XXXX please!
  175. #endif
  176. #endif