🎨 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

@@ -2979,28 +2979,28 @@
* Override default SPI pins for TMC2130, TMC2160, TMC2660, TMC5130 and TMC5160 drivers here. * Override default SPI pins for TMC2130, TMC2160, TMC2660, TMC5130 and TMC5160 drivers here.
* The default pins can be found in your board's pins file. * The default pins can be found in your board's pins file.
*/ */
//#define X_CS_PIN -1 //#define X_CS_PIN -1
//#define Y_CS_PIN -1 //#define Y_CS_PIN -1
//#define Z_CS_PIN -1 //#define Z_CS_PIN -1
//#define X2_CS_PIN -1 //#define X2_CS_PIN -1
//#define Y2_CS_PIN -1 //#define Y2_CS_PIN -1
//#define Z2_CS_PIN -1 //#define Z2_CS_PIN -1
//#define Z3_CS_PIN -1 //#define Z3_CS_PIN -1
//#define Z4_CS_PIN -1 //#define Z4_CS_PIN -1
//#define I_CS_PIN -1 //#define I_CS_PIN -1
//#define J_CS_PIN -1 //#define J_CS_PIN -1
//#define K_CS_PIN -1 //#define K_CS_PIN -1
//#define U_CS_PIN -1 //#define U_CS_PIN -1
//#define V_CS_PIN -1 //#define V_CS_PIN -1
//#define W_CS_PIN -1 //#define W_CS_PIN -1
//#define E0_CS_PIN -1 //#define E0_CS_PIN -1
//#define E1_CS_PIN -1 //#define E1_CS_PIN -1
//#define E2_CS_PIN -1 //#define E2_CS_PIN -1
//#define E3_CS_PIN -1 //#define E3_CS_PIN -1
//#define E4_CS_PIN -1 //#define E4_CS_PIN -1
//#define E5_CS_PIN -1 //#define E5_CS_PIN -1
//#define E6_CS_PIN -1 //#define E6_CS_PIN -1
//#define E7_CS_PIN -1 //#define E7_CS_PIN -1
/** /**
* Software option for SPI driven drivers (TMC2130, TMC2160, TMC2660, TMC5130 and TMC5160). * Software option for SPI driven drivers (TMC2130, TMC2160, TMC2660, TMC5130 and TMC5160).
@@ -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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO 44
#define TMC_SW_MISO 44 #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK 64
#define TMC_SW_SCK 64
#endif
#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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO P0_17 // ETH
#define TMC_SW_MISO P0_17 // ETH #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK P0_15 // ETH
#define TMC_SW_SCK P0_15 // ETH
#endif
#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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO P0_05
#define TMC_SW_MISO P0_05 #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK P0_04
#define TMC_SW_SCK P0_04
#endif
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART
@@ -289,7 +287,7 @@
#define DOGLCD_A0 EXP1_06_PIN #define DOGLCD_A0 EXP1_06_PIN
#define DOGLCD_SCK EXP1_04_PIN #define DOGLCD_SCK EXP1_04_PIN
#define DOGLCD_MOSI EXP1_01_PIN #define DOGLCD_MOSI EXP1_01_PIN
#define LCD_BACKLIGHT_PIN -1 #define LCD_BACKLIGHT_PIN -1
#elif ENABLED(CR10_STOCKDISPLAY) #elif ENABLED(CR10_STOCKDISPLAY)

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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO P0_05
#define TMC_SW_MISO P0_05 #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK P0_04
#define TMC_SW_SCK P0_04
#endif
#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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO P0_02 // AUX1
#define TMC_SW_MISO P0_02 // AUX1 #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK P0_26 // TH4
#define TMC_SW_SCK P0_26 // TH4
#endif
#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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO P0_05
#define TMC_SW_MISO P0_05 #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK P0_04
#define TMC_SW_SCK P0_04
#endif
#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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO P1_08 // ETH
#define TMC_SW_MISO P1_08 // ETH #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK P1_09 // ETH
#define TMC_SW_SCK P1_09 // ETH
#endif
#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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO P1_17 // Ethernet Expansion - Pin 6
#define TMC_SW_MISO P1_17 // Ethernet Expansion - Pin 6 #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK P1_08 // Ethernet Expansion - Pin 7
#define TMC_SW_SCK P1_08 // Ethernet Expansion - Pin 7
#endif
#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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO P1_17 // Ethernet Expansion - Pin 6
#define TMC_SW_MISO P1_17 // Ethernet Expansion - Pin 6 #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK P1_08 // Ethernet Expansion - Pin 7
#define TMC_SW_SCK P1_08 // Ethernet Expansion - Pin 7
#endif
#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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO P0_19
#define TMC_SW_MISO P0_19 #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK P0_21
#define TMC_SW_SCK P0_21
#endif
#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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO P0_05
#define TMC_SW_MISO P0_05 #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK P0_04
#define TMC_SW_SCK P0_04
#endif
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART
@@ -342,7 +340,7 @@
#define TFT_CS_PIN EXP1_07_PIN #define TFT_CS_PIN EXP1_07_PIN
#define TFT_DC_PIN EXP1_08_PIN #define TFT_DC_PIN EXP1_08_PIN
#define TFT_A0_PIN TFT_DC_PIN #define TFT_A0_PIN TFT_DC_PIN
#define TFT_MISO_PIN EXP2_01_PIN #define TFT_MISO_PIN EXP2_01_PIN
#define TFT_BACKLIGHT_PIN EXP1_03_PIN #define TFT_BACKLIGHT_PIN EXP1_03_PIN
#define TFT_RESET_PIN EXP1_04_PIN #define TFT_RESET_PIN EXP1_04_PIN

View File

@@ -30,7 +30,7 @@
#define LCD_PINS_D4 21 #define LCD_PINS_D4 21
#define LCD_PINS_D7 6 #define LCD_PINS_D7 6
#define SPEAKER // The speaker can produce tones #define SPEAKER // The speaker can produce tones
#if IS_NEWPANEL #if IS_NEWPANEL
#define BTN_EN1 16 #define BTN_EN1 16

View File

@@ -32,7 +32,7 @@
#define LCD_PINS_D4 21 #define LCD_PINS_D4 21
#define LCD_PINS_D7 6 #define LCD_PINS_D7 6
#define SPEAKER // The speaker can produce tones #define SPEAKER // The speaker can produce tones
#if IS_NEWPANEL #if IS_NEWPANEL
#define BTN_EN1 16 #define BTN_EN1 16

View File

@@ -158,9 +158,9 @@
// Heaters / Fans (24V) // Heaters / Fans (24V)
// //
#define HEATER_0_PIN MOSFET_1_PIN // EX1 #define HEATER_0_PIN MOSFET_1_PIN // EX1
#define HEATER_1_PIN MOSFET_3_PIN // EX2 #define HEATER_1_PIN MOSFET_3_PIN // EX2
#define HEATER_BED_PIN MOSFET_5_PIN // HBP #define HEATER_BED_PIN MOSFET_5_PIN // HBP
// EX1 FAN (Automatic Fans are disabled by default in Configuration_adv.h - comment that out for auto fans) // EX1 FAN (Automatic Fans are disabled by default in Configuration_adv.h - comment that out for auto fans)
#ifndef E0_AUTO_FAN_PIN #ifndef E0_AUTO_FAN_PIN

View File

@@ -51,16 +51,16 @@
#define Y_STEP_PIN 3 #define Y_STEP_PIN 3
#define Y_DIR_PIN 6 #define Y_DIR_PIN 6
#define Y_ENABLE_PIN X_ENABLE_PIN #define Y_ENABLE_PIN X_ENABLE_PIN
#define Z_STEP_PIN 4 #define Z_STEP_PIN 4
#define Z_DIR_PIN 7 #define Z_DIR_PIN 7
#define Z_ENABLE_PIN X_ENABLE_PIN #define Z_ENABLE_PIN X_ENABLE_PIN
// Designated with letter "A" on BOARD // Designated with letter "A" on BOARD
#define E0_STEP_PIN 12 #define E0_STEP_PIN 12
#define E0_DIR_PIN 13 #define E0_DIR_PIN 13
#define E0_ENABLE_PIN X_ENABLE_PIN #define E0_ENABLE_PIN X_ENABLE_PIN
// //
// Temperature sensors - These could be any analog output not hidden by board // Temperature sensors - These could be any analog output not hidden by board

View File

@@ -73,7 +73,7 @@
#define TEMP_BED_PIN 6 #define TEMP_BED_PIN 6
#if HAS_WIRED_LCD #if HAS_WIRED_LCD
#if IS_U8GLIB_ST7920 // SPI GLCD 12864 ST7920 #if IS_U8GLIB_ST7920 // SPI GLCD 12864 ST7920
#define LCD_PINS_RS 30 #define LCD_PINS_RS 30
#define LCD_PINS_ENABLE 20 #define LCD_PINS_ENABLE 20
#define LCD_PINS_D4 25 #define LCD_PINS_D4 25

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

@@ -113,7 +113,7 @@
#define SPINDLE_LASER_PWM_PIN 46 // Hardware PWM #define SPINDLE_LASER_PWM_PIN 46 // Hardware PWM
#define SPINDLE_LASER_ENA_PIN 62 // Pullup! #define SPINDLE_LASER_ENA_PIN 62 // Pullup!
#define SPINDLE_DIR_PIN 48 #define SPINDLE_DIR_PIN 48
#elif !BOTH(HAS_WIRED_LCD, IS_NEWPANEL) // Use expansion header if no LCD in use #elif !BOTH(HAS_WIRED_LCD, IS_NEWPANEL) // Use expansion header if no LCD in use
#define SPINDLE_LASER_ENA_PIN 16 // Pullup or pulldown! #define SPINDLE_LASER_ENA_PIN 16 // Pullup or pulldown!
#define SPINDLE_DIR_PIN 17 #define SPINDLE_DIR_PIN 17
#if !NUM_SERVOS // Use servo connector if possible #if !NUM_SERVOS // Use servo connector if possible

View File

@@ -35,12 +35,12 @@
// Heaters / Fans // Heaters / Fans
// //
// Power outputs EFBF or EFBE // Power outputs EFBF or EFBE
#define MOSFET_D_PIN 7 #define MOSFET_D_PIN 7
// Hotend, Hotend, Bed + Fan on D9 // Hotend, Hotend, Bed + Fan on D9
#if FET_ORDER_EEB #if FET_ORDER_EEB
#define MOSFET_B_PIN 7 #define MOSFET_B_PIN 7
#define FAN_PIN 9 #define FAN_PIN 9
#endif #endif
// //
@@ -49,11 +49,11 @@
// //
#ifndef X_CS_PIN #ifndef X_CS_PIN
#define X_CS_PIN 59 #define X_CS_PIN 59
#endif #endif
#ifndef Y_CS_PIN #ifndef Y_CS_PIN
#define Y_CS_PIN 63 #define Y_CS_PIN 63
#endif #endif
#include "pins_RAMPS.h" #include "pins_RAMPS.h"

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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO 44
#define TMC_SW_MISO 44 #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK 64
#define TMC_SW_SCK 64
#endif
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART
@@ -877,7 +875,7 @@
#define BEEPER_PIN EXP2_05_PIN #define BEEPER_PIN EXP2_05_PIN
#if ENABLED(PANEL_ONE) // Buttons connect directly to AUX-2 #if ENABLED(PANEL_ONE) // Buttons connect directly to AUX-2
#define BTN_EN1 AUX2_03_PIN #define BTN_EN1 AUX2_03_PIN
#define BTN_EN2 AUX2_04_PIN #define BTN_EN2 AUX2_04_PIN
#define BTN_ENC AUX3_02_PIN #define BTN_ENC AUX3_02_PIN

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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO 50
#define TMC_SW_MISO 50 #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK 53
#define TMC_SW_SCK 53
#endif
#endif #endif
// //

View File

@@ -27,17 +27,17 @@
#define BOARD_INFO_NAME "Anycubic RAMPS 1.3" #define BOARD_INFO_NAME "Anycubic RAMPS 1.3"
#define MOSFET_B_PIN 44 #define MOSFET_B_PIN 44
#define E1_STEP_PIN -1 #define E1_STEP_PIN -1
#define E1_DIR_PIN -1 #define E1_DIR_PIN -1
#define E1_ENABLE_PIN -1 #define E1_ENABLE_PIN -1
#define E1_CS_PIN -1 #define E1_CS_PIN -1
#define FAN2_PIN 9 #define FAN2_PIN 9
#ifndef E0_AUTO_FAN_PIN #ifndef E0_AUTO_FAN_PIN
#define E0_AUTO_FAN_PIN 9 #define E0_AUTO_FAN_PIN 9
#endif #endif
#include "pins_RAMPS_13.h" // ... RAMPS #include "pins_RAMPS_13.h" // ... RAMPS

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_SPI_MISO
// #ifndef TMC_SW_MISO // #define TMC_SPI_MISO 44
// #define TMC_SW_MISO 44 //#endif
// #endif //#ifndef TMC_SPI_SCK
// #ifndef TMC_SW_SCK // #define TMC_SPI_SCK 64
// #define TMC_SW_SCK 64
// #endif
//#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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO 44
#define TMC_SW_MISO 44 #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK 64
#define TMC_SW_SCK 64
#endif
#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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO 26 // PD1
#define TMC_SW_MISO 26 // PD1 #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK 27 // PD2
#define TMC_SW_SCK 27 // PD2
#endif
#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

@@ -212,9 +212,9 @@
#if ENABLED(CR10_STOCKDISPLAY) #if ENABLED(CR10_STOCKDISPLAY)
// TO TEST // TO TEST
//#define LCD_PINS_RS EXP3_04_PIN //#define LCD_PINS_RS EXP3_04_PIN
//#define LCD_PINS_ENABLE EXP3_03_PIN //#define LCD_PINS_ENABLE EXP3_03_PIN
//#define LCD_PINS_D4 EXP3_05_PIN //#define LCD_PINS_D4 EXP3_05_PIN
#if !IS_NEWPANEL #if !IS_NEWPANEL
// TO TEST // TO TEST
@@ -278,7 +278,7 @@
#if IS_RRD_SC #if IS_RRD_SC
//#define BEEPER_PIN EXP1_01_PIN //#define BEEPER_PIN EXP1_01_PIN
#if ENABLED(CR10_STOCKDISPLAY) #if ENABLED(CR10_STOCKDISPLAY)
// TO TEST // TO TEST
@@ -297,7 +297,7 @@
#ifndef SD_DETECT_PIN #ifndef SD_DETECT_PIN
#define SD_DETECT_PIN EXP2_07_PIN #define SD_DETECT_PIN EXP2_07_PIN
#endif #endif
//#define KILL_PIN EXP2_10_PIN //#define KILL_PIN EXP2_10_PIN
#if ENABLED(BQ_LCD_SMART_CONTROLLER) #if ENABLED(BQ_LCD_SMART_CONTROLLER)
//#define LCD_BACKLIGHT_PIN EXP1_08_PIN // TO TEST //#define LCD_BACKLIGHT_PIN EXP1_08_PIN // TO TEST

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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO 44
#define TMC_SW_MISO 44 #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK 56 // Mega/Due:64 - AGCM4:56
#define TMC_SW_SCK 56 // Mega/Due:64 - AGCM4:56
#endif
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART

View File

@@ -153,7 +153,7 @@
#define KILL_PIN 10 #define KILL_PIN 10
#define BEEPER_PIN 27 #define BEEPER_PIN 27
#elif IS_U8GLIB_ST7920 // SPI GLCD 12864 ST7920 ( like [www.digole.com] ) For Melzi V2.0 #elif IS_U8GLIB_ST7920 // SPI GLCD 12864 ST7920 ( like [www.digole.com] ) For Melzi V2.0
#if IS_MELZI #if IS_MELZI
#define LCD_PINS_RS 30 // CS chip select /SS chip slave select #define LCD_PINS_RS 30 // CS chip select /SS chip slave select

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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO PB4
#define TMC_SW_MISO PB4 #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK PB3
#define TMC_SW_SCK PB3
#endif
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART

View File

@@ -68,30 +68,29 @@
#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 #endif
#ifndef TMC_SW_MOSI #ifndef TMC_SPI_MOSI
#define TMC_SW_MOSI PB5 #define TMC_SPI_MOSI PB5
#endif
#endif #endif
#if HAS_TMC_UART // Shared with EXP1 #if HAS_TMC_UART // Shared with EXP1
#define X_SERIAL_TX_PIN PC10 #define X_SERIAL_TX_PIN PC10
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN #define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
#define Y_SERIAL_TX_PIN PC11 #define Y_SERIAL_TX_PIN PC11
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN #define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
#define Z_SERIAL_TX_PIN PC12 #define Z_SERIAL_TX_PIN PC12
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN #define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
#define E0_SERIAL_TX_PIN PC14 #define E0_SERIAL_TX_PIN PC14
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN #define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
// Reduce baud rate to improve software serial reliability // Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200 #define TMC_BAUD_RATE 19200
@@ -287,4 +286,4 @@
#define ONBOARD_SPI_DEVICE 1 // SPI1 #define ONBOARD_SPI_DEVICE 1 // SPI1
#define ONBOARD_SD_CS_PIN PA4 // Chip select for "System" SD card #define ONBOARD_SD_CS_PIN PA4 // Chip select for "System" SD card
#define SDSS SD_SS_PIN #define SDSS SD_SS_PIN

View File

@@ -134,7 +134,7 @@
#define EXP1_01_PIN PB5 #define EXP1_01_PIN PB5
#define EXP1_02_PIN PB6 #define EXP1_02_PIN PB6
#define EXP1_03_PIN PA2 #define EXP1_03_PIN PA2
#define EXP1_04_PIN -1 // RESET #define EXP1_04_PIN -1 // RESET
#define EXP1_05_PIN PA3 #define EXP1_05_PIN PA3
#define EXP1_06_PIN PB8 #define EXP1_06_PIN PB8
#define EXP1_07_PIN PB7 #define EXP1_07_PIN PB7

View File

@@ -49,8 +49,8 @@
#endif #endif
#if ENABLED(IIC_BL24CXX_EEPROM) #if ENABLED(IIC_BL24CXX_EEPROM)
#define IIC_EEPROM_SDA PA11 #define IIC_EEPROM_SDA PA11
#define IIC_EEPROM_SCL PA12 #define IIC_EEPROM_SCL PA12
#define MARLIN_EEPROM_SIZE 0x800 // 2K (24C16) #define MARLIN_EEPROM_SIZE 0x800 // 2K (24C16)
#elif EITHER(SDCARD_EEPROM_EMULATION, FLASH_EEPROM_EMULATION) #elif EITHER(SDCARD_EEPROM_EMULATION, FLASH_EEPROM_EMULATION)
#define MARLIN_EEPROM_SIZE 0x800 // 2K #define MARLIN_EEPROM_SIZE 0x800 // 2K

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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO EXP2_01_PIN
#define TMC_SW_MISO EXP2_01_PIN #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK EXP2_02_PIN
#define TMC_SW_SCK EXP2_02_PIN
#endif
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART
@@ -131,23 +129,23 @@
* ------ ------ * ------ ------
* EXP1 EXP2 * EXP1 EXP2
*/ */
#define EXP1_01_PIN PC14 #define EXP1_01_PIN PC14
#define EXP1_02_PIN PC13 #define EXP1_02_PIN PC13
#define EXP1_03_PIN PB9 #define EXP1_03_PIN PB9
#define EXP1_04_PIN PB8 #define EXP1_04_PIN PB8
#define EXP1_05_PIN PB7 #define EXP1_05_PIN PB7
#define EXP1_06_PIN PB6 #define EXP1_06_PIN PB6
#define EXP1_07_PIN PB5 #define EXP1_07_PIN PB5
#define EXP1_08_PIN PB4 #define EXP1_08_PIN PB4
#define EXP2_01_PIN PB14 #define EXP2_01_PIN PB14
#define EXP2_02_PIN PB13 #define EXP2_02_PIN PB13
#define EXP2_03_PIN PB3 #define EXP2_03_PIN PB3
#define EXP2_04_PIN PB12 #define EXP2_04_PIN PB12
#define EXP2_05_PIN PD2 #define EXP2_05_PIN PD2
#define EXP2_06_PIN PB15 #define EXP2_06_PIN PB15
#define EXP2_07_PIN PB11 #define EXP2_07_PIN PB11
#define EXP2_08_PIN -1 // RESET #define EXP2_08_PIN -1 // RESET
// //
// LCD / Controller // LCD / Controller

