🎨 Tweak TMC software serial pins

This commit is contained in:
Scott Lahteine 2021-08-21 15:07:52 -05:00
parent 0be98b98a7
commit 0aa87af82f
48 changed files with 238 additions and 302 deletions

View File

@ -164,9 +164,6 @@
//#define E3_HARDWARE_SERIAL Serial1
//#define E4_HARDWARE_SERIAL Serial1
//
// Software serial
//
#define X_SERIAL_TX_PIN P4_29
#define X_SERIAL_RX_PIN P1_17

View File

@ -220,23 +220,20 @@
//#define E3_HARDWARE_SERIAL Serial1
//#define E4_HARDWARE_SERIAL Serial1
//
// Software serial
//
#define X_SERIAL_TX_PIN P1_10
#define X_SERIAL_RX_PIN P1_10
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
#define Y_SERIAL_TX_PIN P1_09
#define Y_SERIAL_RX_PIN P1_09
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
#define Z_SERIAL_TX_PIN P1_08
#define Z_SERIAL_RX_PIN P1_08
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
#define E0_SERIAL_TX_PIN P1_04
#define E0_SERIAL_RX_PIN P1_04
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
#define E1_SERIAL_TX_PIN P1_01
#define E1_SERIAL_RX_PIN P1_01
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200

View File

@ -172,7 +172,7 @@
#define E2_CS_PIN EXP1_05_PIN
#if HAS_TMC_UART
#define E2_SERIAL_TX_PIN EXP1_05_PIN
#define E2_SERIAL_RX_PIN EXP1_05_PIN
#define E2_SERIAL_RX_PIN E2_SERIAL_TX_PIN
#endif
#endif
@ -185,7 +185,7 @@
#define E3_CS_PIN EXP1_07_PIN
#if HAS_TMC_UART
#define E3_SERIAL_TX_PIN EXP1_07_PIN
#define E3_SERIAL_RX_PIN EXP1_07_PIN
#define E3_SERIAL_RX_PIN E3_SERIAL_TX_PIN
#endif
#else
#define E3_ENABLE_PIN EXP2_04_PIN
@ -200,7 +200,7 @@
#define E4_CS_PIN EXP1_09_PIN
#if HAS_TMC_UART
#define E4_SERIAL_TX_PIN EXP1_09_PIN
#define E4_SERIAL_RX_PIN EXP1_09_PIN
#define E4_SERIAL_RX_PIN E4_SERIAL_TX_PIN
#endif
#else
#define E4_ENABLE_PIN EXP2_04_PIN

View File

@ -82,17 +82,22 @@
//
#if HAS_TMC_UART
#define X_SERIAL_TX_PIN P1_00
#define X_SERIAL_RX_PIN P1_00
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
#define Y_SERIAL_TX_PIN P1_09
#define Y_SERIAL_RX_PIN P1_09
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
#define Z_SERIAL_TX_PIN P1_16
#define Z_SERIAL_RX_PIN P1_16
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
#define E0_SERIAL_TX_PIN P0_04
#define E0_SERIAL_RX_PIN P0_04
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
#define E1_SERIAL_TX_PIN P2_02
#define E1_SERIAL_RX_PIN P2_02
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
#define E2_SERIAL_TX_PIN P2_06
#define E2_SERIAL_RX_PIN P2_06
#define E2_SERIAL_RX_PIN E2_SERIAL_TX_PIN
// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200

View File

@ -327,10 +327,13 @@
*/
#define X_SERIAL_TX_PIN P1_22 // J8-2
#define X_SERIAL_RX_PIN P2_12 // J8-4 Interrupt Capable
#define Y_SERIAL_TX_PIN P1_23 // J8-3
#define Y_SERIAL_RX_PIN P2_11 // J8-5 Interrupt Capable
#define Z_SERIAL_TX_PIN P2_12 // J8-4
#define Z_SERIAL_RX_PIN P0_25 // TH3
#define E0_SERIAL_TX_PIN P4_28 // J8-6
#define E0_SERIAL_RX_PIN P0_26 // TH4

View File

@ -163,10 +163,6 @@
//#define E3_HARDWARE_SERIAL Serial1
//#define E4_HARDWARE_SERIAL Serial1
//
// Software serial
//
#define X_SERIAL_TX_PIN P1_04
#define X_SERIAL_RX_PIN P1_01

View File

@ -119,9 +119,6 @@
* If undefined software serial is used according to the pins below
*/
//
// Software serial
//
// P2_08 E1-Step
// P2_13 E1-Dir
@ -130,28 +127,28 @@
#define X_SERIAL_TX_PIN P0_01
#endif
#ifndef X_SERIAL_RX_PIN
#define X_SERIAL_RX_PIN P0_01
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
#endif
#ifndef Y_SERIAL_TX_PIN
#define Y_SERIAL_TX_PIN P0_00
#endif
#ifndef Y_SERIAL_RX_PIN
#define Y_SERIAL_RX_PIN P0_00
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
#endif
#ifndef Z_SERIAL_TX_PIN
#define Z_SERIAL_TX_PIN P2_13
#endif
#ifndef Z_SERIAL_RX_PIN
#define Z_SERIAL_RX_PIN P2_13
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
#endif
#ifndef E0_SERIAL_TX_PIN
#define E0_SERIAL_TX_PIN P2_08
#endif
#ifndef E0_SERIAL_RX_PIN
#define E0_SERIAL_RX_PIN P2_08
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
#endif
// Reduce baud rate to improve software serial reliability

