cfg.h 34 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013
  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 6
  479. #define CHANNEL_DELAY 6
  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 SENSOR_ACCESS_NONE
  487. //#define DRY_NONE
  488. #elif defined PRJ_Malaysia_AC_I3_O1
  489. #define LANGUAGE 1 // //english
  490. #define SMPLE_TIME 30 // ms
  491. #define SAVE_TIME 60000 // ms
  492. #define CASCADE_CNT 0
  493. #define PHASE_GROUP 10
  494. #define CHANNEL_DELAY 10
  495. #define PROD_POWER_TYPE 5
  496. #define USE_WATCHDOG
  497. #define USE_LOGO_LITECH
  498. #define NEW_GPIO
  499. #define USE_BEEP 1
  500. #define USE_LED 1
  501. #define BRD_MAX 8
  502. #elif defined PRJ_New_Malaysia_AC_I3_O1
  503. #define LANGUAGE 1 // //english
  504. #define SMPLE_TIME 30 // ms
  505. #define SAVE_TIME 60000 // ms
  506. #define CASCADE_CNT 0
  507. #define PHASE_GROUP 8
  508. #define CHANNEL_DELAY 8
  509. #define PROD_POWER_TYPE 5
  510. #define USE_WATCHDOG
  511. // #define USE_LOGO_LITECH
  512. #define NEW_GPIO
  513. #define USE_BEEP 1
  514. #define USE_LED 1
  515. #define BRD_MAX 3
  516. #elif defined PRJ_IP_AC_I3_O3
  517. #define LANGUAGE 0
  518. #define SMPLE_TIME 30 //ms
  519. #define SAVE_TIME 60000 //ms
  520. #define CASCADE_CNT 0
  521. #define PHASE_GROUP 8
  522. #define CHANNEL_DELAY 8
  523. #define PROD_POWER_TYPE 3
  524. #define NOT_USE_CONTROL
  525. #elif defined PRJ_INST2302_DC_OLED
  526. #define LANGUAGE 0 //chinese
  527. #define SMPLE_TIME 30 //ms
  528. #define SAVE_TIME 60000 //ms
  529. #define CASCADE_CNT 0
  530. #define PHASE_GROUP 8
  531. #define CHANNEL_DELAY 8
  532. #define PROD_POWER_TYPE 1
  533. #define USE_UI
  534. #define USE_SCREEN_LED
  535. //#define USE_SCREEN_LCD
  536. #elif defined PRJ_INST2106_AC_I1_O1_OLED
  537. #define LANGUAGE 0 //chinese
  538. #define SMPLE_TIME 30 //ms
  539. #define SAVE_TIME 60000 //ms
  540. #define CASCADE_CNT 0
  541. #define PHASE_GROUP 8
  542. #define CHANNEL_DELAY 8
  543. #define PROD_POWER_TYPE 0
  544. #define USE_UI
  545. #define ROTATE 180
  546. #define FLIP_TIME 3
  547. #elif defined PRJ_ESOUTH_DC_I1_O4_RGB5
  548. #define LANGUAGE 0 //chinese
  549. #define SMPLE_TIME 30 //ms
  550. #define SAVE_TIME 60000 //ms
  551. #define CASCADE_CNT 0
  552. #define PHASE_GROUP 8
  553. #define CHANNEL_DELAY 8
  554. #define PROD_POWER_TYPE 1
  555. #define SCREEN_RGB
  556. #define USE_WATCHDOG
  557. #define BRD_MAX 10
  558. //#define USE_SMART_DETECTION_CTRL 1
  559. #define NEW_GPIO
  560. #elif defined PRJ_YST_AC_I1_O1
  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 6
  566. #define CHANNEL_DELAY 6
  567. #define PROD_POWER_TYPE 0
  568. #define USE_BEEP 1
  569. #define USE_LED 1
  570. #define USE_BREAKER_ALARM
  571. #elif defined PRJ_YUNNAN_AC_I1_O1
  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_BREAKER_ALARM
  580. #define USE_BEEP 1
  581. #define USE_LED 1
  582. #define USE_Cellular
  583. #define BRD_MAX 5
  584. #elif defined PRJ_BYD_UPS_AC_I1_O1
  585. #define LANGUAGE 0 //chinese
  586. #define SMPLE_TIME 30 //ms
  587. #define SAVE_TIME 60000 //ms
  588. #define CASCADE_CNT 0
  589. #define PHASE_GROUP 6
  590. #define CHANNEL_DELAY 6
  591. #define PROD_POWER_TYPE 0
  592. #define USE_BREAKER_ALARM
  593. #define USE_BEEP 1
  594. #define USE_LED 1
  595. #define SENSOR_ACCESS_NONE
  596. #define BRD_MAX 2
  597. #elif defined PRJ_DUALWIRES_AC_I3_O2
  598. #define LANGUAGE 0 //chinese
  599. #define SMPLE_TIME 30 //ms
  600. #define SAVE_TIME 60000 //ms
  601. #define CASCADE_CNT 0
  602. #define PHASE_GROUP 8
  603. #define CHANNEL_DELAY 8
  604. #define PROD_POWER_TYPE 6
  605. #define BRD_MAX 12
  606. #elif (defined PRJ_IP_AC_I3_O1)
  607. #define LANGUAGE 0
  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 5
  614. #define USE_BEEP 1
  615. //#define NOT_USE_CONTROL
  616. #elif (defined PRJ_IP_AC_I1_O1)
  617. #define LANGUAGE 0
  618. #define SMPLE_TIME 30 //ms
  619. #define SAVE_TIME 60000 //ms
  620. #define CASCADE_CNT 0
  621. #define PHASE_GROUP 8
  622. #define CHANNEL_DELAY 8
  623. #define PROD_POWER_TYPE 0
  624. #define USE_BEEP 1
  625. #define USE_LED 1
  626. #define BRD_MAX 1
  627. #elif (defined PRJ_RAO_AC_I1_O1)
  628. #define LANGUAGE 0
  629. #define SMPLE_TIME 30 //ms
  630. #define SAVE_TIME 60000 //ms
  631. #define CASCADE_CNT 0
  632. #define PHASE_GROUP 8
  633. #define CHANNEL_DELAY 8
  634. #define PROD_POWER_TYPE 0
  635. #define USE_BEEP 1
  636. #define USE_LED 1
  637. #define BRD_MAX 4
  638. #elif (defined PRJ_IP_XXXXXXXXXX_AC_I1_O1)
  639. #define LANGUAGE 1
  640. #define SMPLE_TIME 30 //ms
  641. #define SAVE_TIME 60000 //ms
  642. #define CASCADE_CNT 0
  643. #define PHASE_GROUP 8
  644. #define CHANNEL_DELAY 8
  645. #define PROD_POWER_TYPE 0
  646. #define BRD_MAX 1
  647. #define USE_BEEP 1
  648. #define USE_LED 1
  649. #define MONWAY 1 // 1总检测 2分监分控 3分监不控
  650. #elif (defined PRJ_IP_YUNNAN_AC_I1_O1)
  651. #define LANGUAGE 0
  652. #define SMPLE_TIME 30 //ms
  653. #define SAVE_TIME 60000 //ms
  654. #define CASCADE_CNT 0
  655. #define PHASE_GROUP 8
  656. #define CHANNEL_DELAY 8
  657. #define PROD_POWER_TYPE 0
  658. #define USE_BEEP 1
  659. #define USE_LED 1
  660. #define BRD_MAX 1
  661. #define USE_Cellular
  662. #elif (defined PRJ_IP_CHONGQING_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 1
  673. #elif (defined PRJ_IP_AOSENS_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 USE_BEEP 1
  682. #define USE_LED 1
  683. #define BRD_MAX 1
  684. #define NOT_USE_CONTROL
  685. #elif (defined PRJ_IP_AOSENS_DC_I_O)
  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 1
  693. #define USE_BEEP 1
  694. #define USE_LED 1
  695. #define BRD_MAX 1
  696. #elif (defined PRJ_IP_DEBIAO_AC_I3_O1)
  697. #define LANGUAGE 1
  698. #define SMPLE_TIME 30 //ms
  699. #define SAVE_TIME 60000 //ms
  700. #define CASCADE_CNT 0
  701. #define PHASE_GROUP 4
  702. #define CHANNEL_DELAY 8
  703. #define PROD_POWER_TYPE 5
  704. #define USE_BEEP 1
  705. #define BRD_MAX 3
  706. #define USE_LED 1
  707. #elif (defined PRJ_IP_GOX001_7_AC_I3_O1)
  708. #define LANGUAGE 0
  709. #define SMPLE_TIME 30 //ms
  710. #define SAVE_TIME 60000 //ms
  711. #define CASCADE_CNT 0
  712. #define PHASE_GROUP 7
  713. #define CHANNEL_DELAY 7
  714. #define PROD_POWER_TYPE 5
  715. #define USE_BEEP 1
  716. #define BRD_MAX 3
  717. #define USE_LED 1
  718. #elif (defined PRJ_IP_GOX001_4_AC_I3_O1)
  719. #define LANGUAGE 0
  720. #define SMPLE_TIME 30 //ms
  721. #define SAVE_TIME 60000 //ms
  722. #define CASCADE_CNT 0
  723. #define PHASE_GROUP 4
  724. #define CHANNEL_DELAY 4
  725. #define PROD_POWER_TYPE 5
  726. #define USE_BEEP 1
  727. #define BRD_MAX 3
  728. #define USE_LED 1
  729. #else
  730. #error define a PRJ_XXXX please!
  731. #endif
  732. #endif