View File

@@ -64,9 +64,9 @@
// Limit Switches // Limit Switches
// //
#define X_MIN_PIN PD6 #define X_MIN_PIN PD6
#define X_MAX_PIN PG15 // To double check #define X_MAX_PIN PG15 // To double check
#define Y_MIN_PIN PG9 #define Y_MIN_PIN PG9
#define Y_MAX_PIN PG14 // To double check #define Y_MAX_PIN PG14 // To double check
#define Z_MIN_PIN PG10 #define Z_MIN_PIN PG10
#define Z_MAX_PIN PG13 #define Z_MAX_PIN PG13

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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO PB14
#define TMC_SW_MISO PB14 #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK PB13
#define TMC_SW_SCK PB13
#endif
#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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO PB14
#define TMC_SW_MISO PB14 #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK PB13
#define TMC_SW_SCK PB13
#endif
#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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO PD1
#define TMC_SW_MISO PD1 #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK PD0
#define TMC_SW_SCK PD0
#endif
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART

View File

@@ -165,13 +165,13 @@
#define EXP2_05_PIN PB0 #define EXP2_05_PIN PB0
#define EXP2_06_PIN PB15 #define EXP2_06_PIN PB15
#define EXP2_07_PIN PC10 #define EXP2_07_PIN PC10
#define EXP2_08_PIN -1 // RESET #define EXP2_08_PIN -1 // RESET
// "Ender-3 EXP1" // "Ender-3 EXP1"
#define EXP3_01_PIN PC1 #define EXP3_01_PIN PC1
#define EXP3_02_PIN PC3 #define EXP3_02_PIN PC3
#define EXP3_03_PIN PB11 #define EXP3_03_PIN PB11
#define EXP3_04_PIN -1 // RESET #define EXP3_04_PIN -1 // RESET
#define EXP3_05_PIN PB0 #define EXP3_05_PIN PB0
#define EXP3_06_PIN PA6 #define EXP3_06_PIN PA6
#define EXP3_07_PIN PA5 #define EXP3_07_PIN PA5

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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO PD1
#define TMC_SW_MISO PD1 #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK PD0
#define TMC_SW_SCK PD0
#endif
#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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO PB14
#define TMC_SW_MISO PB14 #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK PB13
#define TMC_SW_SCK PB13
#endif
#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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO PB4
#define TMC_SW_MISO PB4 #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK PB3
#define TMC_SW_SCK PB3
#endif
#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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO PB14
#define TMC_SW_MISO PB14 #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK PB13
#define TMC_SW_SCK PB13
#endif
#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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO PB6
#define TMC_SW_MISO PB6 #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK PB3
#define TMC_SW_SCK PB3
#endif
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART
@@ -304,9 +302,9 @@
//#define TEMP_0_MOSI_PIN ... // For MAX31865 //#define TEMP_0_MOSI_PIN ... // For MAX31865
#define TEMP_1_CS_PIN PH2 // M5 K-TEMP #define TEMP_1_CS_PIN PH2 // M5 K-TEMP
#define TEMP_1_SCK_PIN TEMP_0_SCK_PIN #define TEMP_1_SCK_PIN TEMP_0_SCK_PIN
#define TEMP_1_MISO_PIN TEMP_0_MISO_PIN #define TEMP_1_MISO_PIN TEMP_0_MISO_PIN
//#define TEMP_1_MOSI_PIN TEMP_0_MOSI_PIN //#define TEMP_1_MOSI_PIN TEMP_0_MOSI_PIN
// //
// Heaters / Fans // Heaters / Fans

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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO PA6
#define TMC_SW_MISO PA6 #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK PA5
#define TMC_SW_SCK PA5
#endif
#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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO PC11
#define TMC_SW_MISO PC11 #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK PC10
#define TMC_SW_SCK PC10
#endif
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART
@@ -487,7 +485,7 @@
#define DOGLCD_A0 EXP1_06_PIN #define DOGLCD_A0 EXP1_06_PIN
#define DOGLCD_SCK EXP1_04_PIN #define DOGLCD_SCK EXP1_04_PIN
#define DOGLCD_MOSI EXP1_02_PIN #define DOGLCD_MOSI EXP1_02_PIN
#define LCD_BACKLIGHT_PIN -1 #define LCD_BACKLIGHT_PIN -1
#else #else

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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO PA14
#define TMC_SW_MISO PA14 #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK PE15
#define TMC_SW_SCK PE15
#endif
#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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO EXP2_01_PIN
#define TMC_SW_MISO EXP2_01_PIN #endif
#endif #ifndef TMC_SPI_MOSI
#ifndef TMC_SW_MOSI #define TMC_SPI_MOSI EXP2_06_PIN
#define TMC_SW_MOSI EXP2_06_PIN
#endif
#endif #endif
// //

