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.

51 lines
1.1 KiB

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. #define ID0_IO PE0
  6. #define ID1_IO PE1
  7. #define ID2_IO PE3
  8. #define ID3_IO PE6
  9. #define ID4_IO PB9
  10. #define SENSOR_INT0 PD0
  11. #define SENSOR_INT1 PD1
  12. #define SENSOR_INT2 PD2
  13. #define SENSOR_INT3 PD3
  14. #define SENSOR_INT4 PD4
  15. #define SENSOR_INT5 PD5
  16. #define SENSOR_INT6 PD6
  17. #define SENSOR_INT7 PD7
  18. #define SENSOR_INT8 PD8
  19. #define SENSOR_INT9 PD9
  20. // MOTOR0
  21. // #define MOTOR0_SPI_MODE_SELECT PB4
  22. #define MOTO1_CSN PB3
  23. #define MOTO2_CSN PB4
  24. #define MOTO3_CSN PB5
  25. #define MOTO4_CSN PB6
  26. #define MOTO5_CSN PB7
  27. #define MOTO6_CSN PB8
  28. #define MOTO7_CSN PB12
  29. #define MOTO8_CSN PB13
  30. #define MOTO1_DRV_ENN PE8
  31. #define MOTO2_DRV_ENN PE9
  32. #define MOTO3_DRV_ENN PE10
  33. #define MOTO4_DRV_ENN PE11
  34. #define MOTO5_DRV_ENN PE12
  35. #define MOTO6_DRV_ENN PE13
  36. #define MOTO7_DRV_ENN PE14
  37. #define MOTO8_DRV_ENN PE15
  38. // MOTOR1
  39. // #define MOTOR1_CSN PA8
  40. // #define MOTOR1_ENN PE6
  41. // #define MOTOR1_SPI_MODE_SELECT PinNull
  42. // #define MOTOR1_REFL PD11
  43. // #define MOTOR1_REFR PD12
  44. // #define MOTOR_CFG_FLASH_MARK "MOTOR_CFG_FLASH_MARK"