cfg.h 28 KB

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