View File

@ -129,23 +129,20 @@
* If undefined software serial is used according to the pins below
*/
//
// Software serial
//
#define X_SERIAL_TX_PIN P1_01
#define X_SERIAL_RX_PIN P1_01
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
#define Y_SERIAL_TX_PIN P1_10
#define Y_SERIAL_RX_PIN P1_10
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
#define Z_SERIAL_TX_PIN P1_17
#define Z_SERIAL_RX_PIN P1_17
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
#define E0_SERIAL_TX_PIN P0_05
#define E0_SERIAL_RX_PIN P0_05
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
#define E1_SERIAL_TX_PIN P0_22
#define E1_SERIAL_RX_PIN P0_22
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200

View File

@ -104,22 +104,22 @@
#if HAS_TMC_UART
#define X_SERIAL_TX_PIN P1_04
#define X_SERIAL_RX_PIN P1_04
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
#define Y_SERIAL_TX_PIN P1_10
#define Y_SERIAL_RX_PIN P1_10
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
#define Z_SERIAL_TX_PIN P1_16
#define Z_SERIAL_RX_PIN P1_16
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
#define E0_SERIAL_TX_PIN P4_28
#define E0_SERIAL_RX_PIN P4_28
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
#define E1_SERIAL_TX_PIN P2_12
#define E1_SERIAL_RX_PIN P2_12
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
#define E2_SERIAL_TX_PIN P0_10
#define E2_SERIAL_RX_PIN P0_10
#define E2_SERIAL_RX_PIN E2_SERIAL_TX_PIN
// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200

View File

@ -38,17 +38,20 @@
/**
* TMC2208/TMC2209 stepper drivers
*/
#define X_SERIAL_TX_PIN P1_22 // J8-2
#define X_SERIAL_RX_PIN P1_22 // J8-2
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
#define Y_SERIAL_TX_PIN P1_23 // J8-3
#define Y_SERIAL_RX_PIN P1_23 // J8-3
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
#define Z_SERIAL_TX_PIN P2_12 // J8-4
#define Z_SERIAL_RX_PIN P2_12 // J8-4
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
#define E0_SERIAL_TX_PIN P2_11 // J8-5
#define E0_SERIAL_RX_PIN P2_11 // J8-5
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
#define E1_SERIAL_TX_PIN P4_28 // J8-6
#define E1_SERIAL_RX_PIN P4_28 // J8-6
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200

View File

@ -173,19 +173,20 @@
//#define E3_HARDWARE_SERIAL Serial1
//#define E4_HARDWARE_SERIAL Serial1
//
// Software serial
//
#define X_SERIAL_TX_PIN P1_01
#define X_SERIAL_RX_PIN P1_01
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
#define Y_SERIAL_TX_PIN P1_08
#define Y_SERIAL_RX_PIN P1_08
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
#define Z_SERIAL_TX_PIN P1_10
#define Z_SERIAL_RX_PIN P1_10
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
#define E0_SERIAL_TX_PIN P1_15
#define E0_SERIAL_RX_PIN P1_15
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
#define E1_SERIAL_TX_PIN P1_17
#define E1_SERIAL_RX_PIN P1_17
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200

View File

@ -75,14 +75,16 @@
#if HAS_TMC_UART
//
// TMC220x stepper drivers
// Software serial
//
#define X_SERIAL_TX_PIN P0_04
#define X_SERIAL_RX_PIN P0_05
#define Y_SERIAL_TX_PIN P0_10
#define Y_SERIAL_RX_PIN P0_11
#define Z_SERIAL_TX_PIN P0_19
#define Z_SERIAL_RX_PIN P0_20
#define E0_SERIAL_TX_PIN P0_22
#define E0_SERIAL_RX_PIN P0_21

View File

