board_cfg.h 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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 0
  11. #define PRJ_ITK_8_CHANNEL 0
  12. #define PRJ_2_2_BASE 1
  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_SELF_LOCK 1
  29. #define SUPPORT_DETECTION 1
  30. #define ACSingCurrid 2
  31. #elif PRJ_6_BASE
  32. #define RelaySlaveChaNum 6
  33. #define SUPPORT_SWITCH_REMENBER 1
  34. #define SUPPORT_DETECTION 1
  35. #define SUPPORT_DETECTION_SWITCH 1
  36. #define ACSingCurrid 1
  37. #elif PRJ_8_BASE
  38. #define RelaySlaveChaNum 8
  39. #define SUPPORT_SWITCH_REMENBER 1
  40. #define SUPPORT_DETECTION 1
  41. #define ACSingCurrid 1
  42. #define SUPPORT_DETECTION_SWITCH 1
  43. #elif PRJ_1_ALL_O_ALL_C
  44. #define RelaySlaveChaNum 1
  45. #define SUPPORT_SWITCH_REMENBER 1
  46. #define SUPPORT_ALL_ON_OFF 1
  47. #define SUPPORT_DETECTION 1
  48. #define ACSingCurrid 2
  49. #elif PRJ_1_SELF_LOCK_SWITCH
  50. #define RelaySlaveChaNum 1
  51. #define SUPPORT_SELF_LOCK 1
  52. #define SUPPORT_SWITCH_REMENBER 1
  53. #define SUPPORT_DETECTION 1
  54. #define ACSingCurrid 2
  55. #elif PRJ_TWIN_FIRE
  56. #define RelaySlaveChaNum 4
  57. #define SUPPORT_TWIN_FIRE 1
  58. #define SUPPORT_SWITCH_REMENBER 1
  59. #define SUPPORT_DETECTION 1
  60. #define SUPPORT_DETECTION_SWITCH 1
  61. #define ACSingCurrid 1
  62. #elif PRJ_ITK_8_CHANNEL
  63. #define RelaySlaveChaNum 8
  64. #define SUPPORT_SWITCH_REMENBER 0
  65. #define SUPPORT_DETECTION 0
  66. #define ACSingCurrid 1
  67. #define SUPPORT_DETECTION_SWITCH 0
  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. #endif
  82. #endif