Browse Source

Lerdge-K TMC 2208/9 UART pins (#21299)

Evgeny Z 4 years ago
parent
commit
f671e6d138
No account linked to committer's email address
1 changed files with 44 additions and 0 deletions
  1. 44
    0
      Marlin/src/pins/stm32f4/pins_LERDGE_K.h

+ 44
- 0
Marlin/src/pins/stm32f4/pins_LERDGE_K.h View File

@@ -96,6 +96,50 @@
96 96
 //  #define E1_CS_PIN                       PE4
97 97
 //#endif
98 98
 
99
+#if HAS_TMC_UART
100
+  /**
101
+   * TMC2208/TMC2209 stepper drivers
102
+   */
103
+  #ifndef X_SERIAL_TX_PIN
104
+    #define X_SERIAL_TX_PIN                 PB2
105
+  #endif
106
+  #ifndef X_SERIAL_RX_PIN
107
+    #define X_SERIAL_RX_PIN                 PB2
108
+  #endif
109
+  #ifndef Y_SERIAL_TX_PIN
110
+    #define Y_SERIAL_TX_PIN                 PE2
111
+  #endif
112
+  #ifndef Y_SERIAL_RX_PIN
113
+    #define Y_SERIAL_RX_PIN                 PE2
114
+  #endif
115
+  #ifndef Z_SERIAL_TX_PIN
116
+    #define Z_SERIAL_TX_PIN                 PE3
117
+  #endif
118
+  #ifndef Z_SERIAL_RX_PIN
119
+    #define Z_SERIAL_RX_PIN                 PE3
120
+  #endif
121
+  #ifndef E0_SERIAL_TX_PIN
122
+    #define E0_SERIAL_TX_PIN                PE4
123
+  #endif
124
+  #ifndef E0_SERIAL_RX_PIN
125
+    #define E0_SERIAL_RX_PIN                PE4
126
+  #endif
127
+  #ifndef E1_SERIAL_TX_PIN
128
+    #define E1_SERIAL_TX_PIN                PE1
129
+  #endif
130
+  #ifndef E1_SERIAL_RX_PIN
131
+    #define E1_SERIAL_RX_PIN                PE1
132
+  #endif
133
+  #ifndef EX_SERIAL_TX_PIN
134
+    #define E2_SERIAL_TX_PIN                PE0
135
+  #endif
136
+  #ifndef EX_SERIAL_RX_PIN
137
+    #define E2_SERIAL_RX_PIN                PE0
138
+  #endif
139
+  // Reduce baud rate to improve software serial reliability
140
+  #define TMC_BAUD_RATE                    19200
141
+#endif
142
+
99 143
 //
100 144
 // Temperature Sensors
101 145
 //

Loading…
Cancel
Save