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.

23 lines
622 B

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. #pragma once
  2. #define VERSION "v1.0"
  3. // 设备ID
  4. #define DEVICE_ID (2)
  5. // 调试串口
  6. #define DEBUG_UART huart1
  7. // 调试指示灯
  8. #define DEBUG_LIGHT_GPIO PE8
  9. // 微秒延迟定时器,注意该延时定时器需要按照以下文档进行配置
  10. // http://192.168.1.3:3000/zwikipedia/iflytop_wikipedia/src/branch/master/doc/stm32cubemx_us_timer.md
  11. #define DELAY_US_TIMER htim6
  12. #define MICROSWITCH_NUM 6
  13. //
  14. #define MOTOR_SPI hspi1
  15. #define TMC5130_MOTOR_NUM 2
  16. #define MOTOR_CH(n) (n)
  17. // FYBJ_PY
  18. #define MOTOR2_CSN PA4 //
  19. #define MOTOR2_ENN PE11
  20. // FYBJ_TJ_DRV
  21. #define MOTOR1_CSN PC4 //
  22. #define MOTOR1_ENN PE12