cfg.h 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  1. #ifndef __CONFIG_Hx__
  2. #define __CONFIG_Hx__
  3. #define VERSION "V0.0.2"
  4. #define PROD_ID 0
  5. /////////////customer demannd//////////////////////
  6. //#define PRJ_XIAN_AC_I1_O1_P4
  7. //#define PRJ_XIAN_AC_I1_O1_P8
  8. //#define PRJ_USASL_AC_I3_O1
  9. //#define PRJ_USASL_AC_I3_O3
  10. //#define PRJ_ITK_AC_I1_O1
  11. //#define PRJ_ITK_AC_I3_O1
  12. //#define PRJ_STSC_I3_O3
  13. //#define PRJ_STSC_I3_O1_OLED
  14. //#define PRJ_LITECH_AC_I1_O1
  15. //#define PRJ_LITECH_AC_I3_O1
  16. //#define PRJ_INSPUR_DC_I_DC_O
  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_TEST_AC_I3_O3
  24. //#define PRJ_ESOUTH_DC_I1_O4_RGB5
  25. //#define PRJ_IP_AC_I3_O3
  26. //#define PRJ_INST2302_DC_OLED
  27. //#define PRJ_INST2106_AC_I1_O1_OLED
  28. //#define PRJ_IP_AC_I3_O1
  29. //#define PRJ_IP_AC_I1_O1
  30. #define USE_MAIL
  31. #define MAIL_SEND_BUILTIN
  32. #define CHIP_T113i 0
  33. #define CHIP_T113s 1
  34. #define USE_MQTT
  35. #define MQTT_SERVER_BUILTIN
  36. //#define USE_CELL
  37. //#define USE_WIFI
  38. //#define USE_BOARD_UPGRADE
  39. #if (CHIP_TYPE == CHIP_T113s)
  40. #define USE_WATCHDOG
  41. #endif
  42. #if (defined PRJ_XIAN_AC_I1_O1_P4) || (defined PRJ_XIAN_AC_I1_O1_P8) //GOM037
  43. #define LANGUAGE 0 //chinese
  44. #define SMPLE_TIME 30 //ms
  45. #define SAVE_TIME 60000 //ms
  46. #define CASCADE_CNT 0
  47. #define PHASE_GROUP 8
  48. #ifdef PRJ_XIAN_AC_I1_O1_P4
  49. //#define GOM037PDU_GC20_04K_125H //ac_in1_out1_40a_p4_5ch_nologo_cn
  50. #define CHANNEL_DELAY 5
  51. #else
  52. //#define GOM037_PDU_GC10_08K_80H //ac_in1_out1_40a_p8_5ch_nologo_cn
  53. #define CHANNEL_DELAY 8
  54. #endif
  55. #define PROD_POWER_TYPE 0
  56. #define IN_INDEX_MAP {3,2,0,1}
  57. #elif (defined PRJ_USASL_AC_I3_O1) || (defined PRJ_USASL_AC_I3_O3)
  58. #define LANGUAGE 1 //english
  59. #define SMPLE_TIME 30 //ms
  60. #define SAVE_TIME 60000 //ms
  61. #define CASCADE_CNT 0
  62. #define PHASE_GROUP 8
  63. #define CHANNEL_DELAY 8
  64. //#define PDU_GC40_03K_125H //ac_in3_out3_40a_p8_12ch_nologo_en
  65. //#define PDU_GC60_04K_125H //ac_in3_out1_40a_p4_24ch_nologo_en
  66. #ifdef PRJ_USASL_AC_I3_O1
  67. #define PROD_POWER_TYPE 5
  68. #else
  69. #define PROD_POWER_TYPE 3
  70. #endif
  71. #elif (defined PRJ_ITK_AC_I1_O1) || (defined PRJ_ITK_AC_I3_O1)
  72. #define LANGUAGE 2 //russia
  73. #define SMPLE_TIME 30 //ms
  74. #define SAVE_TIME 60000 //ms
  75. #define CASCADE_CNT 0
  76. #define PHASE_GROUP 8
  77. #define CHANNEL_DELAY 8
  78. #define USE_LOGO_ITK
  79. #ifdef PRJ_ITK_AC_I1_O1
  80. #define PROD_POWER_TYPE 0
  81. #else
  82. #define PROD_POWER_TYPE 5
  83. #endif
  84. #elif (defined PRJ_LITECH_AC_I1_O1) || (defined PRJ_LITECH_AC_I3_O1)
  85. #define LANGUAGE 1 //english
  86. #define SMPLE_TIME 30 //ms
  87. #define SAVE_TIME 60000 //ms
  88. #define CASCADE_CNT 0
  89. #define USE_LOGO_LITECH
  90. #ifdef PRJ_LITECH_AC_I1_O1
  91. #define PHASE_GROUP 8
  92. #define CHANNEL_DELAY 8
  93. #define PROD_POWER_TYPE 0
  94. #else
  95. #define PHASE_GROUP 6
  96. #define CHANNEL_DELAY 6
  97. #define PROD_POWER_TYPE 5
  98. #endif
  99. #elif defined PRJ_STSC_I3_O3
  100. #define LANGUAGE 1 //english
  101. #define SMPLE_TIME 30 //ms
  102. #define SAVE_TIME 60000 //ms
  103. #define CASCADE_CNT 0
  104. #define PHASE_GROUP 8
  105. #define CHANNEL_DELAY 8
  106. #define PROD_POWER_TYPE 3
  107. #define NORTH_USER_SPECILS //north user specification
  108. #elif defined PRJ_STSC_I3_O1_OLED
  109. #define LANGUAGE 0 //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 PROD_POWER_TYPE 5
  116. #define USE_UI
  117. #define USE_BEEP
  118. #elif defined PRJ_ANDERSON_AC_I3_O3
  119. #define LANGUAGE 1 //english
  120. #define SMPLE_TIME 30 //ms
  121. #define SAVE_TIME 60000 //ms
  122. #define CASCADE_CNT 0
  123. #define PHASE_GROUP 8
  124. #define CHANNEL_DELAY 8
  125. #define USE_NF_CTRL
  126. #define PROD_POWER_TYPE 3
  127. #elif defined PRJ_HYPERTEC_AC_I3_O1
  128. //ac_in3_out1_36ch_nologo_en_hypertec
  129. #define LANGUAGE 1 //english
  130. #define SMPLE_TIME 30 //ms
  131. #define SAVE_TIME 60000 //ms
  132. #define CASCADE_CNT 0
  133. #define PHASE_GROUP 6
  134. #define CHANNEL_DELAY 6
  135. #define USE_LOGO_HYPERTEC
  136. #define PROD_POWER_TYPE 5
  137. #elif defined PRJ_INSPUR_DC_I_DC_O
  138. #define LANGUAGE 0 //chinese
  139. #define SMPLE_TIME 30 //ms
  140. #define SAVE_TIME 60000 //ms
  141. #define CASCADE_CNT 0
  142. #define PHASE_GROUP 6
  143. #define CHANNEL_DELAY 6
  144. #define PROD_POWER_TYPE 1
  145. #elif defined PRJ_SG_I3_O3
  146. #define LANGUAGE 0 //chinese
  147. #define SMPLE_TIME 30 //ms
  148. #define SAVE_TIME 60000 //ms
  149. #define CASCADE_CNT 0
  150. #define PHASE_GROUP 6
  151. #define CHANNEL_DELAY 6
  152. #define PROD_POWER_TYPE 3
  153. #elif defined PRJ_TEST
  154. #define LANGUAGE 0 //chinese
  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 5
  161. #elif defined PRJ_TEST_AC_I1_O1
  162. #define LANGUAGE 0 //chinese
  163. #define SMPLE_TIME 30 //ms
  164. #define SAVE_TIME 60000 //ms
  165. #define CASCADE_CNT 0
  166. #define PHASE_GROUP 8
  167. #define CHANNEL_DELAY 8
  168. #define PROD_POWER_TYPE 0
  169. #elif defined PRJ_TEST_AC_I3_O1
  170. #define LANGUAGE 0 //chinese
  171. #define SMPLE_TIME 30 //ms
  172. #define SAVE_TIME 60000 //ms
  173. #define CASCADE_CNT 0
  174. #define PHASE_GROUP 8
  175. #define CHANNEL_DELAY 8
  176. #define PROD_POWER_TYPE 5
  177. #elif defined PRJ_TEST_AC_I3_O3
  178. #define LANGUAGE 0 //chinese
  179. #define SMPLE_TIME 30 //ms
  180. #define SAVE_TIME 60000 //ms
  181. #define CASCADE_CNT 0
  182. #define PHASE_GROUP 8
  183. #define CHANNEL_DELAY 8
  184. #define PROD_POWER_TYPE 3
  185. #define BRD_MAX 2
  186. #define MONWAY 1
  187. #elif defined PRJ_IP_AC_I3_O3
  188. #define LANGUAGE 0
  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 PROD_POWER_TYPE 3
  195. #define NOT_USE_CONTROL
  196. #elif defined PRJ_INST2302_DC_OLED
  197. #define LANGUAGE 0 //chinese
  198. #define SMPLE_TIME 30 //ms
  199. #define SAVE_TIME 60000 //ms
  200. #define CASCADE_CNT 0
  201. #define PHASE_GROUP 8
  202. #define CHANNEL_DELAY 8
  203. #define PROD_POWER_TYPE 1
  204. #define USE_UI
  205. #define USE_SCREEN_LED
  206. //#define USE_SCREEN_LCD
  207. #elif defined PRJ_INST2106_AC_I1_O1_OLED
  208. #define LANGUAGE 0 //chinese
  209. #define SMPLE_TIME 30 //ms
  210. #define SAVE_TIME 60000 //ms
  211. #define CASCADE_CNT 0
  212. #define PHASE_GROUP 8
  213. #define CHANNEL_DELAY 8
  214. #define PROD_POWER_TYPE 0
  215. #define USE_UI
  216. #define ROTATE 180
  217. #define FLIP_TIME 3
  218. #elif defined PRJ_ESOUTH_DC_I1_O4_RGB5
  219. #define LANGUAGE 0 //chinese
  220. #define SMPLE_TIME 30 //ms
  221. #define SAVE_TIME 60000 //ms
  222. #define CASCADE_CNT 0
  223. #define PHASE_GROUP 8
  224. #define CHANNEL_DELAY 8
  225. #define PROD_POWER_TYPE 1
  226. #define SCREEN_RGB
  227. #define USE_WATCHDOG
  228. #define BRD_MAX 10
  229. #elif (defined PRJ_IP_AC_I3_O1)
  230. #define LANGUAGE 0
  231. #define SMPLE_TIME 30 //ms
  232. #define SAVE_TIME 60000 //ms
  233. #define CASCADE_CNT 0
  234. #define PHASE_GROUP 8
  235. #define CHANNEL_DELAY 8
  236. #define PROD_POWER_TYPE 5
  237. #define USE_BEEP 1
  238. //#define NOT_USE_CONTROL
  239. #elif (defined PRJ_IP_AC_I1_O1)
  240. #define LANGUAGE 0
  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 USE_BEEP 1
  248. #define USE_LED 1
  249. #else
  250. #error define a PRJ_XXXX please!
  251. #endif
  252. #endif