From 843f79589cd3f305998f217af55914e9cacb11f6 Mon Sep 17 00:00:00 2001 From: Keith Bennett <13375512+thisiskeithb@users.noreply.github.com> Date: Tue, 27 May 2025 10:58:49 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Update=20BTT002=20SPI=20driver?= =?UTF-8?q?=20conditionals=20(#27887)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Counterpart to #27886 --- .../src/pins/stm32f4/pins_BTT_BTT002_V1_0.h | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/Marlin/src/pins/stm32f4/pins_BTT_BTT002_V1_0.h b/Marlin/src/pins/stm32f4/pins_BTT_BTT002_V1_0.h index bcbdaedcf2..0e059106b8 100644 --- a/Marlin/src/pins/stm32f4/pins_BTT_BTT002_V1_0.h +++ b/Marlin/src/pins/stm32f4/pins_BTT_BTT002_V1_0.h @@ -108,16 +108,19 @@ #endif // -// SPI pins for TMC2130 stepper drivers +// SPI pins for TMC2130, TMC2160, TMC2240, TMC2660, TMC5130, or TMC5160 stepper drivers // -#ifndef TMC_SPI_MOSI - #define TMC_SPI_MOSI PB15 -#endif -#ifndef TMC_SPI_MISO - #define TMC_SPI_MISO PB14 -#endif -#ifndef TMC_SPI_SCK - #define TMC_SPI_SCK PB13 +#if HAS_TMC_SPI + #define TMC_USE_SW_SPI + #ifndef TMC_SPI_MOSI + #define TMC_SPI_MOSI PB15 + #endif + #ifndef TMC_SPI_MISO + #define TMC_SPI_MISO PB14 + #endif + #ifndef TMC_SPI_SCK + #define TMC_SPI_SCK PB13 + #endif #endif #if HAS_TMC_UART