You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.8 KiB

2 years ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. #pragma once
  2. #include "iflytop_canbus_protocol/iflytop_canbus_protocol.hpp"
  3. /***********************************************************************************************************************
  4. * PROJECT_CONFIG *
  5. ***********************************************************************************************************************/
  6. /**
  7. * @brief
  8. *
  9. */
  10. #define SOFTWARE_VERSION 2
  11. #define HARDWARE_VERSION 1
  12. #define PROJECT "dbdb_liquid_path_control"
  13. #define SN_HEADER "SN"
  14. #define DEVICE_ID (kFixBoardId_LiquidCtrl)
  15. #define DEBUG_UART huart1 // 调试串口
  16. #define DEBUG_LIGHT_GPIO PE8 // 调试指示灯
  17. /**
  18. * @brief
  19. */
  20. #define MOTOR_SPI hspi1
  21. #define MOTOR_CH(n) (n)
  22. #define MOTOR2_CSN PA4 //
  23. #define MOTOR2_ENN PE11
  24. #define MOTOR1_CSN PC4 //
  25. #define MOTOR1_ENN PE12
  26. /***********************************************************************************************************************
  27. * SDK_CONFIG *
  28. ***********************************************************************************************************************/
  29. #define SDK_DELAY_US_TIMER htim6 // 微秒延迟定时器,注意该延时定时器需要按照以下文档进行配置 http://192.168.1.3:3000/zwikipedia/iflytop_wikipedia/src/branch/master/doc/stm32cubemx_us_timer.md
  30. #define SDK_IRQ_PREEMPTPRIORITY_DEFAULT 5 // IO中断默认中断等级
  31. #define SDK_CFG__CFG_FLASH_ADDR 0x080C0000 //
  32. #define SDK_CFG__SN_FLASH_ADDR 0x080E0000 //
  33. #define SDK_MAX_TASK 10