cfg.h 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  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_IP_AC_I3_O3
  24. //#define PRJ_INST2302_DC_OLED
  25. //#define PRJ_INST2106_AC_I1_O1_OLED
  26. //#define PRJ_IP_AC_I3_O1
  27. #define PRJ_IP_AC_I1_O1
  28. //#define USE_BOARD_UPGRADE
  29. #define USE_MAIL
  30. #define MAIL_SEND_BUILTIN
  31. #define CHIP_T113i 0
  32. #define CHIP_T113s 1
  33. #define USE_MQTT
  34. #define MQTT_SERVER_BUILTIN
  35. //#define USE_CELL
  36. //#define USE_WIFI
  37. #if (defined PRJ_XIAN_AC_I1_O1_P4) || (defined PRJ_XIAN_AC_I1_O1_P8) //GOM037
  38. #define LANGUAGE 0 //chinese
  39. #define SMPLE_TIME 30 //ms
  40. #define SAVE_TIME 60000 //ms
  41. #define CASCADE_CNT 0
  42. #define PHASE_GROUP 8
  43. #ifdef PRJ_XIAN_AC_I1_O1_P4
  44. //#define GOM037PDU_GC20_04K_125H //ac_in1_out1_40a_p4_5ch_nologo_cn
  45. #define CHANNEL_DELAY 5
  46. #else
  47. //#define GOM037_PDU_GC10_08K_80H //ac_in1_out1_40a_p8_5ch_nologo_cn
  48. #define CHANNEL_DELAY 8
  49. #endif
  50. #define PROD_POWER_TYPE 0
  51. #define IN_INDEX_MAP {3,2,0,1}
  52. #elif (defined PRJ_USASL_AC_I3_O1) || (defined PRJ_USASL_AC_I3_O3)
  53. #define LANGUAGE 1 //english
  54. #define SMPLE_TIME 30 //ms
  55. #define SAVE_TIME 60000 //ms
  56. #define CASCADE_CNT 0
  57. #define PHASE_GROUP 8
  58. #define CHANNEL_DELAY 8
  59. //#define PDU_GC40_03K_125H //ac_in3_out3_40a_p8_12ch_nologo_en
  60. //#define PDU_GC60_04K_125H //ac_in3_out1_40a_p4_24ch_nologo_en
  61. #ifdef PRJ_USASL_AC_I3_O1
  62. #define PROD_POWER_TYPE 5
  63. #else
  64. #define PROD_POWER_TYPE 3
  65. #endif
  66. #elif (defined PRJ_ITK_AC_I1_O1) || (defined PRJ_ITK_AC_I3_O1)
  67. #define LANGUAGE 2 //russia
  68. #define SMPLE_TIME 30 //ms
  69. #define SAVE_TIME 60000 //ms
  70. #define CASCADE_CNT 0
  71. #define PHASE_GROUP 8
  72. #define CHANNEL_DELAY 8
  73. #define USE_LOGO_ITK
  74. #ifdef PRJ_ITK_AC_I1_O1
  75. #define PROD_POWER_TYPE 0
  76. #else
  77. #define PROD_POWER_TYPE 5
  78. #endif
  79. #elif (defined PRJ_LITECH_AC_I1_O1) || (defined PRJ_LITECH_AC_I3_O1)
  80. #define LANGUAGE 1 //english
  81. #define SMPLE_TIME 30 //ms
  82. #define SAVE_TIME 60000 //ms
  83. #define CASCADE_CNT 0
  84. #define USE_LOGO_LITECH
  85. #ifdef PRJ_LITECH_AC_I1_O1
  86. #define PHASE_GROUP 8
  87. #define CHANNEL_DELAY 8
  88. #define PROD_POWER_TYPE 0
  89. #else
  90. #define PHASE_GROUP 6
  91. #define CHANNEL_DELAY 6
  92. #define PROD_POWER_TYPE 5
  93. #endif
  94. #elif defined PRJ_STSC_I3_O3
  95. #define LANGUAGE 1 //english
  96. #define SMPLE_TIME 30 //ms
  97. #define SAVE_TIME 60000 //ms
  98. #define CASCADE_CNT 0
  99. #define PHASE_GROUP 8
  100. #define CHANNEL_DELAY 8
  101. #define PROD_POWER_TYPE 3
  102. #define NORTH_USER_SPECILS //north user specification
  103. #elif defined PRJ_STSC_I3_O1_OLED
  104. #define LANGUAGE 0 //english
  105. #define SMPLE_TIME 30 //ms
  106. #define SAVE_TIME 60000 //ms
  107. #define CASCADE_CNT 0
  108. #define PHASE_GROUP 8
  109. #define CHANNEL_DELAY 8
  110. #define PROD_POWER_TYPE 5
  111. #define USE_UI
  112. #define USE_BEEP
  113. #elif defined PRJ_ANDERSON_AC_I3_O3
  114. #define LANGUAGE 1 //english
  115. #define SMPLE_TIME 30 //ms
  116. #define SAVE_TIME 60000 //ms
  117. #define CASCADE_CNT 0
  118. #define PHASE_GROUP 8
  119. #define CHANNEL_DELAY 8
  120. #define USE_NF_CTRL
  121. #define PROD_POWER_TYPE 3
  122. #elif defined PRJ_HYPERTEC_AC_I3_O1
  123. //ac_in3_out1_36ch_nologo_en_hypertec
  124. #define LANGUAGE 1 //english
  125. #define SMPLE_TIME 30 //ms
  126. #define SAVE_TIME 60000 //ms
  127. #define CASCADE_CNT 0
  128. #define PHASE_GROUP 6
  129. #define CHANNEL_DELAY 6
  130. #define USE_LOGO_HYPERTEC
  131. #define PROD_POWER_TYPE 5
  132. #elif defined PRJ_INSPUR_DC_I_DC_O
  133. #define LANGUAGE 0 //english
  134. #define SMPLE_TIME 30 //ms
  135. #define SAVE_TIME 60000 //ms
  136. #define CASCADE_CNT 0
  137. #define PHASE_GROUP 6
  138. #define CHANNEL_DELAY 6
  139. #define PROD_POWER_TYPE 1
  140. #elif defined PRJ_SG_I3_O3
  141. #define LANGUAGE 0 //english
  142. #define SMPLE_TIME 30 //ms
  143. #define SAVE_TIME 60000 //ms
  144. #define CASCADE_CNT 0
  145. #define PHASE_GROUP 6
  146. #define CHANNEL_DELAY 6
  147. #define PROD_POWER_TYPE 3
  148. #elif defined PRJ_TEST
  149. #define LANGUAGE 0 //chinese
  150. #define SMPLE_TIME 30 //ms
  151. #define SAVE_TIME 60000 //ms
  152. #define CASCADE_CNT 0
  153. #define PHASE_GROUP 8
  154. #define CHANNEL_DELAY 8
  155. #define PROD_POWER_TYPE 5
  156. #elif defined PRJ_TEST_AC_I1_O1
  157. #define LANGUAGE 0 //chinese
  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 0
  164. #elif defined PRJ_TEST_AC_I3_O1
  165. #define LANGUAGE 0 //chinese
  166. #define SMPLE_TIME 30 //ms
  167. #define SAVE_TIME 60000 //ms
  168. #define CASCADE_CNT 0
  169. #define PHASE_GROUP 8
  170. #define CHANNEL_DELAY 8
  171. #define PROD_POWER_TYPE 5
  172. #elif defined PRJ_IP_AC_I3_O3
  173. #define LANGUAGE 0
  174. #define SMPLE_TIME 30 //ms
  175. #define SAVE_TIME 60000 //ms
  176. #define CASCADE_CNT 0
  177. #define PHASE_GROUP 8
  178. #define CHANNEL_DELAY 8
  179. #define PROD_POWER_TYPE 3
  180. #define NOT_USE_CONTROL
  181. #elif defined PRJ_INST2302_DC_OLED
  182. #define LANGUAGE 0 //chinese
  183. #define SMPLE_TIME 30 //ms
  184. #define SAVE_TIME 60000 //ms
  185. #define CASCADE_CNT 0
  186. #define PHASE_GROUP 8
  187. #define CHANNEL_DELAY 8
  188. #define PROD_POWER_TYPE 1
  189. #define USE_UI
  190. #define USE_SCREEN_LED
  191. //#define USE_SCREEN_LCD
  192. #elif defined PRJ_INST2106_AC_I1_O1_OLED
  193. #define LANGUAGE 0 //chinese
  194. #define SMPLE_TIME 30 //ms
  195. #define SAVE_TIME 60000 //ms
  196. #define CASCADE_CNT 0
  197. #define PHASE_GROUP 8
  198. #define CHANNEL_DELAY 8
  199. #define PROD_POWER_TYPE 0
  200. #define USE_UI
  201. #define ROTATE 180
  202. #define FLIP_TIME 3
  203. #elif (defined PRJ_IP_AC_I3_O1)
  204. #define LANGUAGE 0
  205. #define SMPLE_TIME 30 //ms
  206. #define SAVE_TIME 60000 //ms
  207. #define CASCADE_CNT 0
  208. #define PHASE_GROUP 8
  209. #define CHANNEL_DELAY 8
  210. #define PROD_POWER_TYPE 5
  211. //#define NOT_USE_CONTROL
  212. #elif (defined PRJ_IP_AC_I1_O1)
  213. #define LANGUAGE 0
  214. #define SMPLE_TIME 30 //ms
  215. #define SAVE_TIME 60000 //ms
  216. #define CASCADE_CNT 0
  217. #define PHASE_GROUP 8
  218. #define CHANNEL_DELAY 8
  219. #define PROD_POWER_TYPE 0
  220. #else
  221. #error define a PRJ_XXXX please!
  222. #endif
  223. #endif