cfg.h 18 KB

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