|
@@ -260,18 +260,63 @@
|
260
|
260
|
#ifndef Z_MS2_PIN
|
261
|
261
|
#define Z_MS2_PIN -1
|
262
|
262
|
#endif
|
|
263
|
+#ifndef E0_STEP_PIN
|
|
264
|
+ #define E0_STEP_PIN -1
|
|
265
|
+#endif
|
|
266
|
+#ifndef E0_DIR_PIN
|
|
267
|
+ #define E0_DIR_PIN -1
|
|
268
|
+#endif
|
|
269
|
+#ifndef E0_ENABLE_PIN
|
|
270
|
+ #define E0_ENABLE_PIN -1
|
|
271
|
+#endif
|
263
|
272
|
#ifndef E0_MS1_PIN
|
264
|
273
|
#define E0_MS1_PIN -1
|
265
|
274
|
#endif
|
266
|
275
|
#ifndef E0_MS2_PIN
|
267
|
276
|
#define E0_MS2_PIN -1
|
268
|
277
|
#endif
|
|
278
|
+#ifndef E1_STEP_PIN
|
|
279
|
+ #define E1_STEP_PIN -1
|
|
280
|
+#endif
|
|
281
|
+#ifndef E1_DIR_PIN
|
|
282
|
+ #define E1_DIR_PIN -1
|
|
283
|
+#endif
|
|
284
|
+#ifndef E1_ENABLE_PIN
|
|
285
|
+ #define E1_ENABLE_PIN -1
|
|
286
|
+#endif
|
269
|
287
|
#ifndef E1_MS1_PIN
|
270
|
288
|
#define E1_MS1_PIN -1
|
271
|
289
|
#endif
|
272
|
290
|
#ifndef E1_MS2_PIN
|
273
|
291
|
#define E1_MS2_PIN -1
|
274
|
292
|
#endif
|
|
293
|
+#ifndef E2_STEP_PIN
|
|
294
|
+ #define E2_STEP_PIN -1
|
|
295
|
+#endif
|
|
296
|
+#ifndef E2_DIR_PIN
|
|
297
|
+ #define E2_DIR_PIN -1
|
|
298
|
+#endif
|
|
299
|
+#ifndef E2_ENABLE_PIN
|
|
300
|
+ #define E2_ENABLE_PIN -1
|
|
301
|
+#endif
|
|
302
|
+#ifndef E3_STEP_PIN
|
|
303
|
+ #define E3_STEP_PIN -1
|
|
304
|
+#endif
|
|
305
|
+#ifndef E3_DIR_PIN
|
|
306
|
+ #define E3_DIR_PIN -1
|
|
307
|
+#endif
|
|
308
|
+#ifndef E3_ENABLE_PIN
|
|
309
|
+ #define E3_ENABLE_PIN -1
|
|
310
|
+#endif
|
|
311
|
+#ifndef E4_STEP_PIN
|
|
312
|
+ #define E4_STEP_PIN -1
|
|
313
|
+#endif
|
|
314
|
+#ifndef E4_DIR_PIN
|
|
315
|
+ #define E4_DIR_PIN -1
|
|
316
|
+#endif
|
|
317
|
+#ifndef E4_ENABLE_PIN
|
|
318
|
+ #define E4_ENABLE_PIN -1
|
|
319
|
+#endif
|
275
|
320
|
|
276
|
321
|
#ifndef FAN_PIN
|
277
|
322
|
#define FAN_PIN -1
|
|
@@ -557,7 +602,7 @@
|
557
|
602
|
#define X2_STEP_PIN _EPIN(E_STEPPERS, STEP)
|
558
|
603
|
#define X2_DIR_PIN _EPIN(E_STEPPERS, DIR)
|
559
|
604
|
#define X2_ENABLE_PIN _EPIN(E_STEPPERS, ENABLE)
|
560
|
|
- #if X2_ENABLE_PIN == 0
|
|
605
|
+ #if E_STEPPERS > 4 || !PIN_EXISTS(X2_ENABLE)
|
561
|
606
|
#error "No E stepper plug left for X2!"
|
562
|
607
|
#endif
|
563
|
608
|
#endif
|
|
@@ -574,7 +619,7 @@
|
574
|
619
|
#define Y2_STEP_PIN _EPIN(Y2_E_INDEX, STEP)
|
575
|
620
|
#define Y2_DIR_PIN _EPIN(Y2_E_INDEX, DIR)
|
576
|
621
|
#define Y2_ENABLE_PIN _EPIN(Y2_E_INDEX, ENABLE)
|
577
|
|
- #if Y2_ENABLE_PIN == 0
|
|
622
|
+ #if Y2_E_INDEX > 4 || !PIN_EXISTS(Y2_ENABLE)
|
578
|
623
|
#error "No E stepper plug left for Y2!"
|
579
|
624
|
#endif
|
580
|
625
|
#endif
|
|
@@ -591,7 +636,7 @@
|
591
|
636
|
#define Z2_STEP_PIN _EPIN(Z2_E_INDEX, STEP)
|
592
|
637
|
#define Z2_DIR_PIN _EPIN(Z2_E_INDEX, DIR)
|
593
|
638
|
#define Z2_ENABLE_PIN _EPIN(Z2_E_INDEX, ENABLE)
|
594
|
|
- #if Z2_ENABLE_PIN == 0
|
|
639
|
+ #if Z2_E_INDEX > 4 || !PIN_EXISTS(Z2_ENABLE)
|
595
|
640
|
#error "No E stepper plug left for Z2!"
|
596
|
641
|
#endif
|
597
|
642
|
#endif
|