Browse Source

Set up DIAG endstops for BTT SKR 1.4 / 1.4 Turbo (#16727)

Robert Stein 5 years ago
parent
commit
2822c0890a
No account linked to committer's email address
1 changed files with 48 additions and 7 deletions
  1. 48
    7
      Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_4.h

+ 48
- 7
Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_4.h View File

38
 #define SERVO0_PIN         P2_00
38
 #define SERVO0_PIN         P2_00
39
 
39
 
40
 //
40
 //
41
+// TMC StallGuard DIAG pins
42
+//
43
+#define X_DIAG_PIN         P1_29   // X-STOP
44
+#define Y_DIAG_PIN         P1_28   // Y-STOP
45
+#define Z_DIAG_PIN         P1_27   // Z-STOP
46
+#define E0_DIAG_PIN        P1_26   // E0DET
47
+#define E1_DIAG_PIN        P1_25   // E1DET
48
+
49
+//
41
 // Limit Switches
50
 // Limit Switches
42
 //
51
 //
43
-#define X_STOP_PIN         P1_29
44
-#define Y_STOP_PIN         P1_28
45
-#define Z_STOP_PIN         P1_27
52
+#if X_STALL_SENSITIVITY
53
+  #if X_HOME_DIR < 0
54
+    #define X_MIN_PIN      X_DIAG_PIN
55
+    #define X_MAX_PIN      P1_26   // E0DET
56
+  #else
57
+    #define X_MAX_PIN      X_DIAG_PIN
58
+    #define X_MIN_PIN      P1_26   // E0DET
59
+  #endif
60
+#else
61
+  #define X_STOP_PIN       P1_29   // X-STOP
62
+#endif
63
+
64
+#if Y_STALL_SENSITIVITY
65
+  #if Y_HOME_DIR < 0
66
+    #define Y_MIN_PIN      Y_DIAG_PIN
67
+    #define Y_MAX_PIN      P1_25   // E1DET
68
+  #else
69
+    #define Y_MAX_PIN      Y_DIAG_PIN
70
+    #define Y_MIN_PIN      P1_25   // E1DET
71
+  #endif
72
+#else
73
+  #define Y_STOP_PIN       P1_28   // Y-STOP
74
+#endif
75
+
76
+#if Z_STALL_SENSITIVITY
77
+  #if Z_HOME_DIR < 0
78
+    #define Z_MIN_PIN      Z_DIAG_PIN
79
+    #define Z_MAX_PIN      P1_24   // PWRDET
80
+  #else
81
+    #define Z_MAX_PIN      Z_DIAG_PIN
82
+    #define Z_MIN_PIN      P1_24   // PWRDET
83
+  #endif
84
+#else
85
+  #define Z_STOP_PIN       P1_27   // Z-STOP
86
+#endif
46
 
87
 
47
 //
88
 //
48
 // Z Probe (when not Z_MIN_PIN)
89
 // Z Probe (when not Z_MIN_PIN)
54
 //
95
 //
55
 // Filament Runout Sensor
96
 // Filament Runout Sensor
56
 //
97
 //
57
-#define FIL_RUNOUT_PIN     P1_26
58
-#define FIL_RUNOUT2_PIN    P1_25
98
+#define FIL_RUNOUT_PIN     P1_26   // E0DET
99
+#define FIL_RUNOUT2_PIN    P1_25   // E1DET
59
 
100
 
60
 //
101
 //
61
 // Power Supply Control
102
 // Power Supply Control
62
 //
103
 //
63
 #ifndef PS_ON_PIN
104
 #ifndef PS_ON_PIN
64
-  #define PS_ON_PIN        P1_00
105
+  #define PS_ON_PIN        P1_00   // PWRDET
65
 #endif
106
 #endif
66
 
107
 
67
 //
108
 //
68
 // Power Loss Detection
109
 // Power Loss Detection
69
 //
110
 //
70
 #ifndef POWER_LOSS_PIN
111
 #ifndef POWER_LOSS_PIN
71
-  #define POWER_LOSS_PIN   P1_00
112
+  #define POWER_LOSS_PIN   P1_00   // PWRDET
72
 #endif
113
 #endif
73
 
114
 
74
 //
115
 //

Loading…
Cancel
Save