cfg.h 34 KB

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