cfg.h 31 KB

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