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.

25 lines
841 B

2 years ago
  1. #pragma once
  2. #define TMC_MOTOR_SPI hspi1
  3. // JL_CSN
  4. #define MOTOR1_CSN PA4
  5. #define MOTOR1_ENN PE3
  6. #define MOTOR1_SPI_MODE_SELECT PinNull
  7. #define MOTOR1_REFL PD13
  8. #define MOTOR1_REFR PD14
  9. // SL_CSN
  10. #define MOTOR2_CSN PA8
  11. #define MOTOR2_ENN PE6
  12. #define MOTOR2_SPI_MODE_SELECT PinNull
  13. #define MOTOR2_REFL PD11
  14. #define MOTOR2_REFR PD12
  15. // CL_CSN
  16. #define MOTOR3_CSN PA15
  17. #define MOTOR3_ENN PE7
  18. #define MOTOR3_SPI_MODE_SELECT PinNull
  19. #define MOTOR3_REFL PD9
  20. #define MOTOR3_REFR PD10
  21. #define MOTOR_CFG_FLASH_MARK "MOTOR_CFG_FLASH_MARK"
  22. #define BOARD_ID 4