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
41 lines
905 B
#pragma once
|
|
#define TMC_MOTOR_SPI hspi1
|
|
// #define TMC_DIAG1 PB0
|
|
// #define TMC_DIAG0 PB1
|
|
|
|
#define ID0_IO PC0
|
|
#define ID1_IO PC1
|
|
#define ID2_IO PC2
|
|
#define ID3_IO PC3
|
|
#define ID4_IO PC4
|
|
|
|
#define SENSOR_INT0 PD0
|
|
#define SENSOR_INT1 PD1
|
|
#define SENSOR_INT2 PD2
|
|
#define SENSOR_INT3 PD3
|
|
#define SENSOR_INT4 PD4
|
|
#define SENSOR_INT5 PD5
|
|
#define SENSOR_INT6 PD6
|
|
#define SENSOR_INT7 PD7
|
|
#define SENSOR_INT8 PD8
|
|
#define SENSOR_INT9 PD9
|
|
|
|
|
|
// MOTOR0
|
|
#define MOTOR0_CSN PA4
|
|
#define MOTOR0_ENN PB7
|
|
#define MOTOR0_SPI_MODE_SELECT PB4
|
|
#define MOTOR0_REFL SENSOR_INT0
|
|
#define MOTOR0_REFR SENSOR_INT1
|
|
|
|
|
|
|
|
|
|
// MOTOR1
|
|
// #define MOTOR1_CSN PA8
|
|
// #define MOTOR1_ENN PE6
|
|
// #define MOTOR1_SPI_MODE_SELECT PinNull
|
|
// #define MOTOR1_REFL PD11
|
|
// #define MOTOR1_REFR PD12
|
|
|
|
// #define MOTOR_CFG_FLASH_MARK "MOTOR_CFG_FLASH_MARK"
|