🎨 TMC SPI Pins

Co-Authored-By: Martin Turski <turningtides@outlook.de>
This commit is contained in:
Scott Lahteine
2023-03-24 00:33:39 -05:00
parent 28666f2fb2
commit 769ad27645
76 changed files with 572 additions and 638 deletions

View File

@@ -3008,9 +3008,9 @@
* but you can override or define them here. * but you can override or define them here.
*/ */
//#define TMC_USE_SW_SPI //#define TMC_USE_SW_SPI
//#define TMC_SW_MOSI -1 //#define TMC_SPI_MOSI -1
//#define TMC_SW_MISO -1 //#define TMC_SPI_MISO -1
//#define TMC_SW_SCK -1 //#define TMC_SPI_SCK -1
// @section tmc/serial // @section tmc/serial

View File

@@ -64,7 +64,7 @@
* Usually the hardware SPI pins are only available to the LCD. This makes the DUE hard SPI used at the same time * Usually the hardware SPI pins are only available to the LCD. This makes the DUE hard SPI used at the same time
* as the TMC2130 soft SPI the most common setup. * as the TMC2130 soft SPI the most common setup.
*/ */
#define _IS_HW_SPI(P) (defined(TMC_SW_##P) && (TMC_SW_##P == SD_MOSI_PIN || TMC_SW_##P == SD_MISO_PIN || TMC_SW_##P == SD_SCK_PIN)) #define _IS_HW_SPI(P) (defined(TMC_SPI_##P) && (TMC_SPI_##P == SD_MOSI_PIN || TMC_SPI_##P == SD_MISO_PIN || TMC_SPI_##P == SD_SCK_PIN))
#if ENABLED(SDSUPPORT) && HAS_DRIVER(TMC2130) #if ENABLED(SDSUPPORT) && HAS_DRIVER(TMC2130)
#if ENABLED(TMC_USE_SW_SPI) #if ENABLED(TMC_USE_SW_SPI)

View File

