cfg.h 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. #ifndef __CONFIG_Hx__
  2. #define __CONFIG_Hx__
  3. #define VERSION "V0.0.1"
  4. #define PROD_ID 0
  5. #define PROD_TYPE 1
  6. /////////////customer demannd//////////////////////
  7. //#define PRJ_XIAN_AC_I1_O1_P4
  8. //#define PRJ_XIAN_AC_I1_O1_P8
  9. //#define PRJ_USASL_AC_I3_O1
  10. //#define PRJ_USASL_AC_I3_O3
  11. //#define PRJ_ITK_AC_I1_O1
  12. //#define PRJ_ITK_AC_I3_O1
  13. //#define PRJ_STSC_I3_O3
  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 USE_SMTP
  24. #define SMTP_SEND_BUILTIN
  25. #define USE_MQTT
  26. #define MQTT_SERVER_BUILTIN
  27. #if (defined PRJ_XIAN_AC_I1_O1_P4) || (defined PRJ_XIAN_AC_I1_O1_P8) //GOM037
  28. #define LANGUAGE 0 //chinese
  29. #define SMPLE_TIME 30 //ms
  30. #define SAVE_TIME 60000 //ms
  31. #define CASCADE_CNT 0
  32. #define MAX_CHN_COUNT 16
  33. #define PHASE_GROUP 8
  34. #ifdef PRJ_XIAN_AC_I1_O1_P4
  35. //#define GOM037PDU_GC20_04K_125H //ac_in1_out1_40a_p4_5ch_nologo_cn
  36. #define CHANNEL_DELAY 5
  37. #else
  38. //#define GOM037_PDU_GC10_08K_80H //ac_in1_out1_40a_p8_5ch_nologo_cn
  39. #define CHANNEL_DELAY 8
  40. #endif
  41. #define PROD_POWER_TYPE 0
  42. #define IN_INDEX_MAP {3,2,0,1}
  43. #elif (defined PRJ_USASL_AC_I3_O1) || (defined PRJ_USASL_AC_I3_O3)
  44. #define LANGUAGE 1 //english
  45. #define SMPLE_TIME 30 //ms
  46. #define SAVE_TIME 60000 //ms
  47. #define CASCADE_CNT 0
  48. #define MAX_CHN_COUNT 16
  49. #define PHASE_GROUP 8
  50. #define CHANNEL_DELAY 8
  51. //#define PDU_GC40_03K_125H //ac_in3_out3_40a_p8_12ch_nologo_en
  52. //#define PDU_GC60_04K_125H //ac_in3_out1_40a_p4_24ch_nologo_en
  53. #ifdef PRJ_USASL_AC_I3_O1
  54. #define PROD_POWER_TYPE 5
  55. #else
  56. #define PROD_POWER_TYPE 3
  57. #endif
  58. #elif (defined PRJ_ITK_AC_I1_O1) || (defined PRJ_ITK_AC_I3_O1)
  59. #define LANGUAGE 2 //russia
  60. #define SMPLE_TIME 30 //ms
  61. #define SAVE_TIME 60000 //ms
  62. #define CASCADE_CNT 0
  63. #define MAX_CHN_COUNT 16
  64. #define PHASE_GROUP 8
  65. #define CHANNEL_DELAY 8
  66. #define USE_LOGO_ITK
  67. #ifdef PRJ_ITK_AC_I1_O1
  68. #define PROD_POWER_TYPE 0
  69. #else
  70. #define PROD_POWER_TYPE 5
  71. #endif
  72. #elif (defined PRJ_LITECH_AC_I1_O1) || (defined PRJ_LITECH_AC_I3_O1)
  73. #define LANGUAGE 1 //english
  74. #define SMPLE_TIME 30 //ms
  75. #define SAVE_TIME 60000 //ms
  76. #define CASCADE_CNT 0
  77. #define MAX_CHN_COUNT 16
  78. #define USE_LOGO_LITECH
  79. #ifdef PRJ_LITECH_AC_I1_O1
  80. #define PHASE_GROUP 8
  81. #define CHANNEL_DELAY 8
  82. #define PROD_POWER_TYPE 0
  83. #else
  84. #define PHASE_GROUP 6
  85. #define CHANNEL_DELAY 6
  86. #define PROD_POWER_TYPE 5
  87. #endif
  88. #elif defined PRJ_STSC_I3_O3
  89. #define LANGUAGE 1 //english
  90. #define SMPLE_TIME 30 //ms
  91. #define SAVE_TIME 60000 //ms
  92. #define CASCADE_CNT 0
  93. #define MAX_CHN_COUNT 24
  94. #define PHASE_GROUP 8
  95. #define CHANNEL_DELAY 8
  96. #define PROD_POWER_TYPE 3
  97. #elif defined PRJ_ANDERSON_AC_I3_O3
  98. #define LANGUAGE 1 //english
  99. #define SMPLE_TIME 30 //ms
  100. #define SAVE_TIME 60000 //ms
  101. #define CASCADE_CNT 0
  102. #define MAX_CHN_COUNT 24
  103. #define PHASE_GROUP 8
  104. #define CHANNEL_DELAY 8
  105. #define USE_NF_CTRL
  106. #define PROD_POWER_TYPE 3
  107. #elif defined PRJ_HYPERTEC_AC_I3_O1
  108. //ac_in3_out1_36ch_nologo_en_hypertec
  109. #define LANGUAGE 1 //english
  110. #define SMPLE_TIME 30 //ms
  111. #define SAVE_TIME 60000 //ms
  112. #define CASCADE_CNT 0
  113. #define MAX_CHN_COUNT 16
  114. #define PHASE_GROUP 6
  115. #define CHANNEL_DELAY 6
  116. #define USE_LOGO_HYPERTEC
  117. #define PROD_POWER_TYPE 5
  118. #elif defined PRJ_INSPUR_DC_I_DC_O
  119. #define LANGUAGE 0 //english
  120. #define SMPLE_TIME 30 //ms
  121. #define SAVE_TIME 60000 //ms
  122. #define CASCADE_CNT 0
  123. #define MAX_CHN_COUNT 16
  124. #define PHASE_GROUP 6
  125. #define CHANNEL_DELAY 6
  126. #define PROD_POWER_TYPE 1
  127. #elif defined PRJ_SG_I3_O3
  128. #define LANGUAGE 0 //english
  129. #define SMPLE_TIME 30 //ms
  130. #define SAVE_TIME 60000 //ms
  131. #define CASCADE_CNT 0
  132. #define MAX_CHN_COUNT 16
  133. #define PHASE_GROUP 6
  134. #define CHANNEL_DELAY 6
  135. #define PROD_POWER_TYPE 3
  136. #elif defined PRJ_TEST
  137. #define LANGUAGE 0 //chinese
  138. #define SMPLE_TIME 30 //ms
  139. #define SAVE_TIME 60000 //ms
  140. #define CASCADE_CNT 0
  141. #define MAX_CHN_COUNT 24//24//4
  142. #define PHASE_GROUP 8
  143. #define CHANNEL_DELAY 8
  144. #define PROD_POWER_TYPE 5
  145. #elif defined PRJ_TEST_AC_I1_O1
  146. #define LANGUAGE 0 //chinese
  147. #define SMPLE_TIME 30 //ms
  148. #define SAVE_TIME 60000 //ms
  149. #define CASCADE_CNT 0
  150. #define MAX_CHN_COUNT 24//24//4
  151. #define PHASE_GROUP 8
  152. #define CHANNEL_DELAY 8
  153. #define PROD_POWER_TYPE 0
  154. #elif defined PRJ_TEST_AC_I3_O1
  155. #define LANGUAGE 0 //chinese
  156. #define SMPLE_TIME 30 //ms
  157. #define SAVE_TIME 60000 //ms
  158. #define CASCADE_CNT 0
  159. #define MAX_CHN_COUNT 24//24//4
  160. #define PHASE_GROUP 8
  161. #define CHANNEL_DELAY 8
  162. #define PROD_POWER_TYPE 5
  163. #else
  164. #error define a PRJ_XXXX please!
  165. #endif
  166. #endif