View File

@@ -43,14 +43,14 @@
#define FLASH_ADDRESS_START 0x8004000 #define FLASH_ADDRESS_START 0x8004000
#endif #endif
#define SERVO0_PIN PB1 // BL-TOUCH/PWM #define SERVO0_PIN PB1 // BL-TOUCH/PWM
// //
// Limit Switches // Limit Switches
// //
#define X_STOP_PIN PB4 // X-MIN #define X_STOP_PIN PB4 // X-MIN
#define Y_STOP_PIN PC8 // Y-MIN #define Y_STOP_PIN PC8 // Y-MIN
#define Z_STOP_PIN PA0 // Z-MIN #define Z_STOP_PIN PA0 // Z-MIN
// //
// Z Probe // Z Probe
@@ -59,7 +59,7 @@
#error "You need to set jumper to 5V for BLTouch, then comment out this line to proceed." #error "You need to set jumper to 5V for BLTouch, then comment out this line to proceed."
#endif #endif
#ifndef Z_MIN_PROBE_PIN #ifndef Z_MIN_PROBE_PIN
#define Z_MIN_PROBE_PIN PB1 // BL-TOUCH/PWM repurposed #define Z_MIN_PROBE_PIN PB1 // BL-TOUCH/PWM repurposed
#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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO PE13
#define TMC_SW_MISO PE13 #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK PE12
#define TMC_SW_SCK PE12
#endif
#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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO PE13
#define TMC_SW_MISO PE13 #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK PE12
#define TMC_SW_SCK PE12
#endif
#endif #endif
#if HOTENDS > 3 || E_STEPPERS > 3 #if HOTENDS > 3 || E_STEPPERS > 3

