cfg.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415
  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_GOWONE_125A_AC_I3_O1
  24. //#define PRJ_TEST_AC_I3_O3
  25. //#define PRJ_ESOUTH_DC_I1_O4_RGB5
  26. //#define PRJ_INST2302_DC_OLED
  27. //#define PRJ_INST2106_AC_I1_O1_OLED
  28. //#define PRJ_YST_AC_I1_O1
  29. //#define PRJ_YUNNAN_AC_I1_O1
  30. #define PRJ_DUALWIRES_AC_I3_O2
  31. //#define PRJ_IP_AC_I3_O3
  32. //#define PRJ_IP_AC_I3_O1
  33. //#define PRJ_IP_AC_I1_O1
  34. //#define PRJ_IP_YUNNAN_AC_I1_O1
  35. #define USE_MAIL
  36. #define MAIL_SEND_BUILTIN
  37. #define CHIP_T113i 0
  38. #define CHIP_T113s 1
  39. #define USE_MQTT
  40. #define MQTT_SERVER_BUILTIN
  41. //#define GNSS_ENABLE //EC200N-CN, 不支持gnss
  42. #define USE_BOARD_UPGRADE
  43. #if (CHIP_TYPE == CHIP_T113s)
  44. #define USE_WATCHDOG
  45. #endif
  46. #if (defined PRJ_XIAN_AC_I1_O1_P4) || (defined PRJ_XIAN_AC_I1_O1_P8) //GOM037
  47. #define LANGUAGE 0 //chinese
  48. #define SMPLE_TIME 30 //ms
  49. #define SAVE_TIME 60000 //ms
  50. #define CASCADE_CNT 0
  51. #define PHASE_GROUP 8
  52. #ifdef PRJ_XIAN_AC_I1_O1_P4
  53. //#define GOM037PDU_GC20_04K_125H //ac_in1_out1_40a_p4_5ch_nologo_cn
  54. #define CHANNEL_DELAY 5
  55. #else
  56. //#define GOM037_PDU_GC10_08K_80H //ac_in1_out1_40a_p8_5ch_nologo_cn
  57. #define CHANNEL_DELAY 8
  58. #endif
  59. #define PROD_POWER_TYPE 0
  60. #define IN_INDEX_MAP {3,2,0,1}
  61. #elif (defined PRJ_USASL_AC_I3_O1) || (defined PRJ_USASL_AC_I3_O3)
  62. #define LANGUAGE 1 //english
  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 PDU_GC40_03K_125H //ac_in3_out3_40a_p8_12ch_nologo_en
  69. //#define PDU_GC60_04K_125H //ac_in3_out1_40a_p4_24ch_nologo_en
  70. #ifdef PRJ_USASL_AC_I3_O1
  71. #define PROD_POWER_TYPE 5
  72. #else
  73. #define PROD_POWER_TYPE 3
  74. #endif
  75. #elif (defined PRJ_ITK_AC_I1_O1) || (defined PRJ_ITK_AC_I3_O1)
  76. #define LANGUAGE 2 //russia
  77. #define SMPLE_TIME 30 //ms
  78. #define SAVE_TIME 60000 //ms
  79. #define CASCADE_CNT 0
  80. #define PHASE_GROUP 8
  81. #define CHANNEL_DELAY 8
  82. #define USE_LOGO_ITK
  83. #ifdef PRJ_ITK_AC_I1_O1
  84. #define PROD_POWER_TYPE 0
  85. #else
  86. #define PROD_POWER_TYPE 5
  87. #endif
  88. #elif (defined PRJ_LITECH_AC_I1_O1) || (defined PRJ_LITECH_AC_I3_O1)
  89. #define LANGUAGE 1 //english
  90. #define SMPLE_TIME 30 //ms
  91. #define SAVE_TIME 60000 //ms
  92. #define CASCADE_CNT 0
  93. #define USE_LOGO_LITECH
  94. #ifdef PRJ_LITECH_AC_I1_O1
  95. #define PHASE_GROUP 8
  96. #define CHANNEL_DELAY 8
  97. #define PROD_POWER_TYPE 0
  98. #else
  99. #define PHASE_GROUP 6
  100. #define CHANNEL_DELAY 6
  101. #define PROD_POWER_TYPE 5
  102. #endif
  103. #elif defined PRJ_STSC_I3_O3
  104. #define LANGUAGE 1 //english
  105. #define SMPLE_TIME 30 //ms
  106. #define SAVE_TIME 60000 //ms
  107. #define CASCADE_CNT 0
  108. #define PHASE_GROUP 8
  109. #define CHANNEL_DELAY 8
  110. #define PROD_POWER_TYPE 3
  111. #define NORTH_USER_SPECILS //north user specification
  112. #elif defined PRJ_STSC_I3_O1_OLED
  113. #define LANGUAGE 0 //english
  114. #define SMPLE_TIME 30 //ms
  115. #define SAVE_TIME 60000 //ms
  116. #define CASCADE_CNT 0
  117. #define PHASE_GROUP 8
  118. #define CHANNEL_DELAY 8
  119. #define PROD_POWER_TYPE 5
  120. #define USE_UI
  121. #define USE_BEEP
  122. #elif defined PRJ_ANDERSON_AC_I3_O3
  123. #define LANGUAGE 1 //english
  124. #define SMPLE_TIME 30 //ms
  125. #define SAVE_TIME 60000 //ms
  126. #define CASCADE_CNT 0
  127. #define PHASE_GROUP 8
  128. #define CHANNEL_DELAY 8
  129. #define USE_NF_CTRL
  130. #define PROD_POWER_TYPE 3
  131. #elif defined PRJ_HYPERTEC_AC_I3_O1
  132. //ac_in3_out1_36ch_nologo_en_hypertec
  133. #define LANGUAGE 1 //english
  134. #define SMPLE_TIME 30 //ms
  135. #define SAVE_TIME 60000 //ms
  136. #define CASCADE_CNT 0
  137. #define PHASE_GROUP 6
  138. #define CHANNEL_DELAY 6
  139. #define USE_LOGO_HYPERTEC
  140. #define PROD_POWER_TYPE 5
  141. #elif defined PRJ_INSPUR_DC_I_DC_O
  142. #define LANGUAGE 0 //chinese
  143. #define SMPLE_TIME 30 //ms
  144. #define SAVE_TIME 60000 //ms
  145. #define CASCADE_CNT 0
  146. #define PHASE_GROUP 6
  147. #define CHANNEL_DELAY 6
  148. #define PROD_POWER_TYPE 1
  149. #elif defined PRJ_SG_I3_O3
  150. #define LANGUAGE 0 //chinese
  151. #define SMPLE_TIME 30 //ms
  152. #define SAVE_TIME 60000 //ms
  153. #define CASCADE_CNT 0
  154. #define PHASE_GROUP 6
  155. #define CHANNEL_DELAY 6
  156. #define PROD_POWER_TYPE 3
  157. #elif defined PRJ_TEST
  158. #define LANGUAGE 0 //chinese
  159. #define SMPLE_TIME 30 //ms
  160. #define SAVE_TIME 60000 //ms
  161. #define CASCADE_CNT 0
  162. #define PHASE_GROUP 8
  163. #define CHANNEL_DELAY 8
  164. #define PROD_POWER_TYPE 5
  165. #elif defined PRJ_TEST_AC_I1_O1
  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 0
  173. //#define IN_INDEX_MAP {2,3,1,0}
  174. #elif defined PRJ_TEST_AC_I3_O1
  175. #define LANGUAGE 0 //chinese
  176. #define SMPLE_TIME 30 //ms
  177. #define SAVE_TIME 60000 //ms
  178. #define CASCADE_CNT 0
  179. #define PHASE_GROUP 8
  180. #define CHANNEL_DELAY 8
  181. #define PROD_POWER_TYPE 5
  182. #elif defined PRJ_TEST_AC_I3_O3
  183. #define LANGUAGE 0 //chinese
  184. #define SMPLE_TIME 30 //ms
  185. #define SAVE_TIME 60000 //ms
  186. #define CASCADE_CNT 0
  187. #define PHASE_GROUP 8
  188. #define CHANNEL_DELAY 8
  189. #define PROD_POWER_TYPE 3
  190. #define BRD_MAX 2
  191. #define MONWAY 1
  192. #elif defined PRJ_GOWONE_125A_AC_I3_O1
  193. #define LANGUAGE 1 // //english
  194. #define SMPLE_TIME 30 // ms
  195. #define SAVE_TIME 60000 // ms
  196. #define CASCADE_CNT 0
  197. #define PHASE_GROUP 12
  198. #define CHANNEL_DELAY 12
  199. #define PROD_POWER_TYPE 5
  200. #define USE_WATCHDOG
  201. #define USE_LOGO_GOWONE
  202. #define USE_BEEP 1
  203. #define USE_LED 1
  204. #elif defined PRJ_IP_AC_I3_O3
  205. #define LANGUAGE 0
  206. #define SMPLE_TIME 30 //ms
  207. #define SAVE_TIME 60000 //ms
  208. #define CASCADE_CNT 0
  209. #define PHASE_GROUP 8
  210. #define CHANNEL_DELAY 8
  211. #define PROD_POWER_TYPE 3
  212. #define NOT_USE_CONTROL
  213. #elif defined PRJ_INST2302_DC_OLED
  214. #define LANGUAGE 0 //chinese
  215. #define SMPLE_TIME 30 //ms
  216. #define SAVE_TIME 60000 //ms
  217. #define CASCADE_CNT 0
  218. #define PHASE_GROUP 8
  219. #define CHANNEL_DELAY 8
  220. #define PROD_POWER_TYPE 1
  221. #define USE_UI
  222. #define USE_SCREEN_LED
  223. //#define USE_SCREEN_LCD
  224. #elif defined PRJ_INST2106_AC_I1_O1_OLED
  225. #define LANGUAGE 0 //chinese
  226. #define SMPLE_TIME 30 //ms
  227. #define SAVE_TIME 60000 //ms
  228. #define CASCADE_CNT 0
  229. #define PHASE_GROUP 8
  230. #define CHANNEL_DELAY 8
  231. #define PROD_POWER_TYPE 0
  232. #define USE_UI
  233. #define ROTATE 180
  234. #define FLIP_TIME 3
  235. #elif defined PRJ_ESOUTH_DC_I1_O4_RGB5
  236. #define LANGUAGE 0 //chinese
  237. #define SMPLE_TIME 30 //ms
  238. #define SAVE_TIME 60000 //ms
  239. #define CASCADE_CNT 0
  240. #define PHASE_GROUP 8
  241. #define CHANNEL_DELAY 8
  242. #define PROD_POWER_TYPE 1
  243. #define SCREEN_RGB
  244. #define USE_WATCHDOG
  245. #define BRD_MAX 10
  246. #define USE_SMART_DETECTION_CTRL 1
  247. #define NEW_GPIO
  248. #elif defined PRJ_YST_AC_I1_O1
  249. #define LANGUAGE 0 //chinese
  250. #define SMPLE_TIME 30 //ms
  251. #define SAVE_TIME 60000 //ms
  252. #define CASCADE_CNT 0
  253. #define PHASE_GROUP 6
  254. #define CHANNEL_DELAY 6
  255. #define PROD_POWER_TYPE 0
  256. #define USE_CH_CTRL_CONFIG
  257. #define USE_BEEP 1
  258. #define USE_LED 1
  259. #elif defined PRJ_YUNNAN_AC_I1_O1
  260. #define LANGUAGE 0 //chinese
  261. #define SMPLE_TIME 30 //ms
  262. #define SAVE_TIME 60000 //ms
  263. #define CASCADE_CNT 0
  264. #define PHASE_GROUP 6
  265. #define CHANNEL_DELAY 6
  266. #define PROD_POWER_TYPE 0
  267. #define USE_BREAKER_ALARM
  268. #define USE_BEEP 1
  269. #define USE_LED 1
  270. #define USE_Cellular
  271. #elif defined PRJ_DUALWIRES_AC_I3_O2
  272. #define LANGUAGE 0 //chinese
  273. #define SMPLE_TIME 30 //ms
  274. #define SAVE_TIME 60000 //ms
  275. #define CASCADE_CNT 0
  276. #define PHASE_GROUP 8
  277. #define CHANNEL_DELAY 8
  278. #define PROD_POWER_TYPE 6
  279. #define BRD_MAX 12
  280. #define MONWAY 1
  281. #elif (defined PRJ_IP_AC_I3_O1)
  282. #define LANGUAGE 0
  283. #define SMPLE_TIME 30 //ms
  284. #define SAVE_TIME 60000 //ms
  285. #define CASCADE_CNT 0
  286. #define PHASE_GROUP 8
  287. #define CHANNEL_DELAY 8
  288. #define PROD_POWER_TYPE 5
  289. #define USE_BEEP 1
  290. //#define NOT_USE_CONTROL
  291. #elif (defined PRJ_IP_AC_I1_O1)
  292. #define LANGUAGE 0
  293. #define SMPLE_TIME 30 //ms
  294. #define SAVE_TIME 60000 //ms
  295. #define CASCADE_CNT 0
  296. #define PHASE_GROUP 8
  297. #define CHANNEL_DELAY 8
  298. #define PROD_POWER_TYPE 0
  299. #define USE_BEEP 1
  300. #define USE_LED 1
  301. #elif (defined PRJ_IP_YUNNAN_AC_I1_O1)
  302. #define LANGUAGE 0
  303. #define SMPLE_TIME 30 //ms
  304. #define SAVE_TIME 60000 //ms
  305. #define CASCADE_CNT 0
  306. #define PHASE_GROUP 8
  307. #define CHANNEL_DELAY 8
  308. #define PROD_POWER_TYPE 0
  309. #define USE_BEEP 1
  310. #define USE_LED 1
  311. #define USE_Cellular
  312. #else
  313. #error define a PRJ_XXXX please!
  314. #endif
  315. #endif