board_cfg.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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 0
  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 1
  35. #define PRJ_3_4 0
  36. #define PRJ_3_2 0
  37. #define PRJ_DC_8 0
  38. #if PRJ_8_NEW
  39. #define POWER_TYPE (POWER_AC)
  40. #define INPUT_PT_NUM (INPUT_PT_2)
  41. #define ZERO_CONTRL (ZERO_LINE_CTRL_NO)
  42. #define ZERO_CTRL_NUM (ZERO_LINE_NONE)
  43. #define OUTPUT_CONTRL (OUTPUT_CTRL_YES)
  44. #define RelaySlaveChaNum 8
  45. #define RELAY_REMENBER 1
  46. #define SURPPORT_2_PT 0
  47. #define SUPPORT_ALL_ON_OFF 0
  48. #define PT_SUB_COUNT (PT_SUB_COUNT_4)
  49. #define ACSingCurrid 1
  50. #endif
  51. #endif