cfg.h 32 KB

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