cfg.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492
  1. #ifndef __CONFIG_Hx__
  2. #define __CONFIG_Hx__
  3. #define VERSION "V1.3.0"
  4. /////////////customer demannd//////////////////////
  5. //#define PRJ_XIAN_AC_I1_O1_P4
  6. //#define PRJ_XIAN_AC_I1_O1_P8
  7. //#define PRJ_USASL_AC_I3_O1
  8. //#define PRJ_USASL_AC_I3_O3
  9. //#define PRJ_ITK_AC_I1_O1
  10. //#define PRJ_ITK_AC_I3_O1
  11. //#define PRJ_STSC_I3_O3
  12. //#define PRJ_STSC_I3_O1_OLED
  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_GOWONE_125A_AC_I3_O1
  23. #define PRJ_Malaysia_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_2405_AC_I1_O1_OLED
  32. //#define PRJ_IP_AC_I3_O3
  33. //#define PRJ_IP_AC_I3_O1
  34. //#define PRJ_IP_AC_I1_O1
  35. //#define PRJ_IP_YUNNAN_AC_I1_O1
  36. //#define PRJ_IP_CHONGQING_AC_I1_O1
  37. //#define PRJ_IP_AOSENS_AC_I1_O1
  38. //#define PRJ_IP_AOSENS_DC_I_O
  39. #define USE_MAIL
  40. #define MAIL_SEND_BUILTIN
  41. #define CHIP_T113i 0
  42. #define CHIP_T113s 1
  43. #define USE_MQTT
  44. #define MQTT_SERVER_BUILTIN
  45. //#define GNSS_ENABLE //EC200N-CN, 不支持gnss
  46. #define USE_BOARD_UPGRADE
  47. #if (CHIP_TYPE == CHIP_T113s)
  48. #define USE_WATCHDOG
  49. #endif
  50. #if (defined PRJ_XIAN_AC_I1_O1_P4) || (defined PRJ_XIAN_AC_I1_O1_P8) //GOM037
  51. #define LANGUAGE 0 //chinese
  52. #define SMPLE_TIME 30 //ms
  53. #define SAVE_TIME 60000 //ms
  54. #define CASCADE_CNT 0
  55. #define PHASE_GROUP 8
  56. #ifdef PRJ_XIAN_AC_I1_O1_P4
  57. //#define GOM037PDU_GC20_04K_125H //ac_in1_out1_40a_p4_5ch_nologo_cn
  58. #define CHANNEL_DELAY 5
  59. #else
  60. //#define GOM037_PDU_GC10_08K_80H //ac_in1_out1_40a_p8_5ch_nologo_cn
  61. #define CHANNEL_DELAY 8
  62. #endif
  63. #define PROD_POWER_TYPE 0
  64. #define IN_INDEX_MAP {3,2,0,1}
  65. #elif (defined PRJ_USASL_AC_I3_O1) || (defined PRJ_USASL_AC_I3_O3)
  66. #define LANGUAGE 1 //english
  67. #define SMPLE_TIME 30 //ms
  68. #define SAVE_TIME 60000 //ms
  69. #define CASCADE_CNT 0
  70. #define PHASE_GROUP 8
  71. #define CHANNEL_DELAY 8
  72. //#define PDU_GC40_03K_125H //ac_in3_out3_40a_p8_12ch_nologo_en
  73. //#define PDU_GC60_04K_125H //ac_in3_out1_40a_p4_24ch_nologo_en
  74. #ifdef PRJ_USASL_AC_I3_O1
  75. #define PROD_POWER_TYPE 5
  76. #else
  77. #define PROD_POWER_TYPE 3
  78. #endif
  79. #elif (defined PRJ_ITK_AC_I1_O1) || (defined PRJ_ITK_AC_I3_O1)
  80. #define LANGUAGE 2 //russia
  81. #define SMPLE_TIME 30 //ms
  82. #define SAVE_TIME 60000 //ms
  83. #define CASCADE_CNT 0
  84. #define PHASE_GROUP 8
  85. #define CHANNEL_DELAY 8
  86. #define USE_LOGO_ITK
  87. #ifdef PRJ_ITK_AC_I1_O1
  88. #define PROD_POWER_TYPE 0
  89. #else
  90. #define PROD_POWER_TYPE 5
  91. #endif
  92. #elif (defined PRJ_LITECH_AC_I1_O1) || (defined PRJ_LITECH_AC_I3_O1)
  93. #define LANGUAGE 1 //english
  94. #define SMPLE_TIME 30 //ms
  95. #define SAVE_TIME 60000 //ms
  96. #define CASCADE_CNT 0
  97. #define USE_LOGO_LITECH
  98. #ifdef PRJ_LITECH_AC_I1_O1
  99. #define PHASE_GROUP 8
  100. #define CHANNEL_DELAY 8
  101. #define PROD_POWER_TYPE 0
  102. #else
  103. #define PHASE_GROUP 6
  104. #define CHANNEL_DELAY 6
  105. #define PROD_POWER_TYPE 5
  106. #endif
  107. #elif defined PRJ_STSC_I3_O3
  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 8
  113. #define CHANNEL_DELAY 8
  114. #define PROD_POWER_TYPE 3
  115. #define NORTH_USER_SPECILS //north user specification
  116. #elif defined PRJ_STSC_I3_O1_OLED
  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 8
  122. #define CHANNEL_DELAY 8
  123. #define PROD_POWER_TYPE 5
  124. #define USE_UI
  125. #define USE_BEEP
  126. #elif defined PRJ_ANDERSON_AC_I3_O3
  127. #define LANGUAGE 1 //english
  128. #define SMPLE_TIME 30 //ms
  129. #define SAVE_TIME 60000 //ms
  130. #define CASCADE_CNT 0
  131. #define PHASE_GROUP 8
  132. #define CHANNEL_DELAY 8
  133. #define USE_NF_CTRL
  134. #define PROD_POWER_TYPE 3
  135. #elif defined PRJ_HYPERTEC_AC_I3_O1
  136. //ac_in3_out1_36ch_nologo_en_hypertec
  137. #define LANGUAGE 1 //english
  138. #define SMPLE_TIME 30 //ms
  139. #define SAVE_TIME 60000 //ms
  140. #define CASCADE_CNT 0
  141. #define PHASE_GROUP 6
  142. #define CHANNEL_DELAY 6
  143. #define USE_LOGO_HYPERTEC
  144. #define PROD_POWER_TYPE 5
  145. #elif defined PRJ_INSPUR_DC_I_DC_O
  146. #define LANGUAGE 0 //chinese
  147. #define SMPLE_TIME 30 //ms
  148. #define SAVE_TIME 60000 //ms
  149. #define CASCADE_CNT 0
  150. #define PHASE_GROUP 6
  151. #define CHANNEL_DELAY 6
  152. #define PROD_POWER_TYPE 1
  153. #elif defined PRJ_SG_I3_O3
  154. #define LANGUAGE 0 //chinese
  155. #define SMPLE_TIME 30 //ms
  156. #define SAVE_TIME 60000 //ms
  157. #define CASCADE_CNT 0
  158. #define PHASE_GROUP 6
  159. #define CHANNEL_DELAY 6
  160. #define PROD_POWER_TYPE 3
  161. #elif defined PRJ_TEST
  162. #define LANGUAGE 0 //chinese
  163. #define SMPLE_TIME 30 //ms
  164. #define SAVE_TIME 60000 //ms
  165. #define CASCADE_CNT 0
  166. #define PHASE_GROUP 8
  167. #define CHANNEL_DELAY 8
  168. #define PROD_POWER_TYPE 5
  169. #elif defined PRJ_TEST_AC_I1_O1
  170. #define LANGUAGE 0 //chinese
  171. #define SMPLE_TIME 30 //ms
  172. #define SAVE_TIME 60000 //ms
  173. #define CASCADE_CNT 0
  174. #define PHASE_GROUP 8
  175. #define CHANNEL_DELAY 8
  176. #define PROD_POWER_TYPE 0
  177. //#define IN_INDEX_MAP {2,3,1,0}
  178. #elif defined PRJ_2405_AC_I1_O1_OLED
  179. #define LANGUAGE 0 //chinese
  180. #define SMPLE_TIME 30 //ms
  181. #define SAVE_TIME 60000 //ms
  182. #define CASCADE_CNT 0
  183. #define PHASE_GROUP 4
  184. #define CHANNEL_DELAY 4
  185. #define PROD_POWER_TYPE 0
  186. #define BRD_MAX 3
  187. #define USE_UI
  188. #elif defined PRJ_TEST_AC_I3_O1
  189. #define LANGUAGE 0 //chinese
  190. #define SMPLE_TIME 30 //ms
  191. #define SAVE_TIME 60000 //ms
  192. #define CASCADE_CNT 0
  193. #define PHASE_GROUP 8
  194. #define CHANNEL_DELAY 8
  195. #define PROD_POWER_TYPE 5
  196. #elif defined PRJ_TEST_AC_I3_O3
  197. #define LANGUAGE 0 //chinese
  198. #define SMPLE_TIME 30 //ms
  199. #define SAVE_TIME 60000 //ms
  200. #define CASCADE_CNT 0
  201. #define PHASE_GROUP 8
  202. #define CHANNEL_DELAY 8
  203. #define PROD_POWER_TYPE 3
  204. #define BRD_MAX 2
  205. #define MONWAY 1
  206. #elif defined PRJ_GOWONE_125A_AC_I3_O1
  207. #define LANGUAGE 1 // //english
  208. #define SMPLE_TIME 30 // ms
  209. #define SAVE_TIME 60000 // ms
  210. #define CASCADE_CNT 0
  211. #define PHASE_GROUP 12
  212. #define CHANNEL_DELAY 12
  213. #define PROD_POWER_TYPE 5
  214. #define USE_WATCHDOG
  215. #define USE_LOGO_GOWONE
  216. #define USE_BEEP 1
  217. #define USE_LED 1
  218. #define BRD_MAX 10
  219. #elif defined PRJ_Malaysia_AC_I3_O1
  220. #define LANGUAGE 1 // //english
  221. #define SMPLE_TIME 30 // ms
  222. #define SAVE_TIME 60000 // ms
  223. #define CASCADE_CNT 0
  224. #define PHASE_GROUP 10
  225. #define CHANNEL_DELAY 10
  226. #define PROD_POWER_TYPE 5
  227. #define USE_WATCHDOG
  228. #define USE_LOGO_LITECH
  229. #define NEW_GPIO
  230. #define USE_BEEP 1
  231. #define USE_LED 1
  232. #define BRD_MAX 10
  233. #elif defined PRJ_IP_AC_I3_O3
  234. #define LANGUAGE 0
  235. #define SMPLE_TIME 30 //ms
  236. #define SAVE_TIME 60000 //ms
  237. #define CASCADE_CNT 0
  238. #define PHASE_GROUP 8
  239. #define CHANNEL_DELAY 8
  240. #define PROD_POWER_TYPE 3
  241. #define NOT_USE_CONTROL
  242. #elif defined PRJ_INST2302_DC_OLED
  243. #define LANGUAGE 0 //chinese
  244. #define SMPLE_TIME 30 //ms
  245. #define SAVE_TIME 60000 //ms
  246. #define CASCADE_CNT 0
  247. #define PHASE_GROUP 8
  248. #define CHANNEL_DELAY 8
  249. #define PROD_POWER_TYPE 1
  250. #define USE_UI
  251. #define USE_SCREEN_LED
  252. //#define USE_SCREEN_LCD
  253. #elif defined PRJ_INST2106_AC_I1_O1_OLED
  254. #define LANGUAGE 0 //chinese
  255. #define SMPLE_TIME 30 //ms
  256. #define SAVE_TIME 60000 //ms
  257. #define CASCADE_CNT 0
  258. #define PHASE_GROUP 8
  259. #define CHANNEL_DELAY 8
  260. #define PROD_POWER_TYPE 0
  261. #define USE_UI
  262. #define ROTATE 180
  263. #define FLIP_TIME 3
  264. #elif defined PRJ_ESOUTH_DC_I1_O4_RGB5
  265. #define LANGUAGE 0 //chinese
  266. #define SMPLE_TIME 30 //ms
  267. #define SAVE_TIME 60000 //ms
  268. #define CASCADE_CNT 0
  269. #define PHASE_GROUP 8
  270. #define CHANNEL_DELAY 8
  271. #define PROD_POWER_TYPE 1
  272. #define SCREEN_RGB
  273. #define USE_WATCHDOG
  274. #define BRD_MAX 10
  275. #define USE_SMART_DETECTION_CTRL 1
  276. #define NEW_GPIO
  277. #elif defined PRJ_YST_AC_I1_O1
  278. #define LANGUAGE 0 //chinese
  279. #define SMPLE_TIME 30 //ms
  280. #define SAVE_TIME 60000 //ms
  281. #define CASCADE_CNT 0
  282. #define PHASE_GROUP 6
  283. #define CHANNEL_DELAY 6
  284. #define PROD_POWER_TYPE 0
  285. #define USE_BEEP 1
  286. #define USE_LED 1
  287. #define USE_BREAKER_ALARM
  288. #elif defined PRJ_YUNNAN_AC_I1_O1
  289. #define LANGUAGE 0 //chinese
  290. #define SMPLE_TIME 30 //ms
  291. #define SAVE_TIME 60000 //ms
  292. #define CASCADE_CNT 0
  293. #define PHASE_GROUP 6
  294. #define CHANNEL_DELAY 6
  295. #define PROD_POWER_TYPE 0
  296. #define USE_BREAKER_ALARM
  297. #define USE_BEEP 1
  298. #define USE_LED 1
  299. #define USE_Cellular
  300. #elif defined PRJ_DUALWIRES_AC_I3_O2
  301. #define LANGUAGE 0 //chinese
  302. #define SMPLE_TIME 30 //ms
  303. #define SAVE_TIME 60000 //ms
  304. #define CASCADE_CNT 0
  305. #define PHASE_GROUP 8
  306. #define CHANNEL_DELAY 8
  307. #define PROD_POWER_TYPE 6
  308. #define BRD_MAX 12
  309. #elif (defined PRJ_IP_AC_I3_O1)
  310. #define LANGUAGE 0
  311. #define SMPLE_TIME 30 //ms
  312. #define SAVE_TIME 60000 //ms
  313. #define CASCADE_CNT 0
  314. #define PHASE_GROUP 8
  315. #define CHANNEL_DELAY 8
  316. #define PROD_POWER_TYPE 5
  317. #define USE_BEEP 1
  318. //#define NOT_USE_CONTROL
  319. #elif (defined PRJ_IP_AC_I1_O1)
  320. #define LANGUAGE 0
  321. #define SMPLE_TIME 30 //ms
  322. #define SAVE_TIME 60000 //ms
  323. #define CASCADE_CNT 0
  324. #define PHASE_GROUP 8
  325. #define CHANNEL_DELAY 8
  326. #define PROD_POWER_TYPE 0
  327. #define USE_BEEP 1
  328. #define USE_LED 1
  329. #elif (defined PRJ_IP_YUNNAN_AC_I1_O1)
  330. #define LANGUAGE 0
  331. #define SMPLE_TIME 30 //ms
  332. #define SAVE_TIME 60000 //ms
  333. #define CASCADE_CNT 0
  334. #define PHASE_GROUP 8
  335. #define CHANNEL_DELAY 8
  336. #define PROD_POWER_TYPE 0
  337. #define USE_BEEP 1
  338. #define USE_LED 1
  339. #define USE_Cellular
  340. #elif (defined PRJ_IP_CHONGQING_AC_I1_O1)
  341. #define LANGUAGE 0
  342. #define SMPLE_TIME 30 //ms
  343. #define SAVE_TIME 60000 //ms
  344. #define CASCADE_CNT 0
  345. #define PHASE_GROUP 8
  346. #define CHANNEL_DELAY 8
  347. #define PROD_POWER_TYPE 0
  348. #define USE_BEEP 1
  349. #define USE_LED 1
  350. #elif (defined PRJ_IP_AOSENS_AC_I1_O1)
  351. #define LANGUAGE 1
  352. #define SMPLE_TIME 30 //ms
  353. #define SAVE_TIME 60000 //ms
  354. #define CASCADE_CNT 0
  355. #define PHASE_GROUP 8
  356. #define CHANNEL_DELAY 8
  357. #define PROD_POWER_TYPE 0
  358. #define USE_BEEP 1
  359. #define USE_LED 1
  360. #define BRD_MAX 1
  361. #define NOT_USE_CONTROL
  362. #elif (defined PRJ_IP_AOSENS_DC_I_O)
  363. #define LANGUAGE 0
  364. #define SMPLE_TIME 30 //ms
  365. #define SAVE_TIME 60000 //ms
  366. #define CASCADE_CNT 0
  367. #define PHASE_GROUP 8
  368. #define CHANNEL_DELAY 8
  369. #define PROD_POWER_TYPE 1
  370. #define USE_BEEP 1
  371. #define USE_LED 1
  372. #define BRD_MAX 1
  373. #else
  374. #error define a PRJ_XXXX please!
  375. #endif
  376. #endif