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.

32 lines
757 B

2 years ago
  1. #pragma once
  2. // MOTOR1
  3. #define TMC_MOTOR_SPI hspi1
  4. #define TMC5130_MOTOR_NUM 1
  5. #define MOTOR0_CSN PA4
  6. #define MOTOR0_ENN PB7
  7. #define MOTOR1_SPI_MODE_SELECT PB4
  8. #define MOTOR_CFG_FLASH_MARK "MOTOR_CFG_FLASH_MARK"
  9. #if 0
  10. #define STEPPER_MOTOR_ZERO_SENSOR SENSOR_INT0
  11. #define STEPPER_MOTOR_FORWARD_SENSOR SENSOR_INT8
  12. #define STEPPER_MOTOR_BACKWARD_SENSOR SENSOR_INT9
  13. #endif
  14. #define ID0_IO PD11
  15. #define ID1_IO PD12
  16. #define ID2_IO PD13
  17. #define ID3_IO PD14
  18. #define ID4_IO PD15
  19. #define SENSOR_INT0 PD0
  20. #define SENSOR_INT1 PD1
  21. #define SENSOR_INT2 PD2
  22. #define SENSOR_INT3 PD3
  23. #define SENSOR_INT4 PD4
  24. #define SENSOR_INT5 PD5
  25. #define SENSOR_INT6 PD6
  26. #define SENSOR_INT7 PD7
  27. #define SENSOR_INT8 PD8
  28. #define SENSOR_INT9 PD9