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.
 
 
 

25 lines
841 B

#pragma once
#define TMC_MOTOR_SPI hspi1
// JL_CSN
#define MOTOR1_CSN PA4
#define MOTOR1_ENN PE3
#define MOTOR1_SPI_MODE_SELECT PinNull
#define MOTOR1_REFL PD13
#define MOTOR1_REFR PD14
// SL_CSN
#define MOTOR2_CSN PA8
#define MOTOR2_ENN PE6
#define MOTOR2_SPI_MODE_SELECT PinNull
#define MOTOR2_REFL PD11
#define MOTOR2_REFR PD12
// CL_CSN
#define MOTOR3_CSN PA15
#define MOTOR3_ENN PE7
#define MOTOR3_SPI_MODE_SELECT PinNull
#define MOTOR3_REFL PD9
#define MOTOR3_REFR PD10
#define MOTOR_CFG_FLASH_MARK "MOTOR_CFG_FLASH_MARK"
#define BOARD_ID 4