@ -124,42 +124,42 @@
* Software serial communication pins.
* At the moment, F6 rx pins are not pc interrupt pins
*/
#ifndef X_SERIAL_RX_PIN
#define X_SERIAL_RX_PIN -1 // 71
#endif
#ifndef X_SERIAL_TX_PIN
#define X_SERIAL_TX_PIN 72
#endif
#ifndef Y_SERIAL_RX_PIN
#define Y_SERIAL_RX_PIN -1 // 73
#ifndef X_SERIAL_RX_PIN
#define X_SERIAL_RX_PIN -1 // 71
#endif
#ifndef Y_SERIAL_TX_PIN
#define Y_SERIAL_TX_PIN 75
#endif
#ifndef Z_SERIAL_RX_PIN
#define Z_SERIAL_RX_PIN -1 // 78
#ifndef Y_SERIAL_RX_PIN
#define Y_SERIAL_RX_PIN -1 // 73
#endif
#ifndef Z_SERIAL_TX_PIN
#define Z_SERIAL_TX_PIN 79
#endif
#ifndef E0_SERIAL_RX_PIN
#define E0_SERIAL_RX_PIN -1 // 76
#ifndef Z_SERIAL_RX_PIN
#define Z_SERIAL_RX_PIN -1 // 78
#endif
#ifndef E0_SERIAL_TX_PIN
#define E0_SERIAL_TX_PIN 77
#endif
#ifndef E1_SERIAL_RX_PIN
#define E1_SERIAL_RX_PIN -1 // 80
#ifndef E0_SERIAL_RX_PIN
#define E0_SERIAL_RX_PIN -1 // 76
#endif
#ifndef E1_SERIAL_TX_PIN
#define E1_SERIAL_TX_PIN 81
#endif
#ifndef E2_SERIAL_RX_PIN
#define E2_SERIAL_RX_PIN -1 // 22
#ifndef E1_SERIAL_RX_PIN
#define E1_SERIAL_RX_PIN -1 // 80
#endif
#ifndef E2_SERIAL_TX_PIN
#define E2_SERIAL_TX_PIN 82
#endif
#ifndef E2_SERIAL_RX_PIN
#define E2_SERIAL_RX_PIN -1 // 22
#endif
#endif
//

View File

@ -33,18 +33,23 @@
/**
* TMC2208/TMC2209 stepper drivers
*/
#define X_SERIAL_RX_PIN 72
#define X_SERIAL_TX_PIN 71
#define Y_SERIAL_RX_PIN 73
#define X_SERIAL_RX_PIN 72
#define Y_SERIAL_TX_PIN 78
#define Z_SERIAL_RX_PIN 75
#define Y_SERIAL_RX_PIN 73
#define Z_SERIAL_TX_PIN 79
#define E0_SERIAL_RX_PIN 77
#define Z_SERIAL_RX_PIN 75
#define E0_SERIAL_TX_PIN 81
#define E1_SERIAL_RX_PIN 76
#define E0_SERIAL_RX_PIN 77
#define E1_SERIAL_TX_PIN 80
#define E2_SERIAL_RX_PIN 62
#define E1_SERIAL_RX_PIN 76
#define E2_SERIAL_TX_PIN 82
#define E2_SERIAL_RX_PIN 62
#endif
#include "pins_FYSETC_F6_13.h"

View File

@ -54,20 +54,19 @@
#define TEMP_0_PIN 15 // Analog Input
#define TEMP_1_PIN 13 // Analog Input
//
// Software serial
//
#define X_SERIAL_TX_PIN 59
#define X_SERIAL_RX_PIN 63
#if HAS_TMC_UART
#define X_SERIAL_TX_PIN 59
#define X_SERIAL_RX_PIN 63
#define Y_SERIAL_TX_PIN 64
#define Y_SERIAL_RX_PIN 40
#define Y_SERIAL_TX_PIN 64
#define Y_SERIAL_RX_PIN 40
#define Z_SERIAL_TX_PIN 44
#define Z_SERIAL_RX_PIN 42
#define Z_SERIAL_TX_PIN 44
#define Z_SERIAL_RX_PIN 42
#define E0_SERIAL_TX_PIN 66
#define E0_SERIAL_RX_PIN 65
#define E0_SERIAL_TX_PIN 66
#define E0_SERIAL_RX_PIN 65
#endif
#include "pins_RAMPS.h"

View File

@ -321,10 +321,6 @@
//#define E3_HARDWARE_SERIAL Serial1
//#define E4_HARDWARE_SERIAL Serial1
//
// Software serial
//
#ifndef X_SERIAL_TX_PIN
#define X_SERIAL_TX_PIN 40
#endif

View File

@ -117,10 +117,6 @@
//#define E3_HARDWARE_SERIAL Serial1
//#define E3_HARDWARE_SERIAL Serial1
//
// Software serial
//
#define X_SERIAL_TX_PIN -1 // 59
#define X_SERIAL_RX_PIN -1 // 63
#define X2_SERIAL_TX_PIN -1

View File

@ -213,10 +213,6 @@
//#define E3_HARDWARE_SERIAL Serial1
//#define E4_HARDWARE_SERIAL Serial1
//
// Software serial
//
#ifndef X_SERIAL_TX_PIN
#define X_SERIAL_TX_PIN 40
#endif

View File

