board_cfg.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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 0
  10. #define PRJ_TWIN_FIRE 1
  11. #define PRJ_ITK_8_CHANNEL 0
  12. #define PRJ_2_2_BASE 0
  13. #define PRJ_8_NEW 0
  14. #define PRJ_OLD_4 0
  15. #define PRJ_1_All_OLD 0
  16. #if PRJ_4_BASE
  17. #define RelaySlaveChaNum 4
  18. #define SUPPORT_SWITCH_REMENBER 1
  19. #define SUPPORT_DETECTION 1
  20. #define ACSingCurrid 2
  21. #elif PRJ_4_ALL_O_ALL_C
  22. #define RelaySlaveChaNum 4
  23. #define SUPPORT_SWITCH_REMENBER 1
  24. #define SUPPORT_ALL_ON_OFF 1
  25. #define SUPPORT_JLINK 1
  26. #define SUPPORT_DETECTION 1
  27. #define ACSingCurrid 2
  28. #elif PRJ_4_SELF_LOCK_SWITCH
  29. #define RelaySlaveChaNum 4
  30. #define SUPPORT_SWITCH_REMENBER 1
  31. #define SUPPORT_SELF_LOCK 1
  32. #define SUPPORT_DETECTION 1
  33. #define ACSingCurrid 2
  34. #elif PRJ_6_BASE
  35. #define RelaySlaveChaNum 6
  36. #define SUPPORT_SWITCH_REMENBER 1
  37. #define SUPPORT_DETECTION 1
  38. #define ACSingCurrid 1
  39. #elif PRJ_8_BASE
  40. #define RelaySlaveChaNum 8
  41. #define SUPPORT_SWITCH_REMENBER 1
  42. #define SUPPORT_DETECTION 1
  43. #define ACSingCurrid 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_FALLING_DETECTED 0
  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. #elif PRJ_2_2_BASE
  69. #define RelaySlaveChaNum 2
  70. #define SURPPORT_2_2 1
  71. #define SUPPORT_DETECTION 1
  72. #define SUPPORT_SWITCH_REMENBER 1
  73. #define SUPPORT_ALL_ON_OFF 1
  74. #define ACSingCurrid 2
  75. #elif PRJ_8_NEW
  76. #define RelaySlaveChaNum 8
  77. #define SUPPORT_2_DETECTION 1
  78. #define SUPPORT_SWITCH_REMENBER 1
  79. #define SUPPORT_DETECTION 1
  80. #define ACSingCurrid 1
  81. #elif PRJ_OLD_4
  82. #define RelaySlaveChaNum 4
  83. #define SUPPORT_4_KEY 1
  84. #define ACSingCurrid 2
  85. #elif PRJ_1_All_OLD
  86. #define RelaySlaveChaNum 1
  87. #define SUPPORT_4_KEY 1
  88. #define ACSingCurrid 2
  89. #endif
  90. #endif