View File

@@ -154,10 +154,10 @@
#ifndef EX_SERIAL_RX_PIN #ifndef EX_SERIAL_RX_PIN
#define EX_SERIAL_RX_PIN EX_SERIAL_TX_PIN #define EX_SERIAL_RX_PIN EX_SERIAL_TX_PIN
#endif #endif
//#define Z2_SERIAL_RX_PIN EX_SERIAL_RX_PIN //#define Z2_SERIAL_RX_PIN EX_SERIAL_RX_PIN
//#define Z2_SERIAL_TX_PIN EX_SERIAL_TX_PIN //#define Z2_SERIAL_TX_PIN EX_SERIAL_TX_PIN
//#define E2_SERIAL_RX_PIN EX_SERIAL_RX_PIN //#define E2_SERIAL_RX_PIN EX_SERIAL_RX_PIN
//#define E2_SERIAL_TX_PIN EX_SERIAL_TX_PIN //#define E2_SERIAL_TX_PIN EX_SERIAL_TX_PIN
// Reduce baud rate to improve software serial reliability // Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200 #define TMC_BAUD_RATE 19200
#endif #endif

View File

@@ -39,7 +39,7 @@
// //
// Misc. Functions // Misc. Functions
// //
#define PW_DET PC5 // Y+ #define PW_DET PC5 // Y+
#define PW_OFF PB12 // Z+ #define PW_OFF PB12 // Z+
#define MT_DET_1_PIN PW_DET #define MT_DET_1_PIN PW_DET
#define MT_DET_2_PIN PW_OFF #define MT_DET_2_PIN PW_OFF

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 #endif
#define TMC_SW_SCK PE12 #if !defined(TMC_SPI_SCK) || TMC_SPI_SCK == -1
#endif #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 #endif
#define TMC_SW_SCK PD0 #if !defined(TMC_SPI_SCK) || TMC_SPI_SCK == -1
#endif #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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO PD1
#define TMC_SW_MISO PD1 #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK PD0
#define TMC_SW_SCK PD0
#endif
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART
@@ -238,23 +236,23 @@
* ------ ------ * ------ ------
* EXP1 EXP2 * EXP1 EXP2
*/ */
#define EXP1_01_PIN PC5 #define EXP1_01_PIN PC5
#define EXP1_02_PIN PE13 #define EXP1_02_PIN PE13
#define EXP1_03_PIN PD13 #define EXP1_03_PIN PD13
#define EXP1_04_PIN PC6 #define EXP1_04_PIN PC6
#define EXP1_05_PIN PE14 #define EXP1_05_PIN PE14
#define EXP1_06_PIN PE15 #define EXP1_06_PIN PE15
#define EXP1_07_PIN PD11 #define EXP1_07_PIN PD11
#define EXP1_08_PIN PD10 #define EXP1_08_PIN PD10
#define EXP2_01_PIN PA6 #define EXP2_01_PIN PA6
#define EXP2_02_PIN PA5 #define EXP2_02_PIN PA5
#define EXP2_03_PIN PE8 #define EXP2_03_PIN PE8
#define EXP2_04_PIN PE10 #define EXP2_04_PIN PE10
#define EXP2_05_PIN PE11 #define EXP2_05_PIN PE11
#define EXP2_06_PIN PA7 #define EXP2_06_PIN PA7
#define EXP2_07_PIN PE12 #define EXP2_07_PIN PE12
#define EXP2_08_PIN -1 // RESET #define EXP2_08_PIN -1 // RESET
// //
// LCD SD // LCD SD

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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO PA6
#define TMC_SW_MISO PA6 #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK PA5
#define TMC_SW_SCK PA5
#endif
#endif #endif
// //

