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
32 lines
757 B
#pragma once
|
|
// MOTOR1
|
|
#define TMC_MOTOR_SPI hspi1
|
|
#define TMC5130_MOTOR_NUM 1
|
|
#define MOTOR0_CSN PA4
|
|
#define MOTOR0_ENN PB7
|
|
#define MOTOR1_SPI_MODE_SELECT PB4
|
|
|
|
#define MOTOR_CFG_FLASH_MARK "MOTOR_CFG_FLASH_MARK"
|
|
|
|
#if 0
|
|
#define STEPPER_MOTOR_ZERO_SENSOR SENSOR_INT0
|
|
#define STEPPER_MOTOR_FORWARD_SENSOR SENSOR_INT8
|
|
#define STEPPER_MOTOR_BACKWARD_SENSOR SENSOR_INT9
|
|
#endif
|
|
|
|
#define ID0_IO PD11
|
|
#define ID1_IO PD12
|
|
#define ID2_IO PD13
|
|
#define ID3_IO PD14
|
|
#define ID4_IO PD15
|
|
|
|
#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
|