board_cfg.h 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /*********************************************************************************************************
  2. * Module : board_cfg
  3. * Abstract : controller board expecil configuration !!!!
  4. * Version : 1.0.0
  5. * Author : Leopul(COPYRIGHT 2025 ~ 2027 Leopul. All rights reserved.)
  6. * Complete : 2025-02-16
  7. * Content : None
  8. * Note : None
  9. *********************************************************************************************************/
  10. #ifndef __BOARD_CFG_H_
  11. #define __BOARD_CFG_H_
  12. #define OPEN_WATCH_DOG 1
  13. #define POWER_DC 0
  14. #define POWER_AC 1
  15. #define POWER_AC_3_3 4
  16. #define POWER_AC_3_1 2
  17. #define POWER_AC_3_2 3
  18. #define INPUT_PT_NONE 0 /* detect module count */
  19. #define INPUT_PT_1 1
  20. #define INPUT_PT_2 2
  21. #define INPUT_PT_3 3
  22. #define ZERO_LINE_CTRL_NO 0
  23. #define ZERO_LINE_CTRL_YES 1
  24. #define OUTPUT_CTRL_NO 0 /* */
  25. #define OUTPUT_CTRL_YES 1
  26. #define DEIVECE(elec_type,input_pt,ctrl_zero_flag,zero_count,ctrl_output_flag,relay_count) ((elec_type << 12)\
  27. |(input_pt << 10)\
  28. |(ctrl_zero_flag << 9)\
  29. |(zero_count << 7)\
  30. |(ctrl_output_flag << 6)\
  31. |relay_count)
  32. #define PT_SUB_COUNT_3 3
  33. #define PT_SUB_COUNT_4 4
  34. #define PRJ_8_NEW 0
  35. #define PRJ_3_4 0
  36. #define PRJ_3_2 0
  37. #define PRJ_DC_8 0
  38. #define PRJ_8_CHONGQING 1
  39. #if PRJ_8_NEW
  40. #define POWER_TYPE (POWER_AC)
  41. #define INPUT_PT_NUM (INPUT_PT_2)
  42. #define ZERO_CONTRL (ZERO_LINE_CTRL_NO)
  43. #define ZERO_CTRL_NUM (ZERO_LINE_NONE)
  44. #define OUTPUT_CONTRL (OUTPUT_CTRL_YES)
  45. #define SUPPORT_SELF_LOCK 0
  46. #define RelaySlaveChaNum 8
  47. #define RELAY_REMENBER 1
  48. #define SURPPORT_2_PT 0
  49. #define SUPPORT_ALL_ON_OFF 0
  50. #define PT_SUB_COUNT (PT_SUB_COUNT_4)
  51. #define ACSingCurrid 1
  52. #elif PRJ_8_CHONGQING
  53. #define POWER_TYPE (POWER_AC)
  54. #define INPUT_PT_NUM (INPUT_PT_2)
  55. #define ZERO_CONTRL (ZERO_LINE_CTRL_NO)
  56. #define ZERO_CTRL_NUM (ZERO_LINE_NONE)
  57. #define OUTPUT_CONTRL (OUTPUT_CTRL_YES)
  58. #define SUPPORT_SELF_LOCK 0
  59. #define RelaySlaveChaNum 8
  60. #define RELAY_REMENBER 1
  61. #define SURPPORT_2_PT 0
  62. #define SUPPORT_ALL_ON_OFF 0
  63. #define PT_SUB_COUNT (PT_SUB_COUNT_4)
  64. #define ACSingCurrid 1
  65. #define SUPPORT_CHONGQING 1
  66. #endif
  67. #endif