View File

@@ -81,15 +81,15 @@
// Steppers // Steppers
// //
#define X_ENABLE_PIN -1 #define X_ENABLE_PIN -1
#define X_STEP_PIN PA10 // Unused. Assigned so Marlin will compile #define X_STEP_PIN PA10 // Unused. Assigned so Marlin will compile
#define X_DIR_PIN -1 #define X_DIR_PIN -1
#define Y_ENABLE_PIN -1 #define Y_ENABLE_PIN -1
#define Y_STEP_PIN PA10 // Unused. Assigned so Marlin will compile #define Y_STEP_PIN PA10 // Unused. Assigned so Marlin will compile
#define Y_DIR_PIN -1 #define Y_DIR_PIN -1
#define Z_ENABLE_PIN -1 #define Z_ENABLE_PIN -1
#define Z_STEP_PIN PA10 // Unused. Assigned so Marlin will compile #define Z_STEP_PIN PA10 // Unused. Assigned so Marlin will compile
#define Z_DIR_PIN -1 #define Z_DIR_PIN -1
#define E0_ENABLE_PIN PD2 #define E0_ENABLE_PIN PD2

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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO PC11 // Shared with SPI header, Pin 6 (SPI3)
#define TMC_SW_MISO PC11 // Shared with SPI header, Pin 6 (SPI3) #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK PC10 // Shared with SPI header, Pin 4 (SPI3)
#define TMC_SW_SCK PC10 // Shared with SPI header, Pin 4 (SPI3)
#endif
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART

