From 25e0dba36bde366badfa86191fad3865b5b5f962 Mon Sep 17 00:00:00 2001 From: Surion79 <102791900+Surion79@users.noreply.github.com> Date: Mon, 8 May 2023 23:01:33 +0200 Subject: [PATCH] Fix missing pins for SB2240 --- config/mcu_definitions/toolhead/BTT_SB2240_v1.0.cfg | 1 + user_templates/mcu_defaults/toolhead/BTT_SB2240_v1.0.cfg | 1 + 2 files changed, 2 insertions(+) diff --git a/config/mcu_definitions/toolhead/BTT_SB2240_v1.0.cfg b/config/mcu_definitions/toolhead/BTT_SB2240_v1.0.cfg index bf639162f..107e75173 100644 --- a/config/mcu_definitions/toolhead/BTT_SB2240_v1.0.cfg +++ b/config/mcu_definitions/toolhead/BTT_SB2240_v1.0.cfg @@ -1,6 +1,7 @@ [board_pins toolhead_manufacturer] mcu: toolhead aliases: + MCU_MOTORDRIVE_STEP=PD0 , MCU_MOTORDRIVE_DIR=PD1 , MCU_MOTORDRIVE_ENABLE=PD2 , MCU_MOTOR_SPI_NSS=PA15 , # CLK/MOSI/MISO are shared with SPI2 configuration MCU_STOP1=PB6 , MCU_STOP2=PB5 , MCU_STOP3=PB7 , diff --git a/user_templates/mcu_defaults/toolhead/BTT_SB2240_v1.0.cfg b/user_templates/mcu_defaults/toolhead/BTT_SB2240_v1.0.cfg index 99e17a0f8..5b3e71fd5 100644 --- a/user_templates/mcu_defaults/toolhead/BTT_SB2240_v1.0.cfg +++ b/user_templates/mcu_defaults/toolhead/BTT_SB2240_v1.0.cfg @@ -16,6 +16,7 @@ canbus_uuid: change-me-to-the-correct-canbus-id [board_pins sb2209_mcu] mcu: toolhead aliases: + E_STEP=MCU_MOTORDRIVE_STEP , E_DIR=MCU_MOTORDRIVE_DIR , E_ENABLE=MCU_MOTORDRIVE_ENABLE , # TMC2240 has no uart mode and since the SPI pins are shared with the SPI2, dedicated pin aliases are not allowed by klipper currently X_STOP=MCU_STOP1 , Y_STOP=MCU_STOP2 ,