@ -194,60 +194,56 @@
//#define E0_HARDWARE_SERIAL Serial1
//#define E1_HARDWARE_SERIAL Serial1
//
// Software serial
//
#ifndef X_SERIAL_TX_PIN
#define X_SERIAL_TX_PIN 47
#endif
#ifndef X_SERIAL_RX_PIN
#define X_SERIAL_RX_PIN 47
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
#endif
#ifndef X2_SERIAL_TX_PIN
#define X2_SERIAL_TX_PIN -1
#endif
#ifndef X2_SERIAL_RX_PIN
#define X2_SERIAL_RX_PIN -1
#define X2_SERIAL_RX_PIN X2_SERIAL_TX_PIN
#endif
#ifndef Y_SERIAL_TX_PIN
#define Y_SERIAL_TX_PIN 45
#endif
#ifndef Y_SERIAL_RX_PIN
#define Y_SERIAL_RX_PIN 45
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
#endif
#ifndef Y2_SERIAL_TX_PIN
#define Y2_SERIAL_TX_PIN -1
#endif
#ifndef Y2_SERIAL_RX_PIN
#define Y2_SERIAL_RX_PIN -1
#define Y2_SERIAL_RX_PIN Y2_SERIAL_TX_PIN
#endif
#ifndef Z_SERIAL_TX_PIN
#define Z_SERIAL_TX_PIN 32
#endif
#ifndef Z_SERIAL_RX_PIN
#define Z_SERIAL_RX_PIN 32
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
#endif
#ifndef Z2_SERIAL_TX_PIN
#define Z2_SERIAL_TX_PIN 22
#endif
#ifndef Z2_SERIAL_RX_PIN
#define Z2_SERIAL_RX_PIN 22
#define Z2_SERIAL_RX_PIN Z2_SERIAL_TX_PIN
#endif
#ifndef E0_SERIAL_TX_PIN
#define E0_SERIAL_TX_PIN 43
#endif
#ifndef E0_SERIAL_RX_PIN
#define E0_SERIAL_RX_PIN 43
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
#endif
#ifndef E1_SERIAL_TX_PIN
#define E1_SERIAL_TX_PIN -1
#endif
#ifndef E1_SERIAL_RX_PIN
#define E1_SERIAL_RX_PIN -1
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
#endif
#endif

View File

@ -120,20 +120,17 @@
//#define Z_HARDWARE_SERIAL MSerial1
//#define E0_HARDWARE_SERIAL MSerial1
//
// Software serial
//
#define X_SERIAL_TX_PIN PC10
#define X_SERIAL_RX_PIN PC10
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
#define Y_SERIAL_TX_PIN PC11
#define Y_SERIAL_RX_PIN PC11
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
#define Z_SERIAL_TX_PIN PC12
#define Z_SERIAL_RX_PIN PC12
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
#define E0_SERIAL_TX_PIN PD2
#define E0_SERIAL_RX_PIN PD2
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200

View File

@ -33,20 +33,17 @@
* TMC2208/TMC2209 stepper drivers
*/
#if HAS_TMC_UART
//
// Software serial
//
#define X_SERIAL_TX_PIN PB15
#define X_SERIAL_RX_PIN PB15
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
#define Y_SERIAL_TX_PIN PC6
#define Y_SERIAL_RX_PIN PC6
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
#define Z_SERIAL_TX_PIN PC10
#define Z_SERIAL_RX_PIN PC10
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
#define E0_SERIAL_TX_PIN PC11
#define E0_SERIAL_RX_PIN PC11
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200

View File

@ -84,15 +84,20 @@
#define E0_STEP_PIN PA6
#define E0_DIR_PIN PA5
// Stepper drivers Serial UART
#define X_SERIAL_TX_PIN PB3
#define X_SERIAL_RX_PIN PD2
#define Y_SERIAL_TX_PIN PA15
#define Y_SERIAL_RX_PIN PC6
#define Z_SERIAL_TX_PIN PB11
#define Z_SERIAL_RX_PIN PB10
#define E0_SERIAL_TX_PIN PC5
#define E0_SERIAL_RX_PIN PC4
#if HAS_TMC_UART
// Stepper drivers Serial UART
#define X_SERIAL_TX_PIN PB3
#define X_SERIAL_RX_PIN PD2
#define Y_SERIAL_TX_PIN PA15
#define Y_SERIAL_RX_PIN PC6
#define Z_SERIAL_TX_PIN PB11
#define Z_SERIAL_RX_PIN PB10
#define E0_SERIAL_TX_PIN PC5
#define E0_SERIAL_RX_PIN PC4
#endif
// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200

View File

@ -124,11 +124,11 @@
// SoftwareSerial with one pin per driver
// Compatible with TMC2208 and TMC2209 drivers
#define X_SERIAL_TX_PIN PA10 // RXD1
#define X_SERIAL_RX_PIN PA10 // RXD1
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
#define Y_SERIAL_TX_PIN PA9 // TXD1
#define Y_SERIAL_RX_PIN PA9 // TXD1
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
#define Z_SERIAL_TX_PIN PC7 // IO1
#define Z_SERIAL_RX_PIN PC7 // IO1
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
#define TMC_BAUD_RATE 19200
#else
// Motor current PWM pins

View File