View File

@@ -57,7 +57,7 @@
// //
#if ENABLED(PROBE_ENABLE_DISABLE) #if ENABLED(PROBE_ENABLE_DISABLE)
#ifndef PROBE_ENABLE_PIN #ifndef PROBE_ENABLE_PIN
#define PROBE_ENABLE_PIN SERVO0_PIN #define PROBE_ENABLE_PIN SERVO0_PIN
#endif #endif
#endif #endif
@@ -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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO PB14
#define TMC_SW_MISO PB14 #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK PB13
#define TMC_SW_SCK PB13
#endif
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART

View File

@@ -79,8 +79,8 @@
// Z Probe (when not Z_STOP_PIN) // Z Probe (when not Z_STOP_PIN)
// //
#ifndef Z_MIN_PROBE_PIN #ifndef Z_MIN_PROBE_PIN
#define Z_MIN_PROBE_PIN PC13 // PROBE #define Z_MIN_PROBE_PIN PC13 // PROBE
//#define Z_MIN_PROBE_PIN PC15 // IND-DET (with adjustable pullup set via jumper) //#define Z_MIN_PROBE_PIN PC15 // IND-DET (with adjustable pullup set via jumper)
#endif #endif
// //
@@ -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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO PB14 // Shared with SPI header, Pin 6 (SPI2)
#define TMC_SW_MISO PB14 // Shared with SPI header, Pin 6 (SPI2) #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK PB13 // Shared with SPI header, Pin 4 (SPI2)
#define TMC_SW_SCK PB13 // Shared with SPI header, Pin 4 (SPI2)
#endif
#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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO PA6
#define TMC_SW_MISO PA6 #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK PA5
#define TMC_SW_SCK PA5
#endif
#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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO PE13
#define TMC_SW_MISO PE13 #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK PE12
#define TMC_SW_SCK PE12
#endif
#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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO PG3
#define TMC_SW_MISO PG3 #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK PC7
#define TMC_SW_SCK PC7
#endif
#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_SPI_MISO
#ifndef TMC_SW_MISO #define TMC_SPI_MISO PE15
#define TMC_SW_MISO PE15 #endif
#endif #ifndef TMC_SPI_SCK
#ifndef TMC_SW_SCK #define TMC_SPI_SCK PE14
#define TMC_SW_SCK PE14
#endif
#endif #endif
#if HAS_TMC_UART #if HAS_TMC_UART