cfg.h 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  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_STSC_I3_O1_OLED
  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. //#define PRJ_INST2302_DC_OLED
  25. //#define PRJ_INST2106_AC_I1_O1_OLED
  26. //#define PRJ_IP_AC_I3_O1
  27. #define PRJ_IP_AC_I1_O1
  28. //#define USE_BOARD_UPGRADE
  29. #define USE_MAIL
  30. #define MAIL_SEND_BUILTIN
  31. #define CHIP_T113i 0
  32. #define CHIP_T113s 1
  33. #define USE_MQTT
  34. #define MQTT_SERVER_BUILTIN
  35. #if (defined PRJ_XIAN_AC_I1_O1_P4) || (defined PRJ_XIAN_AC_I1_O1_P8) //GOM037
  36. #define LANGUAGE 0 //chinese
  37. #define SMPLE_TIME 30 //ms
  38. #define SAVE_TIME 60000 //ms
  39. #define CASCADE_CNT 0
  40. #define PHASE_GROUP 8
  41. #ifdef PRJ_XIAN_AC_I1_O1_P4
  42. //#define GOM037PDU_GC20_04K_125H //ac_in1_out1_40a_p4_5ch_nologo_cn
  43. #define CHANNEL_DELAY 5
  44. #else
  45. //#define GOM037_PDU_GC10_08K_80H //ac_in1_out1_40a_p8_5ch_nologo_cn
  46. #define CHANNEL_DELAY 8
  47. #endif
  48. #define PROD_POWER_TYPE 0
  49. #define IN_INDEX_MAP {3,2,0,1}
  50. #elif (defined PRJ_USASL_AC_I3_O1) || (defined PRJ_USASL_AC_I3_O3)
  51. #define LANGUAGE 1 //english
  52. #define SMPLE_TIME 30 //ms
  53. #define SAVE_TIME 60000 //ms
  54. #define CASCADE_CNT 0
  55. #define PHASE_GROUP 8
  56. #define CHANNEL_DELAY 8
  57. //#define PDU_GC40_03K_125H //ac_in3_out3_40a_p8_12ch_nologo_en
  58. //#define PDU_GC60_04K_125H //ac_in3_out1_40a_p4_24ch_nologo_en
  59. #ifdef PRJ_USASL_AC_I3_O1
  60. #define PROD_POWER_TYPE 5
  61. #else
  62. #define PROD_POWER_TYPE 3
  63. #endif
  64. #elif (defined PRJ_ITK_AC_I1_O1) || (defined PRJ_ITK_AC_I3_O1)
  65. #define LANGUAGE 2 //russia
  66. #define SMPLE_TIME 30 //ms
  67. #define SAVE_TIME 60000 //ms
  68. #define CASCADE_CNT 0
  69. #define PHASE_GROUP 8
  70. #define CHANNEL_DELAY 8
  71. #define USE_LOGO_ITK
  72. #ifdef PRJ_ITK_AC_I1_O1
  73. #define PROD_POWER_TYPE 0
  74. #else
  75. #define PROD_POWER_TYPE 5
  76. #endif
  77. #elif (defined PRJ_LITECH_AC_I1_O1) || (defined PRJ_LITECH_AC_I3_O1)
  78. #define LANGUAGE 1 //english
  79. #define SMPLE_TIME 30 //ms
  80. #define SAVE_TIME 60000 //ms
  81. #define CASCADE_CNT 0
  82. #define USE_LOGO_LITECH
  83. #ifdef PRJ_LITECH_AC_I1_O1
  84. #define PHASE_GROUP 8
  85. #define CHANNEL_DELAY 8
  86. #define PROD_POWER_TYPE 0
  87. #else
  88. #define PHASE_GROUP 6
  89. #define CHANNEL_DELAY 6
  90. #define PROD_POWER_TYPE 5
  91. #endif
  92. #elif defined PRJ_STSC_I3_O3
  93. #define LANGUAGE 1 //english
  94. #define SMPLE_TIME 30 //ms
  95. #define SAVE_TIME 60000 //ms
  96. #define CASCADE_CNT 0
  97. #define PHASE_GROUP 8
  98. #define CHANNEL_DELAY 8
  99. #define PROD_POWER_TYPE 3
  100. #define NORTH_USER_SPECILS //north user specification
  101. #elif defined PRJ_STSC_I3_O1_OLED
  102. #define LANGUAGE 0 //english
  103. #define SMPLE_TIME 30 //ms
  104. #define SAVE_TIME 60000 //ms
  105. #define CASCADE_CNT 0
  106. #define PHASE_GROUP 8
  107. #define CHANNEL_DELAY 8
  108. #define PROD_POWER_TYPE 5
  109. #define USE_UI
  110. #define USE_BEEP
  111. #elif defined PRJ_ANDERSON_AC_I3_O3
  112. #define LANGUAGE 1 //english
  113. #define SMPLE_TIME 30 //ms
  114. #define SAVE_TIME 60000 //ms
  115. #define CASCADE_CNT 0
  116. #define PHASE_GROUP 8
  117. #define CHANNEL_DELAY 8
  118. #define USE_NF_CTRL
  119. #define PROD_POWER_TYPE 3
  120. #elif defined PRJ_HYPERTEC_AC_I3_O1
  121. //ac_in3_out1_36ch_nologo_en_hypertec
  122. #define LANGUAGE 1 //english
  123. #define SMPLE_TIME 30 //ms
  124. #define SAVE_TIME 60000 //ms
  125. #define CASCADE_CNT 0
  126. #define PHASE_GROUP 6
  127. #define CHANNEL_DELAY 6
  128. #define USE_LOGO_HYPERTEC
  129. #define PROD_POWER_TYPE 5
  130. #elif defined PRJ_INSPUR_DC_I_DC_O
  131. #define LANGUAGE 0 //english
  132. #define SMPLE_TIME 30 //ms
  133. #define SAVE_TIME 60000 //ms
  134. #define CASCADE_CNT 0
  135. #define PHASE_GROUP 6
  136. #define CHANNEL_DELAY 6
  137. #define PROD_POWER_TYPE 1
  138. #elif defined PRJ_SG_I3_O3
  139. #define LANGUAGE 0 //english
  140. #define SMPLE_TIME 30 //ms
  141. #define SAVE_TIME 60000 //ms
  142. #define CASCADE_CNT 0
  143. #define PHASE_GROUP 6
  144. #define CHANNEL_DELAY 6
  145. #define PROD_POWER_TYPE 3
  146. #elif defined PRJ_TEST
  147. #define LANGUAGE 0 //chinese
  148. #define SMPLE_TIME 30 //ms
  149. #define SAVE_TIME 60000 //ms
  150. #define CASCADE_CNT 0
  151. #define PHASE_GROUP 8
  152. #define CHANNEL_DELAY 8
  153. #define PROD_POWER_TYPE 5
  154. #elif defined PRJ_TEST_AC_I1_O1
  155. #define LANGUAGE 0 //chinese
  156. #define SMPLE_TIME 30 //ms
  157. #define SAVE_TIME 60000 //ms
  158. #define CASCADE_CNT 0
  159. #define PHASE_GROUP 8
  160. #define CHANNEL_DELAY 8
  161. #define PROD_POWER_TYPE 0
  162. #elif defined PRJ_TEST_AC_I3_O1
  163. #define LANGUAGE 0 //chinese
  164. #define SMPLE_TIME 30 //ms
  165. #define SAVE_TIME 60000 //ms
  166. #define CASCADE_CNT 0
  167. #define PHASE_GROUP 8
  168. #define CHANNEL_DELAY 8
  169. #define PROD_POWER_TYPE 5
  170. #elif defined PRJ_IP_AC_I3_O3
  171. #define LANGUAGE 0
  172. #define SMPLE_TIME 30 //ms
  173. #define SAVE_TIME 60000 //ms
  174. #define CASCADE_CNT 0
  175. #define PHASE_GROUP 8
  176. #define CHANNEL_DELAY 8
  177. #define PROD_POWER_TYPE 3
  178. #define NOT_USE_CONTROL
  179. #elif defined PRJ_INST2302_DC_OLED
  180. #define LANGUAGE 0 //chinese
  181. #define SMPLE_TIME 30 //ms
  182. #define SAVE_TIME 60000 //ms
  183. #define CASCADE_CNT 0
  184. #define PHASE_GROUP 8
  185. #define CHANNEL_DELAY 8
  186. #define PROD_POWER_TYPE 1
  187. #define USE_UI
  188. #define USE_SCREEN_LED
  189. //#define USE_SCREEN_LCD
  190. #elif defined PRJ_INST2106_AC_I1_O1_OLED
  191. #define LANGUAGE 0 //chinese
  192. #define SMPLE_TIME 30 //ms
  193. #define SAVE_TIME 60000 //ms
  194. #define CASCADE_CNT 0
  195. #define PHASE_GROUP 8
  196. #define CHANNEL_DELAY 8
  197. #define PROD_POWER_TYPE 0
  198. #define USE_UI
  199. #define ROTATE 180
  200. #define FLIP_TIME 3
  201. #elif (defined PRJ_IP_AC_I3_O1)
  202. #define LANGUAGE 0
  203. #define SMPLE_TIME 30 //ms
  204. #define SAVE_TIME 60000 //ms
  205. #define CASCADE_CNT 0
  206. #define PHASE_GROUP 8
  207. #define CHANNEL_DELAY 8
  208. #define PROD_POWER_TYPE 5
  209. //#define NOT_USE_CONTROL
  210. #elif (defined PRJ_IP_AC_I1_O1)
  211. #define LANGUAGE 0
  212. #define SMPLE_TIME 30 //ms
  213. #define SAVE_TIME 60000 //ms
  214. #define CASCADE_CNT 0
  215. #define PHASE_GROUP 8
  216. #define CHANNEL_DELAY 8
  217. #define PROD_POWER_TYPE 0
  218. #else
  219. #error define a PRJ_XXXX please!
  220. #endif
  221. #endif