@ -94,17 +94,14 @@
#endif
#if HAS_TMC_UART
//
// Software serial
//
#define X_SERIAL_TX_PIN PB0
#define X_SERIAL_RX_PIN PB0
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
#define Y_SERIAL_TX_PIN PA7
#define Y_SERIAL_RX_PIN PA7
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
#define Z_SERIAL_TX_PIN PA4
#define Z_SERIAL_RX_PIN PA4
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
#define E0_SERIAL_TX_PIN PC2
#define E0_SERIAL_RX_PIN PC2
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
#endif
//

View File

@ -42,9 +42,6 @@
* TMC2208/TMC2209 stepper drivers
*/
//
// Software serial
//
#define X_SERIAL_TX_PIN PA11
#define X_SERIAL_RX_PIN PA12

View File

@ -258,12 +258,12 @@
//#define TMC_SOFTWARE_SERIAL
#if ENABLED(TMC_SOFTWARE_SERIAL)
#define X_SERIAL_TX_PIN PF8 // SERVO3_PIN -- XS2 - 6
#define Y_SERIAL_TX_PIN PF9 // SERVO2_PIN -- XS2 - 5
#define Z_SERIAL_TX_PIN PA1 // SERVO1_PIN -- XS1 - 6
#define E0_SERIAL_TX_PIN PC3 // SERVO0_PIN -- XS1 - 5
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
#define Y_SERIAL_TX_PIN PF9 // SERVO2_PIN -- XS2 - 5
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
#define Z_SERIAL_TX_PIN PA1 // SERVO1_PIN -- XS1 - 6
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
#define E0_SERIAL_TX_PIN PC3 // SERVO0_PIN -- XS1 - 5
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
#define TMC_BAUD_RATE 19200
#endif

View File

@ -145,10 +145,6 @@
//#define E3_HARDWARE_SERIAL Serial1
//#define E4_HARDWARE_SERIAL Serial1
//
// Software serial
//
#define X_SERIAL_TX_PIN PD5
#define X_SERIAL_RX_PIN PD5

View File

@ -92,9 +92,6 @@
//#define Z_HARDWARE_SERIAL MSerial1
//#define E0_HARDWARE_SERIAL MSerial1
//
// Software serial
//
#define X_SERIAL_TX_PIN PC7
#define X_SERIAL_RX_PIN PC7

View File

@ -146,10 +146,6 @@
//#define E0_HARDWARE_SERIAL MSerial1
//#define E1_HARDWARE_SERIAL MSerial1
//
// Software serial
//
#define X_SERIAL_TX_PIN PD5
#define X_SERIAL_RX_PIN PD5

View File

@ -133,9 +133,6 @@
//#define E1_HARDWARE_SERIAL MSerial1
//#define E2_HARDWARE_SERIAL MSerial1
//
// Software serial
//
#define X_SERIAL_TX_PIN PF7
#define X_SERIAL_RX_PIN PF8

View File

@ -204,9 +204,6 @@
#if HAS_TMC_UART
// TMC2208/TMC2209 stepper drivers
//
// Software serial
//
#define X_SERIAL_TX_PIN EXT0_PIN
#define X_SERIAL_RX_PIN EXT0_PIN

View File

@ -137,20 +137,17 @@
//#define E3_HARDWARE_SERIAL Serial1
//#define E4_HARDWARE_SERIAL Serial1
//
// Software serial ##
//
#define X_SERIAL_TX_PIN PE2
#define X_SERIAL_RX_PIN PE2
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
#define Y_SERIAL_TX_PIN PE3
#define Y_SERIAL_RX_PIN PE3
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
#define Z_SERIAL_TX_PIN PE4
#define Z_SERIAL_RX_PIN PE4
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
#define E0_SERIAL_TX_PIN PD7
#define E0_SERIAL_RX_PIN PD7
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200

View File

@ -112,27 +112,24 @@
* TMC2208/TMC2209 stepper drivers
*/
#if HAS_TMC_UART
//
// Software serial
//
#define X_SERIAL_TX_PIN PD6
#define X_SERIAL_RX_PIN PD6
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
#define Y_SERIAL_TX_PIN PD1
#define Y_SERIAL_RX_PIN PD1
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
#define Z_SERIAL_TX_PIN PD15
#define Z_SERIAL_RX_PIN PD15
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
#define E0_SERIAL_TX_PIN PD11
#define E0_SERIAL_RX_PIN PD11
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
#if ENABLED(BTT_E3_RRF_IDEX_BOARD)
#define X2_SERIAL_TX_PIN FPC12_PIN // X2UART
#define X2_SERIAL_RX_PIN FPC12_PIN // X2UART
#define X2_SERIAL_RX_PIN X2_SERIAL_TX_PIN
#define E1_SERIAL_TX_PIN FPC6_PIN // E1UART
#define E1_SERIAL_RX_PIN FPC6_PIN // E1UART
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
#endif
// Reduce baud rate to improve software serial reliability

View File

