cfg.h 35 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066
  1. #ifndef __CONFIG_Hx__
  2. #define __CONFIG_Hx__
  3. #define VERSION "V1.4.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_CHANGCHUN_AC_I1_O1_OLED
  28. //#define PRJ_JUNGONG_KEKONG_AC_I1_O1_OLED
  29. //#define PRJ_INSPUR_AC_I1_O1
  30. //#define PRJ_TIDA_AC_I3_O1
  31. //#define PRJ_INST2302_DC_OLED
  32. //#define PRJ_INST2106_AC_I1_O1_OLED
  33. //#define PRJ_YST_AC_I1_O1
  34. //#define PRJ_YUNNAN_AC_I1_O1
  35. //#define PRJ_BYD_UPS_AC_I1_O1
  36. //#define PRJ_DUALWIRES_AC_I3_O2
  37. //#define PRJ_2405_AC_I1_O1_OLED
  38. //#define PRJ_2503_AC_I1_O1_OLED
  39. //#define PRJ_IP_AC_I3_O3
  40. //#define PRJ_IP_AC_I3_O1
  41. //#define PRJ_IP_AC_I1_O1
  42. //#define PRJ_IP_AC_WANGXIAOPIN_I3_O3
  43. //#define PRJ_IP_XXXXXXXXXX_AC_I1_O1
  44. //#define PRJ_IP_YUNNAN_AC_I1_O1
  45. //#define PRJ_IP_CHONGQING_AC_I1_O1
  46. //#define PRJ_IP_AOSENS_AC_I1_O1
  47. //#define PRJ_IP_AOSENS_DC_I_O
  48. //#define PRJ_IP_DEBIAO_AC_I3_O1
  49. //#define PRJ_IP_GOX001_7_AC_I3_O1
  50. //#define PRJ_IP_GOX001_4_AC_I3_O1
  51. //#define PRJ_IP_GANGKEDA_AC_I3_O1
  52. //#define PRJ_709_AC_I3_O1_OLED
  53. //#define PRJ_TCT_AC_I3_O1
  54. //#define PRJ_New_Malaysia_AC_I3_O1
  55. //#define PRJ_RAO_AC_I1_O1
  56. //#define PRJ_GJ20_07K_2IN_OLED
  57. //#define PRJ_GJ20_08K_2IN_OLED
  58. //#define PRJ_JUNGONG_AC_I1_O1
  59. //#define PRJ_CHANGCUN_20260701_AC_I3_O1_OLED
  60. //#define PRJ_WANGXIAOPING_YS10085_AC_I1_O1_MS
  61. #define PRJ_JIZHUANGXIANG_AC_I1_O1
  62. //#define PRJ_WANGXIAOPING_202609010023_AC_I1_O1
  63. #define USE_MAIL
  64. #define MAIL_SEND_BUILTIN
  65. #define CHIP_T113i 0
  66. #define CHIP_T113s 1
  67. #define USE_MQTT
  68. #define MQTT_SERVER_BUILTIN
  69. //#define GNSS_ENABLE //EC200N-CN, 不支持gnss
  70. #define USE_BOARD_UPGRADE
  71. #if (CHIP_TYPE == CHIP_T113s)
  72. #define USE_WATCHDOG
  73. #endif
  74. #if (defined PRJ_XIAN_AC_I1_O1_P4) || (defined PRJ_XIAN_AC_I1_O1_P8) //GOM037
  75. #define LANGUAGE 0 //chinese
  76. #define SMPLE_TIME 30 //ms
  77. #define SAVE_TIME 60000 //ms
  78. #define CASCADE_CNT 0
  79. #define PHASE_GROUP 8
  80. #ifdef PRJ_XIAN_AC_I1_O1_P4
  81. //#define GOM037PDU_GC20_04K_125H //ac_in1_out1_40a_p4_5ch_nologo_cn
  82. #define CHANNEL_DELAY 5
  83. #else
  84. //#define GOM037_PDU_GC10_08K_80H //ac_in1_out1_40a_p8_5ch_nologo_cn
  85. #define CHANNEL_DELAY 8
  86. #endif
  87. #define PROD_POWER_TYPE 0
  88. #define IN_INDEX_MAP {3,2,0,1}
  89. #elif (defined PRJ_TIDA_AC_I3_O1)
  90. #define LANGUAGE 0 //english
  91. #define SMPLE_TIME 30 //ms
  92. #define SAVE_TIME 60000 //ms
  93. #define CASCADE_CNT 0
  94. #define PHASE_GROUP 8
  95. #define CHANNEL_DELAY 8
  96. #define PROD_POWER_TYPE 5
  97. #define USE_BEEP 1
  98. #define USE_LED 1
  99. #define BRD_MAX 6
  100. #elif (defined PRJ_IP_GANGKEDA_AC_I3_O1)
  101. #define LANGUAGE 0 //english
  102. #define SMPLE_TIME 30 //ms
  103. #define SAVE_TIME 60000 //ms
  104. #define CASCADE_CNT 0
  105. #define PHASE_GROUP 7
  106. #define CHANNEL_DELAY 7
  107. #define PROD_POWER_TYPE 5
  108. #define USE_BEEP 1
  109. #define USE_LED 1
  110. #define SENSOR_ACCESS_NONE
  111. #define BRD_MAX 6
  112. #define MONWAY 3 // 1总检测 2分监分控 3分监不控
  113. #elif (defined PRJ_USASL_AC_I3_O1) || (defined PRJ_USASL_AC_I3_O3)
  114. #define LANGUAGE 1 //english
  115. #define SMPLE_TIME 30 //ms
  116. #define SAVE_TIME 60000 //ms
  117. #define CASCADE_CNT 0
  118. #define PHASE_GROUP 8
  119. #define CHANNEL_DELAY 8
  120. //#define PDU_GC40_03K_125H //ac_in3_out3_40a_p8_12ch_nologo_en
  121. //#define PDU_GC60_04K_125H //ac_in3_out1_40a_p4_24ch_nologo_en
  122. #ifdef PRJ_USASL_AC_I3_O1
  123. #define PROD_POWER_TYPE 5
  124. #else
  125. #define PROD_POWER_TYPE 3
  126. #endif
  127. #elif (defined PRJ_ITK_AC_I1_O1) || (defined PRJ_ITK_AC_I3_O1)
  128. #define LANGUAGE 2 //russia
  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_LOGO_ITK
  135. #ifdef PRJ_ITK_AC_I1_O1
  136. #define PROD_POWER_TYPE 0
  137. #else
  138. #define PROD_POWER_TYPE 5
  139. #endif
  140. #elif (defined PRJ_LITECH_AC_I1_O1) || (defined PRJ_LITECH_AC_I3_O1)
  141. #define LANGUAGE 1 //english
  142. #define SMPLE_TIME 30 //ms
  143. #define SAVE_TIME 60000 //ms
  144. #define CASCADE_CNT 0
  145. #define USE_LOGO_LITECH
  146. #ifdef PRJ_LITECH_AC_I1_O1
  147. #define PHASE_GROUP 8
  148. #define CHANNEL_DELAY 8
  149. #define PROD_POWER_TYPE 0
  150. #else
  151. #define PHASE_GROUP 6
  152. #define CHANNEL_DELAY 6
  153. #define PROD_POWER_TYPE 5
  154. #endif
  155. #elif defined PRJ_STSC_I3_O3
  156. #define LANGUAGE 1 //english
  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 NORTH_USER_SPECILS //north user specification
  164. #elif defined PRJ_STSC_I3_O1_OLED
  165. #define LANGUAGE 0 //english
  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 5
  172. #define USE_UI
  173. #define USE_BEEP
  174. #define USE_WATCHDOG
  175. #define SENSOR_ACCESS_NONE
  176. #elif defined PRJ_709_AC_I3_O1_OLED
  177. #define LANGUAGE 0 //chinese
  178. #define SMPLE_TIME 30 //ms
  179. #define SAVE_TIME 60000 //ms
  180. #define CASCADE_CNT 0
  181. #define PHASE_GROUP 5
  182. #define CHANNEL_DELAY 14
  183. #define PROD_POWER_TYPE 5
  184. #define BRD_MAX 5
  185. #define ROTATE 180
  186. #define USE_UI
  187. #define USE_WATCHDOG
  188. #define USE_BEEP 1
  189. #define USE_LED 1
  190. #define FLIP_TIME 3
  191. #define SURRPORT_20KHZ_PWM
  192. #define KZBSJ_ENABLE
  193. #elif defined PRJ_CHANGCUN_20260701_AC_I3_O1_OLED
  194. #define LANGUAGE 0 //chinese
  195. #define SMPLE_TIME 30 //ms
  196. #define SAVE_TIME 60000 //ms
  197. #define CASCADE_CNT 0
  198. #define PHASE_GROUP 5
  199. #define CHANNEL_DELAY 5
  200. #define PROD_POWER_TYPE 5
  201. #define BRD_MAX 3
  202. #define ROTATE 180
  203. #define USE_UI
  204. #define USE_WATCHDOG
  205. #define USE_BEEP 1
  206. #define USE_LED 1
  207. #define FLIP_TIME 3
  208. #define SURRPORT_20KHZ_PWM
  209. #define KZBSJ_ENABLE
  210. #elif defined PRJ_WANGXIAOPING_YS10085_AC_I1_O1_MS
  211. #define LANGUAGE 1 //chinese
  212. #define SMPLE_TIME 30 //ms
  213. #define SAVE_TIME 60000 //ms
  214. #define CASCADE_CNT 0
  215. #define PHASE_GROUP 24
  216. #define CHANNEL_DELAY 24
  217. #define PROD_POWER_TYPE 0
  218. #define BRD_MAX 5
  219. #define ROTATE 0
  220. #define USE_WATCHDOG
  221. #define USE_BEEP 1
  222. #define USE_LED 1
  223. #define FLIP_TIME 3
  224. #define SURRPORT_20KHZ_PWM
  225. #define KZBSJ_ENABLE
  226. #elif defined PRJ_ANDERSON_AC_I3_O3
  227. #define LANGUAGE 1 //english
  228. #define SMPLE_TIME 30 //ms
  229. #define SAVE_TIME 60000 //ms
  230. #define CASCADE_CNT 0
  231. #define PHASE_GROUP 8
  232. #define CHANNEL_DELAY 8
  233. #define USE_NF_CTRL
  234. #define PROD_POWER_TYPE 3
  235. #define SENSOR_ACCESS_NONE
  236. #define USE_BEEP 1
  237. #define USE_LED 1
  238. // #define NEW_GPIO
  239. #elif defined PRJ_HYPERTEC_AC_I3_O1
  240. //ac_in3_out1_36ch_nologo_en_hypertec
  241. #define LANGUAGE 1 //english
  242. #define SMPLE_TIME 30 //ms
  243. #define SAVE_TIME 60000 //ms
  244. #define CASCADE_CNT 0
  245. #define PHASE_GROUP 6
  246. #define CHANNEL_DELAY 6
  247. #define USE_LOGO_HYPERTEC
  248. #define PROD_POWER_TYPE 5
  249. #elif defined PRJ_INSPUR_DC_I_DC_O
  250. #define LANGUAGE 0 //chinese
  251. #define SMPLE_TIME 30 //ms
  252. #define SAVE_TIME 60000 //ms
  253. #define CASCADE_CNT 0
  254. #define PHASE_GROUP 6
  255. #define CHANNEL_DELAY 6
  256. #define PROD_POWER_TYPE 1
  257. #elif defined PRJ_INSPUR_DC_I_DC_O_NEW_96
  258. #define LANGUAGE 0 //chinese
  259. #define SMPLE_TIME 30 //ms
  260. #define SAVE_TIME 600000 //ms
  261. #define CASCADE_CNT 0
  262. #define PHASE_GROUP 24
  263. #define CHANNEL_DELAY 24
  264. #define PROD_POWER_TYPE 1
  265. #define USE_WATCHDOG
  266. #define BRD_MAX 15
  267. #elif defined PRJ_SG_I3_O3
  268. #define LANGUAGE 0 //chinese
  269. #define SMPLE_TIME 30 //ms
  270. #define SAVE_TIME 60000 //ms
  271. #define CASCADE_CNT 0
  272. #define PHASE_GROUP 6
  273. #define CHANNEL_DELAY 6
  274. #define PROD_POWER_TYPE 3
  275. #elif defined PRJ_TEST
  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 5
  283. #elif defined PRJ_TEST_AC_I1_O1
  284. #define LANGUAGE 0 //chinese
  285. #define SMPLE_TIME 30 //ms
  286. #define SAVE_TIME 60000 //ms
  287. #define CASCADE_CNT 0
  288. #define PHASE_GROUP 8
  289. #define CHANNEL_DELAY 8
  290. #define PROD_POWER_TYPE 0
  291. #define SENSOR_ACCESS_NONE
  292. #define USE_BEEP 1
  293. #define USE_LED 1
  294. #define KZBSJ_ENABLE
  295. #define RADIUS_ENABLE
  296. #define LDAD_ENABLE
  297. #define USE_Cellular
  298. #define USE_WIFI
  299. #elif defined PRJ_JUNGONG_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 8
  305. #define CHANNEL_DELAY 8
  306. #define PROD_POWER_TYPE 0
  307. #define SENSOR_ACCESS_NONE
  308. #define USE_BEEP 1
  309. #define USE_LED 1
  310. // #define KZBSJ_ENABLE
  311. // #define RADIUS_ENABLE
  312. // #define LDAD_ENABLE
  313. // #define USE_Cellular
  314. // #define USE_WIFI
  315. #define BRD_MAX 1
  316. #define BIG_DATA
  317. #define USE_UI
  318. #define NO_SENSOR_UI
  319. #define MONWAY 1
  320. #define USE_WATCHDOG
  321. #define FLIP_TIME 5
  322. //#define IN_INDEX_MAP {2,3,1,0}
  323. #elif defined PRJ_2405_AC_I1_O1_OLED
  324. #define LANGUAGE 0 //chinese
  325. #define SMPLE_TIME 30 //ms
  326. #define SAVE_TIME 60000 //ms
  327. #define CASCADE_CNT 0
  328. #define PHASE_GROUP 4
  329. #define CHANNEL_DELAY 4
  330. #define PROD_POWER_TYPE 0
  331. #define BRD_MAX 3
  332. #define USE_UI
  333. #elif defined PRJ_2503_AC_I1_O1_OLED
  334. #define LANGUAGE 0 //chinese
  335. #define SMPLE_TIME 30 //ms
  336. #define SAVE_TIME 60000 //ms
  337. #define CASCADE_CNT 0
  338. #define PHASE_GROUP 8
  339. #define CHANNEL_DELAY 8
  340. #define PROD_POWER_TYPE 0
  341. #define BRD_MAX 4
  342. #define USE_UI
  343. #define USE_WATCHDOG
  344. #define FLIP_TIME 5
  345. #elif (defined PRJ_GJ20_08K_2IN_OLED)
  346. #define LANGUAGE 0 //chinese
  347. #define SMPLE_TIME 30 //ms
  348. #define SAVE_TIME 60000 //ms
  349. #define CASCADE_CNT 0
  350. #define PHASE_GROUP 8
  351. #define CHANNEL_DELAY 8
  352. #define PROD_POWER_TYPE 0
  353. #define BRD_MAX 3
  354. #define USE_UI
  355. //#define NO_SENSOR_UI
  356. #define USE_WATCHDOG
  357. #define FLIP_TIME 5
  358. #elif (defined PRJ_GJ20_07K_2IN_OLED)
  359. #define LANGUAGE 0 //chinese
  360. #define SMPLE_TIME 30 //ms
  361. #define SAVE_TIME 60000 //ms
  362. #define CASCADE_CNT 0
  363. #define PHASE_GROUP 8
  364. #define CHANNEL_DELAY 8
  365. #define PROD_POWER_TYPE 0
  366. #define BRD_MAX 4
  367. #define USE_UI
  368. //#define NO_SENSOR_UI
  369. #define USE_WATCHDOG
  370. #define FLIP_TIME 5
  371. #elif defined PRJ_JUNGONG_AC_I1_O1_OLED
  372. #define LANGUAGE 0 //chinese
  373. #define SMPLE_TIME 30 //ms
  374. #define SAVE_TIME 60000 //ms
  375. #define CASCADE_CNT 0
  376. #define PHASE_GROUP 8
  377. #define CHANNEL_DELAY 8
  378. #define PROD_POWER_TYPE 0
  379. #define BRD_MAX 2
  380. #define USE_UI
  381. #define NO_SENSOR_UI
  382. #define USE_WATCHDOG
  383. #define FLIP_TIME 5
  384. #elif defined PRJ_CHANGCHUN_AC_I1_O1_OLED
  385. #define LANGUAGE 0 //chinese
  386. #define SMPLE_TIME 30 //ms
  387. #define SAVE_TIME 60000 //ms
  388. #define CASCADE_CNT 0
  389. #define PHASE_GROUP 9
  390. #define CHANNEL_DELAY 9
  391. #define PROD_POWER_TYPE 0
  392. #define BRD_MAX 5
  393. #define ROTATE 180
  394. #define USE_UI
  395. #define USE_WATCHDOG
  396. #define USE_BEEP 1
  397. #define USE_LED 1
  398. #define FLIP_TIME 5
  399. #define SENSOR_ACCESS_NONE
  400. #elif defined PRJ_INSPUR_AC_I1_O1
  401. #define LANGUAGE 0 //chinese
  402. #define SMPLE_TIME 30 //ms
  403. #define SAVE_TIME 60000 //ms
  404. #define CASCADE_CNT 0
  405. #define PHASE_GROUP 20
  406. #define CHANNEL_DELAY 20
  407. #define PROD_POWER_TYPE 0
  408. #define BRD_MAX 6
  409. #define USE_BEEP 1
  410. #define USE_LED 1
  411. #define ROTATE 0
  412. #define USE_WATCHDOG
  413. #define SENSOR_ACCESS_NONE
  414. #elif defined PRJ_JUNGONG_KEKONG_AC_I1_O1_OLED
  415. #define LANGUAGE 0 //chinese
  416. #define SMPLE_TIME 30 //ms
  417. #define SAVE_TIME 60000 //ms
  418. #define CASCADE_CNT 0
  419. #define PHASE_GROUP 3
  420. #define CHANNEL_DELAY 3
  421. #define PROD_POWER_TYPE 0
  422. #define BRD_MAX 5
  423. #define ROTATE 180
  424. #define USE_UI
  425. #define USE_WATCHDOG
  426. #define USE_BEEP 1
  427. #define USE_LED 1
  428. #define FLIP_TIME 5
  429. #elif defined PRJ_TEST_AC_I3_O1
  430. #define LANGUAGE 0 //chinese
  431. #define SMPLE_TIME 30 //ms
  432. #define SAVE_TIME 60000 //ms
  433. #define CASCADE_CNT 0
  434. #define PHASE_GROUP 8
  435. #define CHANNEL_DELAY 8
  436. #define PROD_POWER_TYPE 5
  437. #define SENSOR_ACCESS_NONE
  438. #elif defined PRJ_TCT_AC_I3_O1
  439. #define LANGUAGE 1 // //english
  440. #define SMPLE_TIME 30 // ms
  441. #define SAVE_TIME 60000 // ms
  442. #define CASCADE_CNT 0
  443. #define PHASE_GROUP 6
  444. #define CHANNEL_DELAY 6
  445. #define PROD_POWER_TYPE 5
  446. #define USE_WATCHDOG
  447. //#define USE_LOGO_GOWONE
  448. #define ROTATE 180
  449. #define USE_BEEP 1
  450. #define USE_LED 1
  451. #define BRD_MAX 3
  452. #define SENSOR_ACCESS_NONE
  453. #elif defined PRJ_TEST_AC_I3_O3
  454. #define LANGUAGE 0 //chinese
  455. #define SMPLE_TIME 30 //ms
  456. #define SAVE_TIME 60000 //ms
  457. #define CASCADE_CNT 0
  458. #define PHASE_GROUP 8
  459. #define CHANNEL_DELAY 8
  460. #define PROD_POWER_TYPE 3
  461. #define BRD_MAX 2
  462. #define MONWAY 1
  463. #elif (defined PRJ_IP_AC_WANGXIAOPIN_I3_O3)
  464. #define LANGUAGE 0 //chinese
  465. #define SMPLE_TIME 30 //ms
  466. #define SAVE_TIME 60000 //ms
  467. #define CASCADE_CNT 0
  468. #define PHASE_GROUP 8
  469. #define CHANNEL_DELAY 8
  470. #define USE_BEEP 1
  471. #define USE_LED 1
  472. #define PROD_POWER_TYPE 3
  473. #define BRD_MAX 1
  474. #define MONWAY 1
  475. #elif defined PRJ_GOWONE_125A_AC_I3_O1
  476. #define LANGUAGE 1 // //english
  477. #define SMPLE_TIME 30 // ms
  478. #define SAVE_TIME 60000 // ms
  479. #define CASCADE_CNT 0
  480. #define PHASE_GROUP 12
  481. #define CHANNEL_DELAY 12
  482. #define PROD_POWER_TYPE 5
  483. #define USE_WATCHDOG
  484. #define USE_LOGO_GOWONE
  485. #define USE_BEEP 1
  486. #define USE_LED 1
  487. #define BRD_MAX 10
  488. #define SURRPORT_20KHZ_PWM
  489. #define SENSOR_ACCESS_NONE
  490. //#define DRY_NONE
  491. #elif defined PRJ_Malaysia_AC_I3_O1
  492. #define LANGUAGE 1 // //english
  493. #define SMPLE_TIME 30 // ms
  494. #define SAVE_TIME 60000 // ms
  495. #define CASCADE_CNT 0
  496. #define PHASE_GROUP 10
  497. #define CHANNEL_DELAY 10
  498. #define PROD_POWER_TYPE 5
  499. #define USE_WATCHDOG
  500. #define USE_LOGO_LITECH
  501. #define NEW_GPIO
  502. #define USE_BEEP 1
  503. #define USE_LED 1
  504. #define BRD_MAX 8
  505. #elif defined PRJ_New_Malaysia_AC_I3_O1
  506. #define LANGUAGE 1 // //english
  507. #define SMPLE_TIME 30 // ms
  508. #define SAVE_TIME 60000 // ms
  509. #define CASCADE_CNT 0
  510. #define PHASE_GROUP 8
  511. #define CHANNEL_DELAY 8
  512. #define PROD_POWER_TYPE 5
  513. #define USE_WATCHDOG
  514. // #define USE_LOGO_LITECH
  515. #define NEW_GPIO
  516. #define USE_BEEP 1
  517. #define USE_LED 1
  518. #define BRD_MAX 3
  519. #elif defined PRJ_WANGXIAOPING_202609010023_AC_I1_O1
  520. #define LANGUAGE 1 // //english
  521. #define SMPLE_TIME 30 // ms
  522. #define SAVE_TIME 60000 // ms
  523. #define CASCADE_CNT 0
  524. #define ROTATE 180
  525. #define PHASE_GROUP 8
  526. #define CHANNEL_DELAY 8
  527. #define PROD_POWER_TYPE 0
  528. #define USE_WATCHDOG
  529. #define USE_BEEP 1
  530. #define USE_LED 1
  531. #define BRD_MAX 5
  532. #define SURRPORT_20KHZ_PWM
  533. #define KZBSJ_ENABLE
  534. #elif defined PRJ_JIZHUANGXIANG_AC_I1_O1
  535. #define LANGUAGE 1 // //english
  536. #define SMPLE_TIME 30 // ms
  537. #define SAVE_TIME 60000 // ms
  538. #define CASCADE_CNT 0
  539. #define ROTATE 180
  540. #define PHASE_GROUP 8
  541. #define CHANNEL_DELAY 8
  542. #define PROD_POWER_TYPE 0
  543. #define USE_WATCHDOG
  544. // #define USE_LOGO_LITECH
  545. #define NEW_GPIO
  546. #define USE_BEEP 1
  547. #define USE_LED 1
  548. #define BRD_MAX 5
  549. #define SURRPORT_20KHZ_PWM
  550. #define KZBSJ_ENABLE
  551. #elif defined PRJ_IP_AC_I3_O3
  552. #define LANGUAGE 0
  553. #define SMPLE_TIME 30 //ms
  554. #define SAVE_TIME 60000 //ms
  555. #define CASCADE_CNT 0
  556. #define PHASE_GROUP 8
  557. #define CHANNEL_DELAY 8
  558. #define PROD_POWER_TYPE 3
  559. #define NOT_USE_CONTROL
  560. #elif defined PRJ_INST2302_DC_OLED
  561. #define LANGUAGE 0 //chinese
  562. #define SMPLE_TIME 30 //ms
  563. #define SAVE_TIME 60000 //ms
  564. #define CASCADE_CNT 0
  565. #define PHASE_GROUP 8
  566. #define CHANNEL_DELAY 8
  567. #define PROD_POWER_TYPE 1
  568. #define USE_UI
  569. #define USE_SCREEN_LED
  570. //#define USE_SCREEN_LCD
  571. #elif defined PRJ_INST2106_AC_I1_O1_OLED
  572. #define LANGUAGE 0 //chinese
  573. #define SMPLE_TIME 30 //ms
  574. #define SAVE_TIME 60000 //ms
  575. #define CASCADE_CNT 0
  576. #define PHASE_GROUP 8
  577. #define CHANNEL_DELAY 8
  578. #define PROD_POWER_TYPE 0
  579. #define USE_UI
  580. #define ROTATE 180
  581. #define FLIP_TIME 3
  582. #elif defined PRJ_ESOUTH_DC_I1_O4_RGB5
  583. #define LANGUAGE 0 //chinese
  584. #define SMPLE_TIME 30 //ms
  585. #define SAVE_TIME 60000 //ms
  586. #define CASCADE_CNT 0
  587. #define PHASE_GROUP 8
  588. #define CHANNEL_DELAY 8
  589. #define PROD_POWER_TYPE 1
  590. #define SCREEN_RGB
  591. #define USE_WATCHDOG
  592. #define BRD_MAX 10
  593. //#define USE_SMART_DETECTION_CTRL 1
  594. #define NEW_GPIO
  595. #elif defined PRJ_YST_AC_I1_O1
  596. #define LANGUAGE 0 //chinese
  597. #define SMPLE_TIME 30 //ms
  598. #define SAVE_TIME 60000 //ms
  599. #define CASCADE_CNT 0
  600. #define PHASE_GROUP 6
  601. #define CHANNEL_DELAY 6
  602. #define PROD_POWER_TYPE 0
  603. #define USE_BEEP 1
  604. #define USE_LED 1
  605. #define USE_BREAKER_ALARM
  606. #elif defined PRJ_YUNNAN_AC_I1_O1
  607. #define LANGUAGE 0 //chinese
  608. #define SMPLE_TIME 30 //ms
  609. #define SAVE_TIME 60000 //ms
  610. #define CASCADE_CNT 0
  611. #define PHASE_GROUP 8
  612. #define CHANNEL_DELAY 8
  613. #define PROD_POWER_TYPE 0
  614. #define USE_BREAKER_ALARM
  615. #define USE_BEEP 1
  616. #define USE_LED 1
  617. #define USE_Cellular
  618. #define BRD_MAX 5
  619. #elif defined PRJ_BYD_UPS_AC_I1_O1
  620. #define LANGUAGE 0 //chinese
  621. #define SMPLE_TIME 30 //ms
  622. #define SAVE_TIME 60000 //ms
  623. #define CASCADE_CNT 0
  624. #define PHASE_GROUP 6
  625. #define CHANNEL_DELAY 6
  626. #define PROD_POWER_TYPE 0
  627. #define USE_BREAKER_ALARM
  628. #define USE_BEEP 1
  629. #define USE_LED 1
  630. #define SENSOR_ACCESS_NONE
  631. #define BRD_MAX 2
  632. #elif defined PRJ_DUALWIRES_AC_I3_O2
  633. #define LANGUAGE 0 //chinese
  634. #define SMPLE_TIME 30 //ms
  635. #define SAVE_TIME 60000 //ms
  636. #define CASCADE_CNT 0
  637. #define PHASE_GROUP 8
  638. #define CHANNEL_DELAY 8
  639. #define PROD_POWER_TYPE 6
  640. #define BRD_MAX 12
  641. #elif (defined PRJ_IP_AC_I3_O1)
  642. #define LANGUAGE 0
  643. #define SMPLE_TIME 30 //ms
  644. #define SAVE_TIME 60000 //ms
  645. #define CASCADE_CNT 0
  646. #define PHASE_GROUP 8
  647. #define CHANNEL_DELAY 8
  648. #define PROD_POWER_TYPE 5
  649. #define USE_BEEP 1
  650. //#define NOT_USE_CONTROL
  651. #elif (defined PRJ_IP_AC_I1_O1)
  652. #define LANGUAGE 0
  653. #define SMPLE_TIME 30 //ms
  654. #define SAVE_TIME 60000 //ms
  655. #define CASCADE_CNT 0
  656. #define PHASE_GROUP 8
  657. #define CHANNEL_DELAY 8
  658. #define PROD_POWER_TYPE 0
  659. #define USE_BEEP 1
  660. #define USE_LED 1
  661. #define BRD_MAX 1
  662. #elif (defined PRJ_RAO_AC_I1_O1)
  663. #define LANGUAGE 0
  664. #define SMPLE_TIME 30 //ms
  665. #define SAVE_TIME 60000 //ms
  666. #define CASCADE_CNT 0
  667. #define PHASE_GROUP 8
  668. #define CHANNEL_DELAY 8
  669. #define PROD_POWER_TYPE 0
  670. #define USE_BEEP 1
  671. #define USE_LED 1
  672. #define BRD_MAX 4
  673. #elif (defined PRJ_IP_XXXXXXXXXX_AC_I1_O1)
  674. #define LANGUAGE 1
  675. #define SMPLE_TIME 30 //ms
  676. #define SAVE_TIME 60000 //ms
  677. #define CASCADE_CNT 0
  678. #define PHASE_GROUP 8
  679. #define CHANNEL_DELAY 8
  680. #define PROD_POWER_TYPE 0
  681. #define BRD_MAX 1
  682. #define USE_BEEP 1
  683. #define USE_LED 1
  684. #define MONWAY 1 // 1总检测 2分监分控 3分监不控
  685. #elif (defined PRJ_IP_YUNNAN_AC_I1_O1)
  686. #define LANGUAGE 0
  687. #define SMPLE_TIME 30 //ms
  688. #define SAVE_TIME 60000 //ms
  689. #define CASCADE_CNT 0
  690. #define PHASE_GROUP 8
  691. #define CHANNEL_DELAY 8
  692. #define PROD_POWER_TYPE 0
  693. #define USE_BEEP 1
  694. #define USE_LED 1
  695. #define BRD_MAX 1
  696. #define USE_Cellular
  697. #elif (defined PRJ_IP_CHONGQING_AC_I1_O1)
  698. #define LANGUAGE 0
  699. #define SMPLE_TIME 30 //ms
  700. #define SAVE_TIME 60000 //ms
  701. #define CASCADE_CNT 0
  702. #define PHASE_GROUP 8
  703. #define CHANNEL_DELAY 8
  704. #define PROD_POWER_TYPE 0
  705. #define USE_BEEP 1
  706. #define USE_LED 1
  707. #define BRD_MAX 5
  708. #elif (defined PRJ_IP_AOSENS_AC_I1_O1)
  709. #define LANGUAGE 1
  710. #define SMPLE_TIME 30 //ms
  711. #define SAVE_TIME 60000 //ms
  712. #define CASCADE_CNT 0
  713. #define PHASE_GROUP 8
  714. #define CHANNEL_DELAY 8
  715. #define PROD_POWER_TYPE 0
  716. #define USE_BEEP 1
  717. #define USE_LED 1
  718. #define BRD_MAX 1
  719. #define NOT_USE_CONTROL
  720. #elif (defined PRJ_IP_AOSENS_DC_I_O)
  721. #define LANGUAGE 0
  722. #define SMPLE_TIME 30 //ms
  723. #define SAVE_TIME 60000 //ms
  724. #define CASCADE_CNT 0
  725. #define PHASE_GROUP 8
  726. #define CHANNEL_DELAY 8
  727. #define PROD_POWER_TYPE 1
  728. #define USE_BEEP 1
  729. #define USE_LED 1
  730. #define BRD_MAX 1
  731. #elif (defined PRJ_IP_DEBIAO_AC_I3_O1)
  732. #define LANGUAGE 1
  733. #define SMPLE_TIME 30 //ms
  734. #define SAVE_TIME 60000 //ms
  735. #define CASCADE_CNT 0
  736. #define PHASE_GROUP 4
  737. #define CHANNEL_DELAY 8
  738. #define PROD_POWER_TYPE 5
  739. #define USE_BEEP 1
  740. #define BRD_MAX 3
  741. #define USE_LED 1
  742. #elif (defined PRJ_IP_GOX001_7_AC_I3_O1)
  743. #define LANGUAGE 0
  744. #define SMPLE_TIME 30 //ms
  745. #define SAVE_TIME 60000 //ms
  746. #define CASCADE_CNT 0
  747. #define PHASE_GROUP 7
  748. #define CHANNEL_DELAY 7
  749. #define PROD_POWER_TYPE 5
  750. #define USE_BEEP 1
  751. #define BRD_MAX 3
  752. #define USE_LED 1
  753. #elif (defined PRJ_IP_GOX001_4_AC_I3_O1)
  754. #define LANGUAGE 0
  755. #define SMPLE_TIME 30 //ms
  756. #define SAVE_TIME 60000 //ms
  757. #define CASCADE_CNT 0
  758. #define PHASE_GROUP 4
  759. #define CHANNEL_DELAY 4
  760. #define PROD_POWER_TYPE 5
  761. #define USE_BEEP 1
  762. #define BRD_MAX 3
  763. #define USE_LED 1
  764. #else
  765. #error define a PRJ_XXXX please!
  766. #endif
  767. #endif