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.

41 lines
905 B

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 PC0
  6. #define ID1_IO PC1
  7. #define ID2_IO PC2
  8. #define ID3_IO PC3
  9. #define ID4_IO PC4
  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_CSN PA4
  22. #define MOTOR0_ENN PB7
  23. #define MOTOR0_SPI_MODE_SELECT PB4
  24. #define MOTOR0_REFL SENSOR_INT0
  25. #define MOTOR0_REFR SENSOR_INT1
  26. // MOTOR1
  27. // #define MOTOR1_CSN PA8
  28. // #define MOTOR1_ENN PE6
  29. // #define MOTOR1_SPI_MODE_SELECT PinNull
  30. // #define MOTOR1_REFL PD11
  31. // #define MOTOR1_REFR PD12
  32. // #define MOTOR_CFG_FLASH_MARK "MOTOR_CFG_FLASH_MARK"