board_cfg.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. #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_FALLING_DETECTED 1
  32. #define SUPPORT_SELF_LOCK 1
  33. #define SUPPORT_DETECTION 1
  34. #define ACSingCurrid 2
  35. #elif PRJ_6_BASE
  36. #define RelaySlaveChaNum 6
  37. #define SUPPORT_SWITCH_REMENBER 1
  38. #define SUPPORT_DETECTION 1
  39. #define ACSingCurrid 1
  40. #elif PRJ_8_BASE
  41. #define RelaySlaveChaNum 8
  42. #define SUPPORT_SWITCH_REMENBER 1
  43. #define SUPPORT_DETECTION 1
  44. #define ACSingCurrid 1
  45. #elif PRJ_1_ALL_O_ALL_C
  46. #define RelaySlaveChaNum 1
  47. #define SUPPORT_SWITCH_REMENBER 1
  48. #define SUPPORT_ALL_ON_OFF 1
  49. #define SUPPORT_DETECTION 1
  50. #define ACSingCurrid 2
  51. #elif PRJ_1_SELF_LOCK_SWITCH
  52. #define RelaySlaveChaNum 1
  53. #define SUPPORT_SELF_LOCK 1
  54. #define SUPPORT_FALLING_DETECTED 1
  55. #define SUPPORT_SWITCH_REMENBER 1
  56. #define SUPPORT_DETECTION 1
  57. #define ACSingCurrid 2
  58. #elif PRJ_TWIN_FIRE
  59. #define RelaySlaveChaNum 4
  60. #define SUPPORT_TWIN_FIRE 1
  61. #define SUPPORT_SWITCH_REMENBER 1
  62. #define SUPPORT_DETECTION 1
  63. #define SUPPORT_FALLING_DETECTED 0
  64. #define ACSingCurrid 1
  65. #elif PRJ_ITK_8_CHANNEL
  66. #define RelaySlaveChaNum 8
  67. #define SUPPORT_SWITCH_REMENBER 0
  68. #define SUPPORT_DETECTION 0
  69. #define ACSingCurrid 1
  70. #elif PRJ_2_2_BASE
  71. #define RelaySlaveChaNum 2
  72. #define SURPPORT_2_2 1
  73. #define SUPPORT_DETECTION 1
  74. #define SUPPORT_SWITCH_REMENBER 1
  75. #define SUPPORT_ALL_ON_OFF 1
  76. #define ACSingCurrid 2
  77. #elif PRJ_8_NEW
  78. #define RelaySlaveChaNum 8
  79. #define SUPPORT_2_DETECTION 1
  80. #define SUPPORT_SWITCH_REMENBER 1
  81. #define SUPPORT_DETECTION 1
  82. #define ACSingCurrid 1
  83. #elif PRJ_OLD_4
  84. #define RelaySlaveChaNum 4
  85. #define SUPPORT_4_KEY 1
  86. #define ACSingCurrid 2
  87. #elif PRJ_1_All_OLD
  88. #define RelaySlaveChaNum 1
  89. #define SUPPORT_4_KEY 1
  90. #define ACSingCurrid 2
  91. #endif
  92. #endif