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.

20 lines
530 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
  1. #pragma once
  2. #define TMC_MOTOR_SPI hspi1
  3. #define TMC_DIAG1 PB0
  4. #define TMC_DIAG0 PB1
  5. // MOTOR0
  6. #define MOTOR0_CSN PA4
  7. #define MOTOR0_ENN PE3
  8. #define MOTOR0_SPI_MODE_SELECT PinNull
  9. #define MOTOR0_REFL PD13
  10. #define MOTOR0_REFR PD14
  11. // MOTOR1
  12. #define MOTOR1_CSN PA8
  13. #define MOTOR1_ENN PE6
  14. #define MOTOR1_SPI_MODE_SELECT PinNull
  15. #define MOTOR1_REFL PD11
  16. #define MOTOR1_REFR PD12
  17. #define MOTOR_CFG_FLASH_MARK "MOTOR_CFG_FLASH_MARK"