|
@@ -23,6 +23,10 @@
|
23
|
23
|
|
24
|
24
|
/**
|
25
|
25
|
* MKS SGen pin assignments
|
|
26
|
+ *
|
|
27
|
+ * The pins diagram can be found and the following URL:
|
|
28
|
+ * https://github.com/makerbase-mks/MKS-SGen/blob/master/Hardware/MKS%20SGEN%20V1.0_001/MKS%20SGEN%20V1.0_001%20PIN.pdf
|
|
29
|
+ *
|
26
|
30
|
*/
|
27
|
31
|
|
28
|
32
|
#ifndef MCU_LPC1769
|
|
@@ -35,33 +39,21 @@
|
35
|
39
|
#define MKS_HAS_LPC1769
|
36
|
40
|
#include "../lpc1768/pins_MKS_SBASE.h"
|
37
|
41
|
|
38
|
|
-#undef E1_STEP_PIN
|
39
|
|
-#undef E1_DIR_PIN
|
40
|
|
-#undef E1_ENABLE_PIN
|
41
|
|
-
|
42
|
|
-//#undef BTN_EN1
|
43
|
|
-//#undef BTN_EN2
|
44
|
|
-//#define BTN_EN1 P1_23 // EXP2.5
|
45
|
|
-//#define BTN_EN2 P1_22 // EXP2.3
|
46
|
|
-
|
47
|
42
|
#if HAS_TMC_UART
|
48
|
43
|
/**
|
49
|
44
|
* TMC2208/TMC2209 stepper drivers
|
50
|
|
- *
|
51
|
|
- * The shortage of pins becomes apparent.
|
52
|
|
- * In the worst case you may have to give up the LCD.
|
53
|
|
- * RX pins must be interrupt-capable.
|
54
|
45
|
*/
|
55
|
|
- #define X_SERIAL_TX_PIN P4_29 // J8-2
|
56
|
|
- #define X_SERIAL_RX_PIN P4_29 // J8-2
|
57
|
|
-
|
58
|
|
- #define Y_SERIAL_TX_PIN P2_08 // J8-3
|
59
|
|
- #define Y_SERIAL_RX_PIN P2_08 // J8-3
|
60
|
46
|
|
61
|
|
- #define Z_SERIAL_TX_PIN P2_11 // J8-4
|
62
|
|
- #define Z_SERIAL_RX_PIN P2_11 // J8-4
|
63
|
|
- #define E0_SERIAL_TX_PIN P2_13 // J8-5
|
64
|
|
- #define E0_SERIAL_RX_PIN P2_13 // J8-5
|
|
47
|
+ #define X_SERIAL_TX_PIN P1_22 // J8-2
|
|
48
|
+ #define X_SERIAL_RX_PIN P1_22 // J8-2
|
|
49
|
+ #define Y_SERIAL_TX_PIN P1_23 // J8-3
|
|
50
|
+ #define Y_SERIAL_RX_PIN P1_23 // J8-3
|
|
51
|
+ #define Z_SERIAL_TX_PIN P2_12 // J8-4
|
|
52
|
+ #define Z_SERIAL_RX_PIN P2_12 // J8-4
|
|
53
|
+ #define E0_SERIAL_TX_PIN P2_11 // J8-5
|
|
54
|
+ #define E0_SERIAL_RX_PIN P2_11 // J8-5
|
|
55
|
+ #define E1_SERIAL_TX_PIN P4_28 // J8-6
|
|
56
|
+ #define E1_SERIAL_RX_PIN P4_28 // J8-6
|
65
|
57
|
|
66
|
58
|
// Reduce baud rate to improve software serial reliability
|
67
|
59
|
#define TMC_BAUD_RATE 19200
|