board_cfg.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. #ifndef __BOARD_CFG_H_
  2. #define __BOARD_CFG_H_
  3. #define PRJ_4_BASE 0
  4. #define PRJ_4_ALL_O_ALL_C 0
  5. #define PRJ_4_SELF_LOCK_SWITCH 0
  6. #define PRJ_6_BASE 0
  7. #define PRJ_8_BASE 0
  8. #define PRJ_1_ALL_O_ALL_C 0
  9. #define PRJ_1_SELF_LOCK_SWITCH 1
  10. #define PRJ_TWIN_FIRE 0
  11. #define PRJ_ITK_8_CHANNEL 0
  12. #define PRJ_2_2_BASE 0
  13. #define PRJ_8_NEW 0
  14. #if PRJ_4_BASE
  15. #define RelaySlaveChaNum 4
  16. #define SUPPORT_SWITCH_REMENBER 1
  17. #define SUPPORT_DETECTION 1
  18. #define ACSingCurrid 2
  19. #elif PRJ_4_ALL_O_ALL_C
  20. #define RelaySlaveChaNum 4
  21. #define SUPPORT_SWITCH_REMENBER 1
  22. #define SUPPORT_ALL_ON_OFF 1
  23. #define SUPPORT_JLINK 1
  24. #define SUPPORT_DETECTION 1
  25. #define ACSingCurrid 2
  26. #elif PRJ_4_SELF_LOCK_SWITCH
  27. #define RelaySlaveChaNum 4
  28. //#define SUPPORT_SWITCH_REMENBER 1
  29. #define SUPPORT_SELF_LOCK 1
  30. #define SUPPORT_DETECTION 1
  31. #define ACSingCurrid 2
  32. #elif PRJ_6_BASE
  33. #define RelaySlaveChaNum 6
  34. #define SUPPORT_SWITCH_REMENBER 1
  35. #define SUPPORT_DETECTION 1
  36. #define SUPPORT_DETECTION_SWITCH 1
  37. #define ACSingCurrid 1
  38. #elif PRJ_8_BASE
  39. #define RelaySlaveChaNum 8
  40. #define SUPPORT_SWITCH_REMENBER 1
  41. #define SUPPORT_DETECTION 1
  42. #define ACSingCurrid 1
  43. #define SUPPORT_DETECTION_SWITCH 1
  44. #elif PRJ_1_ALL_O_ALL_C
  45. #define RelaySlaveChaNum 1
  46. #define SUPPORT_SWITCH_REMENBER 1
  47. #define SUPPORT_ALL_ON_OFF 1
  48. #define SUPPORT_DETECTION 1
  49. #define ACSingCurrid 2
  50. #elif PRJ_1_SELF_LOCK_SWITCH
  51. #define RelaySlaveChaNum 1
  52. #define SUPPORT_SELF_LOCK 1
  53. //#define SUPPORT_SWITCH_REMENBER 1
  54. #define SUPPORT_DETECTION 1
  55. #define ACSingCurrid 2
  56. #elif PRJ_TWIN_FIRE
  57. #define RelaySlaveChaNum 4
  58. #define SUPPORT_TWIN_FIRE 1
  59. #define SUPPORT_SWITCH_REMENBER 1
  60. #define SUPPORT_DETECTION 1
  61. #define SUPPORT_DETECTION_SWITCH 1
  62. #define ACSingCurrid 1
  63. #elif PRJ_ITK_8_CHANNEL
  64. #define RelaySlaveChaNum 8
  65. #define SUPPORT_SWITCH_REMENBER 0
  66. #define SUPPORT_DETECTION 0
  67. #define ACSingCurrid 1
  68. #define SUPPORT_DETECTION_SWITCH 0
  69. #elif PRJ_2_2_BASE
  70. #define RelaySlaveChaNum 2
  71. #define SURPPORT_2_2 1
  72. #define SUPPORT_DETECTION 1
  73. #define SUPPORT_SWITCH_REMENBER 1
  74. #define SUPPORT_ALL_ON_OFF 1
  75. #define ACSingCurrid 2
  76. #elif PRJ_8_NEW
  77. #define RelaySlaveChaNum 8
  78. #define SUPPORT_2_DETECTION 1
  79. #define SUPPORT_SWITCH_REMENBER 1
  80. #define SUPPORT_DETECTION 1
  81. #define ACSingCurrid 1
  82. #endif
  83. #endif