@ -239,42 +239,39 @@
//#define E6_HARDWARE_SERIAL Serial1 // M5 MOTOR 4
//#define E7_HARDWARE_SERIAL Serial1 // M5 MOTOR 5
//
// Software serial
//
#define X_SERIAL_TX_PIN PC14
#define X_SERIAL_RX_PIN PC14
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
#define Y_SERIAL_TX_PIN PE1
#define Y_SERIAL_RX_PIN PE1
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
#define Z_SERIAL_TX_PIN PB5
#define Z_SERIAL_RX_PIN PB5
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
#define E0_SERIAL_TX_PIN PG10
#define E0_SERIAL_RX_PIN PG10
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
#define E1_SERIAL_TX_PIN PD4
#define E1_SERIAL_RX_PIN PD4
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
#define E2_SERIAL_TX_PIN PC12
#define E2_SERIAL_RX_PIN PC12
#define E2_SERIAL_RX_PIN E2_SERIAL_TX_PIN
#if ENABLED(M5_EXTENDER)
#define E3_SERIAL_TX_PIN PG4
#define E3_SERIAL_RX_PIN PG4
#define E3_SERIAL_RX_PIN E3_SERIAL_TX_PIN
#define E4_SERIAL_TX_PIN PE15
#define E4_SERIAL_RX_PIN PE15
#define E4_SERIAL_RX_PIN E4_SERIAL_TX_PIN
#define E5_SERIAL_TX_PIN PE7
#define E5_SERIAL_RX_PIN PE7
#define E5_SERIAL_RX_PIN E5_SERIAL_TX_PIN
#define E6_SERIAL_TX_PIN PF15
#define E6_SERIAL_RX_PIN PF15
#define E6_SERIAL_RX_PIN E6_SERIAL_TX_PIN
#define E7_SERIAL_TX_PIN PH14
#define E7_SERIAL_RX_PIN PH14
#define E7_SERIAL_RX_PIN E7_SERIAL_TX_PIN
#endif
// Reduce baud rate to improve software serial reliability

View File

@ -282,32 +282,29 @@
//#define E3_HARDWARE_SERIAL Serial1
//#define E4_HARDWARE_SERIAL Serial1
//
// Software serial
//
#define X_SERIAL_TX_PIN PC4
#define X_SERIAL_RX_PIN PC4
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
#define Y_SERIAL_TX_PIN PD11
#define Y_SERIAL_RX_PIN PD11
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
#define Z_SERIAL_TX_PIN PC6
#define Z_SERIAL_RX_PIN PC6
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
#define Z2_SERIAL_TX_PIN PC7
#define Z2_SERIAL_RX_PIN PC7
#define Z2_SERIAL_RX_PIN Z2_SERIAL_TX_PIN
#define E0_SERIAL_TX_PIN PF2
#define E0_SERIAL_RX_PIN PF2
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
#define E1_SERIAL_TX_PIN PE4
#define E1_SERIAL_RX_PIN PE4
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
#define E2_SERIAL_TX_PIN PE1
#define E2_SERIAL_RX_PIN PE1
#define E2_SERIAL_RX_PIN E2_SERIAL_TX_PIN
#define E3_SERIAL_TX_PIN PD3
#define E3_SERIAL_RX_PIN PD3
#define E3_SERIAL_RX_PIN E3_SERIAL_TX_PIN
// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200
@ -387,7 +384,7 @@
#define E4_CS_PIN EXP1_05_PIN
#if HAS_TMC_UART
#define E4_SERIAL_TX_PIN EXP1_05_PIN
#define E4_SERIAL_RX_PIN EXP1_05_PIN
#define E4_SERIAL_RX_PIN E4_SERIAL_TX_PIN
#endif
// M2 on Driver Expansion Module
@ -398,7 +395,7 @@
#define E5_CS_PIN EXP1_07_PIN
#if HAS_TMC_UART
#define E5_SERIAL_TX_PIN EXP1_07_PIN
#define E5_SERIAL_RX_PIN EXP1_07_PIN
#define E5_SERIAL_RX_PIN E5_SERIAL_TX_PIN
#endif
// M3 on Driver Expansion Module
@ -409,7 +406,7 @@
#define E6_CS_PIN EXP1_09_PIN
#if HAS_TMC_UART
#define E6_SERIAL_TX_PIN EXP1_09_PIN
#define E6_SERIAL_RX_PIN EXP1_09_PIN
#define E6_SERIAL_RX_PIN E6_SERIAL_TX_PIN
#endif
#endif // BTT_MOTOR_EXPANSION

View File

@ -204,26 +204,23 @@
//#define E3_HARDWARE_SERIAL Serial1
//#define E4_HARDWARE_SERIAL Serial1
//
// Software serial
//
#define X_SERIAL_TX_PIN PC13
#define X_SERIAL_RX_PIN PC13
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
#define Y_SERIAL_TX_PIN PE3
#define Y_SERIAL_RX_PIN PE3
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
#define Z_SERIAL_TX_PIN PE1
#define Z_SERIAL_RX_PIN PE1
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
#define E0_SERIAL_TX_PIN PD4
#define E0_SERIAL_RX_PIN PD4
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
#define E1_SERIAL_TX_PIN PD1
#define E1_SERIAL_RX_PIN PD1
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
#define E2_SERIAL_TX_PIN PD6
#define E2_SERIAL_RX_PIN PD6
#define E2_SERIAL_RX_PIN E2_SERIAL_TX_PIN
// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200

