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.
30 lines
752 B
30 lines
752 B
#pragma once
|
|
|
|
#define BOARD_ID 1
|
|
#define TMC_MOTOR_SPI hspi1
|
|
|
|
// MOTOR1
|
|
#define TMC_MOTOR1_CHANNEL 1
|
|
#define TMC_MOTOR1_SPI_SELECT1_IO PA4
|
|
#define TMC_MOTOR1_nFREEZE_IO PC2
|
|
#define TMC_MOTOR1_nRESET_IO PB3
|
|
#define TMC_MOTOR1_SUB_IC_ENN_IO PC3
|
|
#define TMC_MOTOR1_ENN_IO // unused
|
|
|
|
// MOTOR2
|
|
#define TMC_MOTOR2_CHANNEL 2
|
|
#define TMC_MOTOR2_SPI_SELECT1_IO PA8
|
|
#define TMC_MOTOR2_nFREEZE_IO PC6
|
|
#define TMC_MOTOR2_nRESET_IO PB2
|
|
#define TMC_MOTOR2_SUB_IC_ENN_IO PC7
|
|
#define TMC_MOTOR2_ENN_IO // unused
|
|
|
|
#define ARM_X_ZERO PD0
|
|
#define ARM_X_LIMIT PD1
|
|
#define ARM_Y_ZERO PD2
|
|
#define ARM_Y_LIMIT PD3
|
|
|
|
#define ARM_SENSOR5_GPIO PD4
|
|
#define ARM_SENSOR6_GPIO PD5
|
|
#define ARM_SENSOR7_GPIO PD6
|
|
#define ARM_SENSOR8_GPIO PD7
|