cfg.h 8.1 KB

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