View File

@ -267,23 +267,20 @@
//#define E3_HARDWARE_SERIAL Serial1
//#define E4_HARDWARE_SERIAL Serial1
//
// Software serial
//
#define X_SERIAL_TX_PIN PE0
#define X_SERIAL_RX_PIN PE0
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
#define Y_SERIAL_TX_PIN PD3
#define Y_SERIAL_RX_PIN PD3
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
#define Z_SERIAL_TX_PIN PD0
#define Z_SERIAL_RX_PIN PD0
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
#define E0_SERIAL_TX_PIN PC6
#define E0_SERIAL_RX_PIN PC6
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
#define E1_SERIAL_TX_PIN PD12
#define E1_SERIAL_RX_PIN PD12
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200

View File

@ -234,32 +234,31 @@
#if HAS_TMC_UART
#define X_SERIAL_TX_PIN PG13
#define X_SERIAL_RX_PIN PG13
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
#define Y_SERIAL_TX_PIN PG10
#define Y_SERIAL_RX_PIN PG10
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
#define Z_SERIAL_TX_PIN PD5
#define Z_SERIAL_RX_PIN PD5
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
#define E0_SERIAL_TX_PIN PD1
#define E0_SERIAL_RX_PIN PD1
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
#define E1_SERIAL_TX_PIN PA14
#define E1_SERIAL_RX_PIN PA14
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
#define E2_SERIAL_TX_PIN PG6
#define E2_SERIAL_RX_PIN PG6
#define E2_SERIAL_RX_PIN E2_SERIAL_TX_PIN
#define E3_SERIAL_TX_PIN PG3
#define E3_SERIAL_RX_PIN PG3
#define E3_SERIAL_RX_PIN E3_SERIAL_TX_PIN
#define E4_SERIAL_TX_PIN PD10
#define E4_SERIAL_RX_PIN PD10
#define E4_SERIAL_RX_PIN E4_SERIAL_TX_PIN
#define E5_SERIAL_TX_PIN PB12
#define E5_SERIAL_RX_PIN PB12
#define E5_SERIAL_RX_PIN E5_SERIAL_TX_PIN
#endif
//

View File

@ -118,9 +118,6 @@
// TMC2208/TMC2209 stepper drivers
//
//
// Software serial
//
#ifndef X_SERIAL_TX_PIN
#define X_SERIAL_TX_PIN PE9
#endif

View File

@ -40,7 +40,6 @@
#if HAS_TMC_UART
#define X_SERIAL_TX_PIN PE8
#define Y_SERIAL_TX_PIN PC4
#define Y_SERIAL_RX_PIN PC4
#define Z_SERIAL_TX_PIN PD12
#define E0_SERIAL_TX_PIN PA15
#define E1_SERIAL_TX_PIN PC5

View File

@ -76,21 +76,28 @@
#if HAS_TMC_UART
#define X_SERIAL_TX_PIN PE7
#define X_SERIAL_RX_PIN PE7
#define Y_SERIAL_TX_PIN PE15
#define Y_SERIAL_RX_PIN PE15
#define Z_SERIAL_TX_PIN PD10
#define Z_SERIAL_RX_PIN PD10
#define E0_SERIAL_TX_PIN PD7
#define E0_SERIAL_RX_PIN PD7
#define E1_SERIAL_TX_PIN PC14
#define E1_SERIAL_RX_PIN PC14
#define E2_SERIAL_TX_PIN PC15
#define E2_SERIAL_RX_PIN PC15
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
#define X2_SERIAL_TX_PIN PA15
#define X2_SERIAL_RX_PIN PA15
#define X2_SERIAL_RX_PIN X2_SERIAL_TX_PIN
#define Y_SERIAL_TX_PIN PE15
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
#define Z_SERIAL_TX_PIN PD10
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
#define Z2_SERIAL_TX_PIN PD11
#define Z2_SERIAL_RX_PIN PD11
#define Z2_SERIAL_RX_PIN Z2_SERIAL_TX_PIN
#define E0_SERIAL_TX_PIN PD7
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
#define E1_SERIAL_TX_PIN PC14
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
#define E2_SERIAL_TX_PIN PC15
#define E2_SERIAL_RX_PIN E2_SERIAL_TX_PIN
#endif
//

View File