@@ -95,7 +95,7 @@ static_assert(DISABLED(BAUD_RATE_GCODE), "BAUD_RATE_GCODE is not yet supported o
#if USING_HW_SERIAL0 #if USING_HW_SERIAL0
#define IS_TX0(P) (P == P0_02) #define IS_TX0(P) (P == P0_02)
#define IS_RX0(P) (P == P0_03) #define IS_RX0(P) (P == P0_03)
#if IS_TX0(TMC_SW_MISO) || IS_RX0(TMC_SW_MOSI) #if IS_TX0(TMC_SPI_MISO) || IS_RX0(TMC_SPI_MOSI)
#error "Serial port pins (0) conflict with Trinamic SPI pins!" #error "Serial port pins (0) conflict with Trinamic SPI pins!"
#elif HAS_PRUSA_MMU1 && (IS_TX0(E_MUX1_PIN) || IS_RX0(E_MUX0_PIN)) #elif HAS_PRUSA_MMU1 && (IS_TX0(E_MUX1_PIN) || IS_RX0(E_MUX0_PIN))
#error "Serial port pins (0) conflict with Multi-Material-Unit multiplexer pins!" #error "Serial port pins (0) conflict with Multi-Material-Unit multiplexer pins!"
@@ -111,7 +111,7 @@ static_assert(DISABLED(BAUD_RATE_GCODE), "BAUD_RATE_GCODE is not yet supported o
#define IS_RX1(P) (P == P0_16) #define IS_RX1(P) (P == P0_16)
#define _IS_TX1_1 IS_TX1 #define _IS_TX1_1 IS_TX1
#define _IS_RX1_1 IS_RX1 #define _IS_RX1_1 IS_RX1
#if IS_TX1(TMC_SW_SCK) #if IS_TX1(TMC_SPI_SCK)
#error "Serial port pins (1) conflict with other pins!" #error "Serial port pins (1) conflict with other pins!"
#elif HAS_ROTARY_ENCODER #elif HAS_ROTARY_ENCODER
#if IS_TX1(BTN_EN2) || IS_RX1(BTN_EN1) #if IS_TX1(BTN_EN2) || IS_RX1(BTN_EN1)

View File

@@ -2212,6 +2212,14 @@
#undef TMC_UART_IS #undef TMC_UART_IS
#undef ANY_SERIAL_IS #undef ANY_SERIAL_IS
#if defined(__AVR_ARCH__) && defined(TMC_SPI_MISO) && defined(TMC_SPI_MOSI) && defined(TMC_SPI_SCK)
// Check that the pins are the solitary supported SPI hardware pins of the (AVR) platform.
// Otherwise we are forced to enable software SPI.
#if TMC_SPI_MISO != MISO || TMC_SPI_MOSI != MOSI || TMC_SPI_SCK != SCK
#define TMC_USE_SW_SPI
#endif
#endif
// Clean up unused ESP_WIFI pins // Clean up unused ESP_WIFI pins
#ifdef ESP_WIFI_MODULE_COM #ifdef ESP_WIFI_MODULE_COM
#if !SERIAL_IN_USE(ESP_WIFI_MODULE_COM) #if !SERIAL_IN_USE(ESP_WIFI_MODULE_COM)

View File

@@ -658,6 +658,8 @@
#error "EXTRA_LIN_ADVANCE_K is now ADVANCE_K_EXTRA." #error "EXTRA_LIN_ADVANCE_K is now ADVANCE_K_EXTRA."
#elif defined(POLAR_SEGMENTS_PER_SECOND) || defined(DELTA_SEGMENTS_PER_SECOND) || defined(SCARA_SEGMENTS_PER_SECOND) || defined(TPARA_SEGMENTS_PER_SECOND) #elif defined(POLAR_SEGMENTS_PER_SECOND) || defined(DELTA_SEGMENTS_PER_SECOND) || defined(SCARA_SEGMENTS_PER_SECOND) || defined(TPARA_SEGMENTS_PER_SECOND)
#error "(POLAR|DELTA|SCARA|TPARA)_SEGMENTS_PER_SECOND is now DEFAULT_SEGMENTS_PER_SECOND." #error "(POLAR|DELTA|SCARA|TPARA)_SEGMENTS_PER_SECOND is now DEFAULT_SEGMENTS_PER_SECOND."
#elif defined(TMC_SW_MOSI) || defined(TMC_SW_MISO) || defined(TMC_SW_SCK)
#error "TMC_SW_(MOSI|MISO|SCK) is now TMC_SPI_(MOSI|MISO|SCK)."
#elif ANY(DGUS_LCD_UI_ORIGIN, DGUS_LCD_UI_FYSETC, DGUS_LCD_UI_HIPRECY, DGUS_LCD_UI_MKS, DGUS_LCD_UI_RELOADED) && !defined(DGUS_LCD_UI) #elif ANY(DGUS_LCD_UI_ORIGIN, DGUS_LCD_UI_FYSETC, DGUS_LCD_UI_HIPRECY, DGUS_LCD_UI_MKS, DGUS_LCD_UI_RELOADED) && !defined(DGUS_LCD_UI)
#error "DGUS_LCD_UI_[TYPE] is now set using DGUS_LCD_UI TYPE." #error "DGUS_LCD_UI_[TYPE] is now set using DGUS_LCD_UI TYPE."
#elif defined(DELTA_PRINTABLE_RADIUS) #elif defined(DELTA_PRINTABLE_RADIUS)

View File

@@ -46,7 +46,7 @@ enum StealthIndex : uint8_t {
// AI = Axis Enum Index // AI = Axis Enum Index
// SWHW = SW/SH UART selection // SWHW = SW/SH UART selection
#if ENABLED(TMC_USE_SW_SPI) #if ENABLED(TMC_USE_SW_SPI)
#define __TMC_SPI_DEFINE(IC, ST, L, AI) TMCMarlin<IC##Stepper, L, AI> stepper##ST(ST##_CS_PIN, float(ST##_RSENSE), TMC_SW_MOSI, TMC_SW_MISO, TMC_SW_SCK, ST##_CHAIN_POS) #define __TMC_SPI_DEFINE(IC, ST, L, AI) TMCMarlin<IC##Stepper, L, AI> stepper##ST(ST##_CS_PIN, float(ST##_RSENSE), TMC_SPI_MOSI, TMC_SPI_MISO, TMC_SPI_SCK, ST##_CHAIN_POS)
#else #else
#define __TMC_SPI_DEFINE(IC, ST, L, AI) TMCMarlin<IC##Stepper, L, AI> stepper##ST(ST##_CS_PIN, float(ST##_RSENSE), ST##_CHAIN_POS) #define __TMC_SPI_DEFINE(IC, ST, L, AI) TMCMarlin<IC##Stepper, L, AI> stepper##ST(ST##_CS_PIN, float(ST##_RSENSE), ST##_CHAIN_POS)
#endif #endif

View File

@@ -247,18 +247,16 @@
#endif #endif
/** /**
* Default pins for TMC software SPI * Default pins for TMC SPI
*/ */
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI 66
#define TMC_SW_MOSI 66
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO 44 #define TMC_SPI_MISO 44
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK 64
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK 64
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART

View File

@@ -77,18 +77,16 @@
#endif #endif
// //
// Software SPI pins for TMC2130 stepper drivers // Default pins for TMC software SPI
// //
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI P0_18 // ETH
#define TMC_SW_MOSI P0_18 // ETH
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO P0_17 // ETH #define TMC_SPI_MISO P0_17 // ETH
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK P0_15 // ETH
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK P0_15 // ETH
#endif #endif
// //

View File

@@ -56,7 +56,6 @@
#define E0_DIR_PIN P2_13 #define E0_DIR_PIN P2_13
#define E0_ENABLE_PIN P2_12 #define E0_ENABLE_PIN P2_12
/** ------ ------ /** ------ ------
* 1.30 | 1 2 | 2.11 0.17 | 1 2 | 0.15 * 1.30 | 1 2 | 2.11 0.17 | 1 2 | 0.15
* 0.18 | 3 4 | 0.16 3.26 | 3 4 | 1.23 * 0.18 | 3 4 | 0.16 3.26 | 3 4 | 1.23
@@ -165,12 +164,12 @@
// When using any TMC SPI-based drivers, software SPI is used // When using any TMC SPI-based drivers, software SPI is used
// because pins may be shared with the display or SD card. // because pins may be shared with the display or SD card.
#define TMC_USE_SW_SPI #define TMC_USE_SW_SPI
#define TMC_SW_MOSI EXP2_06_PIN #define TMC_SPI_MOSI EXP2_06_PIN
#define TMC_SW_MISO EXP2_01_PIN #define TMC_SPI_MISO EXP2_01_PIN
// To minimize pin usage use the same clock pin as the display/SD card reader. (May generate LCD noise.) // To minimize pin usage use the same clock pin as the display/SD card reader. (May generate LCD noise.)
#define TMC_SW_SCK EXP2_02_PIN #define TMC_SPI_SCK EXP2_02_PIN
// If pin 2_06 is unused, it can be used for the clock to avoid the LCD noise. // If pin 2_06 is unused, it can be used for the clock to avoid the LCD noise.
//#define TMC_SW_SCK P2_06 //#define TMC_SPI_SCK P2_06
#if ENABLED(SOFTWARE_DRIVER_ENABLE) #if ENABLED(SOFTWARE_DRIVER_ENABLE)

View File

@@ -137,18 +137,16 @@
#endif #endif
// //
// Software SPI pins for TMC2130 stepper drivers // Default pins for TMC software SPI
// //
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI P4_28
#define TMC_SW_MOSI P4_28
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO P0_05 #define TMC_SPI_MISO P0_05
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK P0_04
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK P0_04
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART

View File

@@ -194,18 +194,16 @@
#define TEMP_BED_PIN P0_25_A2 // A2 (T2) - (69) - TEMP_BED_PIN #define TEMP_BED_PIN P0_25_A2 // A2 (T2) - (69) - TEMP_BED_PIN
// //
// Software SPI pins for TMC2130 stepper drivers // Default pins for TMC software SPI
// //
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI P1_17
#define TMC_SW_MOSI P1_17
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO P0_05 #define TMC_SPI_MISO P0_05
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK P0_04
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK P0_04
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART

View File

@@ -300,16 +300,14 @@
// Hardware SPI is on EXP2. See if you can make it work: // Hardware SPI is on EXP2. See if you can make it work:
// https://github.com/makerbase-mks/MKS-SBASE/issues/25 // https://github.com/makerbase-mks/MKS-SBASE/issues/25
#define TMC_USE_SW_SPI #define TMC_USE_SW_SPI
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI P0_03 // AUX1
#define TMC_SW_MOSI P0_03 // AUX1
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO P0_02 // AUX1 #define TMC_SPI_MISO P0_02 // AUX1
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK P0_26 // TH4
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK P0_26 // TH4
#endif #endif
#endif #endif

View File

@@ -132,18 +132,16 @@
#endif #endif
// //
// Software SPI pins for TMC2130 stepper drivers // Default pins for TMC software SPI
// //
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI P4_28
#define TMC_SW_MOSI P4_28
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO P0_05 #define TMC_SPI_MISO P0_05
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK P0_04
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK P0_04
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART

View File

@@ -97,18 +97,16 @@
#endif #endif
// //
// Software SPI pins for TMC2130 stepper drivers // Default pins for TMC software SPI
// //
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI P1_00 // ETH
#define TMC_SW_MOSI P1_00 // ETH
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO P1_08 // ETH #define TMC_SPI_MISO P1_08 // ETH
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK P1_09 // ETH
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK P1_09 // ETH
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART
@@ -119,7 +117,6 @@
* If undefined software serial is used according to the pins below * If undefined software serial is used according to the pins below
*/ */
// P2_08 E1-Step // P2_08 E1-Step
// P2_13 E1-Dir // P2_13 E1-Dir

View File

@@ -70,16 +70,14 @@
// //
// Default pins for TMC software SPI // Default pins for TMC software SPI
// //
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI P1_16 // Ethernet Expansion - Pin 5
#define TMC_SW_MOSI P1_16 // Ethernet Expansion - Pin 5
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO P1_17 // Ethernet Expansion - Pin 6 #define TMC_SPI_MISO P1_17 // Ethernet Expansion - Pin 6
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK P1_08 // Ethernet Expansion - Pin 7
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK P1_08 // Ethernet Expansion - Pin 7
#endif #endif
// //

View File

@@ -87,16 +87,14 @@
// //
// Default pins for TMC software SPI // Default pins for TMC software SPI
// //
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI P1_16 // Ethernet Expansion - Pin 5
#define TMC_SW_MOSI P1_16 // Ethernet Expansion - Pin 5
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO P1_17 // Ethernet Expansion - Pin 6 #define TMC_SPI_MISO P1_17 // Ethernet Expansion - Pin 6
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK P1_08 // Ethernet Expansion - Pin 7
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK P1_08 // Ethernet Expansion - Pin 7
#endif #endif
// //

View File

@@ -92,18 +92,16 @@
#endif #endif
// //
// Software SPI pins for TMC2130 stepper drivers // Default pins for TMC software SPI
// //
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI P0_20
#define TMC_SW_MOSI P0_20
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO P0_19 #define TMC_SPI_MISO P0_19
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK P0_21
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK P0_21
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART

View File

@@ -146,18 +146,16 @@
#endif #endif
// //
// Software SPI pins for TMC2130 stepper drivers // Default pins for TMC software SPI
// //
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI P1_16
#define TMC_SW_MOSI P1_16
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO P0_05 #define TMC_SPI_MISO P0_05
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK P0_04
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK P0_04
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART

View File

@@ -530,7 +530,7 @@
#elif MB(MKS_ROBIN_E3D) #elif MB(MKS_ROBIN_E3D)
#include "stm32f1/pins_MKS_ROBIN_E3D.h" // STM32F1 env:mks_robin_e3 #include "stm32f1/pins_MKS_ROBIN_E3D.h" // STM32F1 env:mks_robin_e3
#elif MB(MKS_ROBIN_E3D_V1_1) #elif MB(MKS_ROBIN_E3D_V1_1)
#include "stm32f1/pins_MKS_ROBIN_E3D_V1_1.h" // STM32F1 env:mks_robin_e3 #include "stm32f1/pins_MKS_ROBIN_E3D_V1_1.h" // STM32F1 env:mks_robin_e3 env:mks_robin_e3_maple
#elif MB(MKS_ROBIN_E3P) #elif MB(MKS_ROBIN_E3P)
#include "stm32f1/pins_MKS_ROBIN_E3P.h" // STM32F1 env:mks_robin_e3p env:mks_robin_e3p_maple #include "stm32f1/pins_MKS_ROBIN_E3P.h" // STM32F1 env:mks_robin_e3p env:mks_robin_e3p_maple
#elif MB(BTT_EBB42_V1_1) #elif MB(BTT_EBB42_V1_1)

View File

@@ -489,18 +489,27 @@
REPORT_NAME_DIGITAL(__LINE__, EXP3_10_PIN) REPORT_NAME_DIGITAL(__LINE__, EXP3_10_PIN)
#endif #endif
#if _EXISTS(TMC_SW_MISO) #if _EXISTS(TMC_SPI_MISO)
REPORT_NAME_DIGITAL(__LINE__, TMC_SW_MISO) REPORT_NAME_DIGITAL(__LINE__, TMC_SPI_MISO)
#endif #endif
#if _EXISTS(TMC_SW_MOSI) #if _EXISTS(TMC_SPI_MOSI)
REPORT_NAME_DIGITAL(__LINE__, TMC_SW_MOSI) REPORT_NAME_DIGITAL(__LINE__, TMC_SPI_MOSI)
#endif #endif
#if _EXISTS(TMC_SW_SCK) #if _EXISTS(TMC_SPI_SCK)
REPORT_NAME_DIGITAL(__LINE__, TMC_SW_SCK) REPORT_NAME_DIGITAL(__LINE__, TMC_SPI_SCK)
#endif #endif
#if _EXISTS(TFTGLCD_CS) #if _EXISTS(TFTGLCD_CS)
REPORT_NAME_DIGITAL(__LINE__, TFTGLCD_CS) REPORT_NAME_DIGITAL(__LINE__, TFTGLCD_CS)
#endif #endif
#if _EXISTS(TFTGLCD_SCK)
REPORT_NAME_DIGITAL(__LINE__, TFTGLCD_SCK)
#endif
#if _EXISTS(TFTGLCD_MISO)
REPORT_NAME_DIGITAL(__LINE__, TFTGLCD_MISO)
#endif
#if _EXISTS(TFTGLCD_MOSI)
REPORT_NAME_DIGITAL(__LINE__, TFTGLCD_MOSI)
#endif
// //
// E Multiplexing // E Multiplexing

View File

@@ -319,16 +319,14 @@
// //
// TMC software SPI // TMC software SPI
// //
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI 66
#define TMC_SW_MOSI 66
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO 44 #define TMC_SPI_MISO 44
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK 64
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK 64
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART

View File

@@ -218,16 +218,14 @@
// //
// TMC software SPI // TMC software SPI
// //
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI 51
#define TMC_SW_MOSI 51
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO 50 #define TMC_SPI_MISO 50
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK 53
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK 53
#endif #endif
// //

View File

@@ -150,16 +150,14 @@
// //
// Default pins for TMC software SPI // Default pins for TMC software SPI
// //
//#if ENABLED(TMC_USE_SW_SPI) //#ifndef TMC_SPI_MOSI
// #ifndef TMC_SW_MOSI // #define TMC_SPI_MOSI 66
// #define TMC_SW_MOSI 66
//#endif //#endif
// #ifndef TMC_SW_MISO //#ifndef TMC_SPI_MISO
// #define TMC_SW_MISO 44 // #define TMC_SPI_MISO 44
// #endif
// #ifndef TMC_SW_SCK
// #define TMC_SW_SCK 64
//#endif //#endif
//#ifndef TMC_SPI_SCK
// #define TMC_SPI_SCK 64
//#endif //#endif
// //

View File

@@ -182,16 +182,14 @@
// //
// TMC software SPI // TMC software SPI
// //
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI 66
#define TMC_SW_MOSI 66
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO 44 #define TMC_SPI_MISO 44
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK 64
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK 64
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART

View File

@@ -145,19 +145,17 @@
#endif #endif
// //
// Software SPI pins for TMC2130 stepper drivers. // SPI pins for TMC2130 stepper drivers.
// Required for the Archim2 board. // Required for the Archim2 board.
// //
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI 28 // PD3
#define TMC_SW_MOSI 28 // PD3
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO 26 // PD1 #define TMC_SPI_MISO 26 // PD1
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK 27 // PD2
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK 27 // PD2
#endif #endif
// //

View File

@@ -284,7 +284,6 @@
//#define DOGLCD_SCK 23 //#define DOGLCD_SCK 23
//#define DOGLCD_A0 LCD_PINS_DC //#define DOGLCD_A0 LCD_PINS_DC
#else #else
// Definitions for any standard Display // Definitions for any standard Display
#define LCD_PINS_RS EXP1_04_PIN #define LCD_PINS_RS EXP1_04_PIN

View File

@@ -164,18 +164,16 @@
#endif #endif
// //
// TMC software SPI // TMC SPI
// //
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI 58 // Mega/Due:66 - AGCM4:58
#define TMC_SW_MOSI 58 // Mega/Due:66 - AGCM4:58
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO 44 #define TMC_SPI_MISO 44
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK 56 // Mega/Due:64 - AGCM4:56
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK 56 // Mega/Due:64 - AGCM4:56
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART

View File

@@ -94,18 +94,16 @@
#endif #endif
// //
// Software SPI pins for TMC2130 stepper drivers // SPI pins for TMC2130 stepper drivers
// //
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI PB5
#define TMC_SW_MOSI PB5
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO PB4 #define TMC_SPI_MISO PB4
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK PB3
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK PB3
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART

View File

@@ -68,16 +68,15 @@
#define E0_DIR_PIN PB0 #define E0_DIR_PIN PB0
#define E0_ENABLE_PIN PC4 #define E0_ENABLE_PIN PC4
#if ENABLED(TMC_USE_SW_SPI) // Shared with EXP2 // Shared with EXP2
#ifndef TMC_SW_SCK #ifndef TMC_SPI_SCK
#define TMC_SW_SCK PB3 #define TMC_SPI_SCK PB3
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO PB4 #define TMC_SPI_MISO PB4
#endif
#ifndef TMC_SW_MOSI
#define TMC_SW_MOSI PB5
#endif #endif
#ifndef TMC_SPI_MOSI
#define TMC_SPI_MOSI PB5
#endif #endif
#if HAS_TMC_UART // Shared with EXP1 #if HAS_TMC_UART // Shared with EXP1

View File

@@ -83,16 +83,14 @@
#define E0_CS_PIN PC2 #define E0_CS_PIN PC2
#endif #endif
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI EXP2_06_PIN
#define TMC_SW_MOSI EXP2_06_PIN
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO EXP2_01_PIN #define TMC_SPI_MISO EXP2_01_PIN
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK EXP2_02_PIN
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK EXP2_02_PIN
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART

View File

@@ -50,18 +50,16 @@
#endif #endif
// //
// Software SPI pins for TMC2130 stepper drivers // SPI pins for TMC2130 stepper drivers
// //
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI PB15
#define TMC_SW_MOSI PB15
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO PB14 #define TMC_SPI_MISO PB14
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK PB13
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK PB13
#endif #endif
#include "pins_MKS_ROBIN_E3_common.h" #include "pins_MKS_ROBIN_E3_common.h"

View File

@@ -50,18 +50,17 @@
#endif #endif
// //
// Software SPI pins for TMC2130 stepper drivers // SPI pins for TMC2130 stepper drivers
// Software and hardware actually, they are connected to SPI2 bus.
// //
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI PB15
#define TMC_SW_MOSI PB15
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO PB14 #define TMC_SPI_MISO PB14
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK PB13
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK PB13
#endif #endif
#include "pins_MKS_ROBIN_E3_V1_1_common.h" // ... MKS_ROBIN_E3_common #include "pins_MKS_ROBIN_E3_V1_1_common.h" // ... MKS_ROBIN_E3_common

View File

@@ -112,18 +112,16 @@
#endif #endif
// //
// Software SPI pins for TMC2130 stepper drivers // SPI pins for TMC2130 stepper drivers
// //
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI PD14
#define TMC_SW_MOSI PD14
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO PD1 #define TMC_SPI_MISO PD1
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK PD0
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK PD0
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART

View File

@@ -122,18 +122,16 @@
#endif #endif
// //
// Software SPI pins for TMC2130 stepper drivers // SPI pins for TMC2130 stepper drivers
// //
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI PD14
#define TMC_SW_MOSI PD14
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO PD1 #define TMC_SPI_MISO PD1
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK PD0
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK PD0
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART

View File

@@ -105,18 +105,16 @@
#define E2_CS_PIN PG9 #define E2_CS_PIN PG9
#endif #endif
// //
// Software SPI pins for TMC2130 stepper drivers // SPI pins for TMC2130 stepper drivers
// //
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI PB15
#define TMC_SW_MOSI PB15
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO PB14 #define TMC_SPI_MISO PB14
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK PB13
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK PB13
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART

View File

@@ -88,18 +88,16 @@
#define E0_DIR_PIN PB14 #define E0_DIR_PIN PB14
// //
// Software SPI pins for TMC2130 stepper drivers // SPI pins for TMC2130 stepper drivers
// //
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI PB5
#define TMC_SW_MOSI PB5
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO PB4 #define TMC_SPI_MISO PB4
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK PB3
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK PB3
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART

View File

@@ -108,18 +108,16 @@
#endif #endif
// //
// Software SPI pins for TMC2130 stepper drivers // SPI pins for TMC2130 stepper drivers
// //
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI PB15
#define TMC_SW_MOSI PB15
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO PB14 #define TMC_SPI_MISO PB14
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK PB13
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK PB13
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART

View File

@@ -202,18 +202,16 @@
#endif #endif
// //
// Software SPI pins for TMC2130 stepper drivers // SPI pins for TMC2130 stepper drivers
// //
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI PG15
#define TMC_SW_MOSI PG15
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO PB6 #define TMC_SPI_MISO PB6
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK PB3
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK PB3
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART

View File

@@ -260,18 +260,16 @@
#endif #endif
// //
// Software SPI pins for TMC2130 stepper drivers // SPI pins for TMC2130 stepper drivers
// //
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI PA7
#define TMC_SW_MOSI PA7
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO PA6 #define TMC_SPI_MISO PA6
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK PA5
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK PA5
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART

View File

@@ -172,18 +172,16 @@
#endif #endif
// //
// Software SPI pins for TMC2130 stepper drivers // SPI pins for TMC2130 stepper drivers
// //
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI PC12
#define TMC_SW_MOSI PC12
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO PC11 #define TMC_SPI_MISO PC11
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK PC10
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK PC10
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART

View File

@@ -272,18 +272,16 @@
#endif // SPINDLE_FEATURE || LASER_FEATURE #endif // SPINDLE_FEATURE || LASER_FEATURE
// //
// Software SPI pins for TMC2130 stepper drivers // SPI pins for TMC2130 stepper drivers
// //
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI PE14
#define TMC_SW_MOSI PE14
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO PA14 #define TMC_SPI_MISO PA14
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK PE15
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK PE15
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART

View File

@@ -235,18 +235,16 @@
#endif #endif
// //
// Trinamic Software SPI // Trinamic SPI
// //
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK EXP2_02_PIN
#define TMC_SW_SCK EXP2_02_PIN
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO EXP2_01_PIN #define TMC_SPI_MISO EXP2_01_PIN
#endif
#ifndef TMC_SW_MOSI
#define TMC_SW_MOSI EXP2_06_PIN
#endif #endif
#ifndef TMC_SPI_MOSI
#define TMC_SPI_MOSI EXP2_06_PIN
#endif #endif
// //

View File

@@ -53,19 +53,17 @@
#endif #endif
// //
// Software SPI pins for TMC2130 stepper drivers // SPI pins for TMC2130 stepper drivers
// //
#define TMC_USE_SW_SPI #define TMC_USE_SW_SPI
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI PE14
#define TMC_SW_MOSI PE14
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO PE13 #define TMC_SPI_MISO PE13
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK PE12
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK PE12
#endif #endif
#include "pins_FYSETC_S6.h" #include "pins_FYSETC_S6.h"

View File

@@ -101,19 +101,17 @@
#endif #endif
// //
// Software SPI pins for TMC2130 stepper drivers // SPI pins for TMC2130 stepper drivers
// //
#define TMC_USE_SW_SPI #define TMC_USE_SW_SPI
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI PE14
#define TMC_SW_MOSI PE14
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO PE13 #define TMC_SPI_MISO PE13
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK PE12
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK PE12
#endif #endif
#if HOTENDS > 3 || E_STEPPERS > 3 #if HOTENDS > 3 || E_STEPPERS > 3

View File

@@ -126,22 +126,23 @@
#endif #endif
// //
// Software SPI pins for TMC2130 stepper drivers // Default pins for TMC software SPI
// This board only supports SW SPI for stepper drivers // This board only supports SW SPI for stepper drivers
// //
#if HAS_TMC_SPI #if HAS_TMC_SPI
#define TMC_USE_SW_SPI #define TMC_USE_SW_SPI
#endif #endif
#if ENABLED(TMC_USE_SW_SPI) #if !defined(TMC_SPI_MOSI) || TMC_SPI_MOSI == -1
#if !defined(TMC_SW_MOSI) || TMC_SW_MOSI == -1 #undef TMC_SPI_MOSI
#define TMC_SW_MOSI PE14 #define TMC_SPI_MOSI PE14
#endif #endif
#if !defined(TMC_SW_MISO) || TMC_SW_MISO == -1 #if !defined(TMC_SPI_MISO) || TMC_SPI_MISO == -1
#define TMC_SW_MISO PE13 #undef TMC_SPI_MISO
#endif #define TMC_SPI_MISO PE13
#if !defined(TMC_SW_SCK) || TMC_SW_SCK == -1
#define TMC_SW_SCK PE12
#endif #endif
#if !defined(TMC_SPI_SCK) || TMC_SPI_SCK == -1
#undef TMC_SPI_SCK
#define TMC_SPI_SCK PE12
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART

View File

@@ -51,22 +51,23 @@
#endif #endif
// //
// Software SPI pins for TMC2130 stepper drivers // SPI pins for TMC2130 stepper drivers
// This board only supports SW SPI for stepper drivers // This board only supports SW SPI for stepper drivers
// //
#if HAS_TMC_SPI #if HAS_TMC_SPI
#define TMC_USE_SW_SPI #define TMC_USE_SW_SPI
#endif #endif
#if ENABLED(TMC_USE_SW_SPI) #if !defined(TMC_SPI_MOSI) || TMC_SPI_MOSI == -1
#if !defined(TMC_SW_MOSI) || TMC_SW_MOSI == -1 #undef TMC_SPI_MOSI
#define TMC_SW_MOSI PD14 #define TMC_SPI_MOSI PD14
#endif #endif
#if !defined(TMC_SW_MISO) || TMC_SW_MISO == -1 #if !defined(TMC_SPI_MISO) || TMC_SPI_MISO == -1
#define TMC_SW_MISO PD1 #undef TMC_SPI_MISO
#endif #define TMC_SPI_MISO PD1
#if !defined(TMC_SW_SCK) || TMC_SW_SCK == -1
#define TMC_SW_SCK PD0
#endif #endif
#if !defined(TMC_SPI_SCK) || TMC_SPI_SCK == -1
#undef TMC_SPI_SCK
#define TMC_SPI_SCK PD0
#endif #endif
#include "pins_MKS_ROBIN_NANO_V3_common.h" #include "pins_MKS_ROBIN_NANO_V3_common.h"

View File

@@ -113,18 +113,16 @@
#endif #endif
// //
// Software SPI pins for TMC2130 stepper drivers // SPI pins for TMC2130 stepper drivers
// //
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI PD14
#define TMC_SW_MOSI PD14
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO PD1 #define TMC_SPI_MISO PD1
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK PD0
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK PD0
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART

View File

@@ -191,14 +191,14 @@
#define FAN2_PIN PA0 // Fan2 #define FAN2_PIN PA0 // Fan2
// //
// Software SPI pins for TMC2130 stepper drivers // Default pins for TMC software SPI
// This board doesn't support hardware SPI there // This board only supports SW SPI for stepper drivers
// //
#if HAS_TMC_SPI #if HAS_TMC_SPI
#define TMC_USE_SW_SPI #define TMC_USE_SW_SPI
#define TMC_SW_MOSI PE14 #define TMC_SPI_MOSI PE14
#define TMC_SW_MISO PE13 #define TMC_SPI_MISO PE13
#define TMC_SW_SCK PE12 #define TMC_SPI_SCK PE12
#endif #endif
// //

View File

@@ -171,9 +171,9 @@
#define MOSI_PIN PB5 #define MOSI_PIN PB5
#define SCK_PIN PB3 #define SCK_PIN PB3
#define TMC_SW_MISO MISO_PIN #define TMC_SPI_MISO MISO_PIN
#define TMC_SW_MOSI MOSI_PIN #define TMC_SPI_MOSI MOSI_PIN
#define TMC_SW_SCK SCK_PIN #define TMC_SPI_SCK SCK_PIN
// //
// I2C // I2C

View File

@@ -168,9 +168,9 @@
#define MOSI_PIN PB5 #define MOSI_PIN PB5
#define SCK_PIN PB3 #define SCK_PIN PB3
#define TMC_SW_MISO MISO_PIN #define TMC_SPI_MISO MISO_PIN
#define TMC_SW_MOSI MOSI_PIN #define TMC_SPI_MOSI MOSI_PIN
#define TMC_SW_SCK SCK_PIN #define TMC_SPI_SCK SCK_PIN
// //
// I2C // I2C

View File

@@ -91,16 +91,14 @@
#define E2_ENABLE_PIN PD0 #define E2_ENABLE_PIN PD0
#define E2_CS_PIN PD1 #define E2_CS_PIN PD1
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI PA7
#define TMC_SW_MOSI PA7
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO PA6 #define TMC_SPI_MISO PA6
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK PA5
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK PA5
#endif #endif
// //

View File

@@ -143,18 +143,16 @@
#endif #endif
// //
// Software SPI pins for TMC2130 stepper drivers // Default pins for TMC software SPI
// //
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI PC12 // Shared with SPI header, Pin 5 (SPI3)
#define TMC_SW_MOSI PC12 // Shared with SPI header, Pin 5 (SPI3)
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO PC11 // Shared with SPI header, Pin 6 (SPI3) #define TMC_SPI_MISO PC11 // Shared with SPI header, Pin 6 (SPI3)
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK PC10 // Shared with SPI header, Pin 4 (SPI3)
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK PC10 // Shared with SPI header, Pin 4 (SPI3)
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART

View File

@@ -112,18 +112,16 @@
#endif #endif
// //
// Software SPI pins for TMC2130 stepper drivers // Default pins for TMC software SPI
// //
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI PB15
#define TMC_SW_MOSI PB15
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO PB14 #define TMC_SPI_MISO PB14
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK PB13
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK PB13
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART

View File

@@ -129,18 +129,16 @@
#endif #endif
// //
// Software SPI pins for TMC2130 stepper drivers // Default pins for TMC software SPI
// //
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI PB15 // Shared with SPI header, Pin 5 (SPI2)
#define TMC_SW_MOSI PB15 // Shared with SPI header, Pin 5 (SPI2)
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO PB14 // Shared with SPI header, Pin 6 (SPI2) #define TMC_SPI_MISO PB14 // Shared with SPI header, Pin 6 (SPI2)
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK PB13 // Shared with SPI header, Pin 4 (SPI2)
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK PB13 // Shared with SPI header, Pin 4 (SPI2)
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART

View File

@@ -179,18 +179,16 @@
#endif #endif
// //
// Software SPI pins for TMC2130 stepper drivers // Default pins for TMC software SPI
// //
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI PA7
#define TMC_SW_MOSI PA7
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO PA6 #define TMC_SPI_MISO PA6
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK PA5
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK PA5
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART

View File

@@ -273,18 +273,16 @@
#endif #endif
// //
// Software SPI pins for TMC2130 stepper drivers // Default pins for TMC software SPI
// //
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI PE14
#define TMC_SW_MOSI PE14
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO PE13 #define TMC_SPI_MISO PE13
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK PE12
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK PE12
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART

View File

@@ -91,18 +91,16 @@
#define E1_CS_PIN PC8 #define E1_CS_PIN PC8
// //
// Software SPI pins for TMC2130 stepper drivers // SPI pins for TMC2130 stepper drivers
// //
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI PC6
#define TMC_SW_MOSI PC6
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO PG3 #define TMC_SPI_MISO PG3
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK PC7
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK PC7
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART

View File

@@ -260,18 +260,16 @@
#endif // SPINDLE_FEATURE || LASER_FEATURE #endif // SPINDLE_FEATURE || LASER_FEATURE
// //
// Software SPI pins for TMC2130 stepper drivers // SPI pins for TMC2130 stepper drivers
// //
#if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI PE13
#define TMC_SW_MOSI PE13
#endif #endif
#ifndef TMC_SW_MISO #ifndef TMC_SPI_MISO
#define TMC_SW_MISO PE15 #define TMC_SPI_MISO PE15
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK PE14
#endif #endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK PE14
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART