cfg.h 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. #ifndef __CONFIG_Hx__
  2. #define __CONFIG_Hx__
  3. #define VERSION "V0.0.2"
  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_MAIL
  24. #define MAIL_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 PHASE_GROUP 8
  33. #ifdef PRJ_XIAN_AC_I1_O1_P4
  34. //#define GOM037PDU_GC20_04K_125H //ac_in1_out1_40a_p4_5ch_nologo_cn
  35. #define CHANNEL_DELAY 5
  36. #else
  37. //#define GOM037_PDU_GC10_08K_80H //ac_in1_out1_40a_p8_5ch_nologo_cn
  38. #define CHANNEL_DELAY 8
  39. #endif
  40. #define PROD_POWER_TYPE 0
  41. #define IN_INDEX_MAP {3,2,0,1}
  42. #elif (defined PRJ_USASL_AC_I3_O1) || (defined PRJ_USASL_AC_I3_O3)
  43. #define LANGUAGE 1 //english
  44. #define SMPLE_TIME 30 //ms
  45. #define SAVE_TIME 60000 //ms
  46. #define CASCADE_CNT 0
  47. #define PHASE_GROUP 8
  48. #define CHANNEL_DELAY 8
  49. //#define PDU_GC40_03K_125H //ac_in3_out3_40a_p8_12ch_nologo_en
  50. //#define PDU_GC60_04K_125H //ac_in3_out1_40a_p4_24ch_nologo_en
  51. #ifdef PRJ_USASL_AC_I3_O1
  52. #define PROD_POWER_TYPE 5
  53. #else
  54. #define PROD_POWER_TYPE 3
  55. #endif
  56. #elif (defined PRJ_ITK_AC_I1_O1) || (defined PRJ_ITK_AC_I3_O1)
  57. #define LANGUAGE 2 //russia
  58. #define SMPLE_TIME 30 //ms
  59. #define SAVE_TIME 60000 //ms
  60. #define CASCADE_CNT 0
  61. #define PHASE_GROUP 8
  62. #define CHANNEL_DELAY 8
  63. #define USE_LOGO_ITK
  64. #ifdef PRJ_ITK_AC_I1_O1
  65. #define PROD_POWER_TYPE 0
  66. #else
  67. #define PROD_POWER_TYPE 5
  68. #endif
  69. #elif (defined PRJ_LITECH_AC_I1_O1) || (defined PRJ_LITECH_AC_I3_O1)
  70. #define LANGUAGE 1 //english
  71. #define SMPLE_TIME 30 //ms
  72. #define SAVE_TIME 60000 //ms
  73. #define CASCADE_CNT 0
  74. #define USE_LOGO_LITECH
  75. #ifdef PRJ_LITECH_AC_I1_O1
  76. #define PHASE_GROUP 8
  77. #define CHANNEL_DELAY 8
  78. #define PROD_POWER_TYPE 0
  79. #else
  80. #define PHASE_GROUP 6
  81. #define CHANNEL_DELAY 6
  82. #define PROD_POWER_TYPE 5
  83. #endif
  84. #elif defined PRJ_STSC_I3_O3
  85. #define LANGUAGE 1 //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 3
  92. #elif defined PRJ_ANDERSON_AC_I3_O3
  93. #define LANGUAGE 1 //english
  94. #define SMPLE_TIME 30 //ms
  95. #define SAVE_TIME 60000 //ms
  96. #define CASCADE_CNT 0
  97. #define PHASE_GROUP 8
  98. #define CHANNEL_DELAY 8
  99. #define USE_NF_CTRL
  100. #define PROD_POWER_TYPE 3
  101. #elif defined PRJ_HYPERTEC_AC_I3_O1
  102. //ac_in3_out1_36ch_nologo_en_hypertec
  103. #define LANGUAGE 1 //english
  104. #define SMPLE_TIME 30 //ms
  105. #define SAVE_TIME 60000 //ms
  106. #define CASCADE_CNT 0
  107. #define PHASE_GROUP 6
  108. #define CHANNEL_DELAY 6
  109. #define USE_LOGO_HYPERTEC
  110. #define PROD_POWER_TYPE 5
  111. #elif defined PRJ_INSPUR_DC_I_DC_O
  112. #define LANGUAGE 0 //english
  113. #define SMPLE_TIME 30 //ms
  114. #define SAVE_TIME 60000 //ms
  115. #define CASCADE_CNT 0
  116. #define PHASE_GROUP 6
  117. #define CHANNEL_DELAY 6
  118. #define PROD_POWER_TYPE 1
  119. #elif defined PRJ_SG_I3_O3
  120. #define LANGUAGE 0 //english
  121. #define SMPLE_TIME 30 //ms
  122. #define SAVE_TIME 60000 //ms
  123. #define CASCADE_CNT 0
  124. #define PHASE_GROUP 6
  125. #define CHANNEL_DELAY 6
  126. #define PROD_POWER_TYPE 3
  127. #elif defined PRJ_TEST
  128. #define LANGUAGE 0 //chinese
  129. #define SMPLE_TIME 30 //ms
  130. #define SAVE_TIME 60000 //ms
  131. #define CASCADE_CNT 0
  132. #define PHASE_GROUP 8
  133. #define CHANNEL_DELAY 8
  134. #define PROD_POWER_TYPE 5
  135. #elif defined PRJ_TEST_AC_I1_O1
  136. #define LANGUAGE 0 //chinese
  137. #define SMPLE_TIME 30 //ms
  138. #define SAVE_TIME 60000 //ms
  139. #define CASCADE_CNT 0
  140. #define PHASE_GROUP 8
  141. #define CHANNEL_DELAY 8
  142. #define PROD_POWER_TYPE 0
  143. #elif defined PRJ_TEST_AC_I3_O1
  144. #define LANGUAGE 0 //chinese
  145. #define SMPLE_TIME 30 //ms
  146. #define SAVE_TIME 60000 //ms
  147. #define CASCADE_CNT 0
  148. #define PHASE_GROUP 8
  149. #define CHANNEL_DELAY 8
  150. #define PROD_POWER_TYPE 5
  151. #else
  152. #error define a PRJ_XXXX please!
  153. #endif
  154. #endif