@ -118,37 +118,37 @@
#define X_SERIAL_TX_PIN PB2
#endif
#ifndef X_SERIAL_RX_PIN
#define X_SERIAL_RX_PIN PB2
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
#endif
#ifndef Y_SERIAL_TX_PIN
#define Y_SERIAL_TX_PIN PE2
#endif
#ifndef Y_SERIAL_RX_PIN
#define Y_SERIAL_RX_PIN PE2
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
#endif
#ifndef Z_SERIAL_TX_PIN
#define Z_SERIAL_TX_PIN PE3
#endif
#ifndef Z_SERIAL_RX_PIN
#define Z_SERIAL_RX_PIN PE3
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
#endif
#ifndef E0_SERIAL_TX_PIN
#define E0_SERIAL_TX_PIN PE4
#endif
#ifndef E0_SERIAL_RX_PIN
#define E0_SERIAL_RX_PIN PE4
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
#endif
#ifndef E1_SERIAL_TX_PIN
#define E1_SERIAL_TX_PIN PE1
#endif
#ifndef E1_SERIAL_RX_PIN
#define E1_SERIAL_RX_PIN PE1
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
#endif
#ifndef EX_SERIAL_TX_PIN
#define E2_SERIAL_TX_PIN PE0
#endif
#ifndef EX_SERIAL_RX_PIN
#define E2_SERIAL_RX_PIN PE0
#define E2_SERIAL_RX_PIN E2_SERIAL_TX_PIN
#endif
// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200

View File

@ -160,28 +160,28 @@
// No Hardware serial for steppers
//
#define X_SERIAL_TX_PIN PE6
#define X_SERIAL_RX_PIN PE6
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
#define Y_SERIAL_TX_PIN PE3
#define Y_SERIAL_RX_PIN PE3
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
#define Z_SERIAL_TX_PIN PB7
#define Z_SERIAL_RX_PIN PB7
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
#define E0_SERIAL_TX_PIN PB3
#define E0_SERIAL_RX_PIN PB3
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
#define E1_SERIAL_TX_PIN PD4
#define E1_SERIAL_RX_PIN PD4
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
#define E2_SERIAL_TX_PIN PD0
#define E2_SERIAL_RX_PIN PD0
#define E2_SERIAL_RX_PIN E2_SERIAL_TX_PIN
#define E3_SERIAL_TX_PIN PD15
#define E3_SERIAL_RX_PIN PD15
#define E3_SERIAL_RX_PIN E3_SERIAL_TX_PIN
#define E4_SERIAL_TX_PIN PD11
#define E4_SERIAL_RX_PIN PD11
#define E4_SERIAL_RX_PIN E4_SERIAL_TX_PIN
// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200

View File

@ -134,19 +134,19 @@
// No Hardware serial for steppers
//
#define X_SERIAL_TX_PIN PD5
#define X_SERIAL_RX_PIN PD5
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
#define Y_SERIAL_TX_PIN PD7
#define Y_SERIAL_RX_PIN PD7
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
#define Z_SERIAL_TX_PIN PD4
#define Z_SERIAL_RX_PIN PD4
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
#define E0_SERIAL_TX_PIN PD9
#define E0_SERIAL_RX_PIN PD9
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
#define E1_SERIAL_TX_PIN PD8
#define E1_SERIAL_RX_PIN PD8
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200

View File

@ -147,24 +147,20 @@
//#define E3_HARDWARE_SERIAL Serial1
//#define E4_HARDWARE_SERIAL Serial1
//
// Software serial
//
#define X_SERIAL_TX_PIN PD5
#define X_SERIAL_RX_PIN PD5
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
#define Y_SERIAL_TX_PIN PD7
#define Y_SERIAL_RX_PIN PD7
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
#define Z_SERIAL_TX_PIN PD4
#define Z_SERIAL_RX_PIN PD4
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
#define E0_SERIAL_TX_PIN PD9
#define E0_SERIAL_RX_PIN PD9
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
#define E1_SERIAL_TX_PIN PD8
#define E1_SERIAL_RX_PIN PD8
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200

View File

@ -67,9 +67,6 @@
//#define E3_HARDWARE_SERIAL Serial1
//#define E4_HARDWARE_SERIAL Serial1
//
// Software serial
//
#define X_SERIAL_TX_PIN PA3
#define X_SERIAL_RX_PIN PC14

View File

@ -130,16 +130,16 @@
#if HAS_TMC_UART
#define X_SERIAL_TX_PIN PB9
#define X_SERIAL_RX_PIN PB9
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
#define Y_SERIAL_TX_PIN PE3
#define Y_SERIAL_RX_PIN PE3
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
#define Z_SERIAL_TX_PIN PE12
#define Z_SERIAL_RX_PIN PE12
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
#define E_SERIAL_TX_PIN PG9
#define E_SERIAL_RX_PIN PG9
#define E0_SERIAL_TX_PIN PG9
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
#endif
//

View File

@ -131,23 +131,20 @@
//#define E6_HARDWARE_SERIAL Serial1
//#define E7_HARDWARE_SERIAL Serial1
//
// Software serial
//
#define X_SERIAL_TX_PIN PG10
#define X_SERIAL_RX_PIN PG10
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
#define Y_SERIAL_TX_PIN PD4
#define Y_SERIAL_RX_PIN PD4
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
#define Z_SERIAL_TX_PIN PD5
#define Z_SERIAL_RX_PIN PD5
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
#define E0_SERIAL_TX_PIN PI8
#define E0_SERIAL_RX_PIN PI8
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
#define E1_SERIAL_TX_PIN PC8
#define E1_SERIAL_RX_PIN PC8
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200