|
@@ -329,18 +329,63 @@
|
329
|
329
|
#ifndef Z_MS2_PIN
|
330
|
330
|
#define Z_MS2_PIN -1
|
331
|
331
|
#endif
|
|
332
|
+#ifndef E0_STEP_PIN
|
|
333
|
+ #define E0_STEP_PIN -1
|
|
334
|
+#endif
|
|
335
|
+#ifndef E0_DIR_PIN
|
|
336
|
+ #define E0_DIR_PIN -1
|
|
337
|
+#endif
|
|
338
|
+#ifndef E0_ENABLE_PIN
|
|
339
|
+ #define E0_ENABLE_PIN -1
|
|
340
|
+#endif
|
332
|
341
|
#ifndef E0_MS1_PIN
|
333
|
342
|
#define E0_MS1_PIN -1
|
334
|
343
|
#endif
|
335
|
344
|
#ifndef E0_MS2_PIN
|
336
|
345
|
#define E0_MS2_PIN -1
|
337
|
346
|
#endif
|
|
347
|
+#ifndef E1_STEP_PIN
|
|
348
|
+ #define E1_STEP_PIN -1
|
|
349
|
+#endif
|
|
350
|
+#ifndef E1_DIR_PIN
|
|
351
|
+ #define E1_DIR_PIN -1
|
|
352
|
+#endif
|
|
353
|
+#ifndef E1_ENABLE_PIN
|
|
354
|
+ #define E1_ENABLE_PIN -1
|
|
355
|
+#endif
|
338
|
356
|
#ifndef E1_MS1_PIN
|
339
|
357
|
#define E1_MS1_PIN -1
|
340
|
358
|
#endif
|
341
|
359
|
#ifndef E1_MS2_PIN
|
342
|
360
|
#define E1_MS2_PIN -1
|
343
|
361
|
#endif
|
|
362
|
+#ifndef E2_STEP_PIN
|
|
363
|
+ #define E2_STEP_PIN -1
|
|
364
|
+#endif
|
|
365
|
+#ifndef E2_DIR_PIN
|
|
366
|
+ #define E2_DIR_PIN -1
|
|
367
|
+#endif
|
|
368
|
+#ifndef E2_ENABLE_PIN
|
|
369
|
+ #define E2_ENABLE_PIN -1
|
|
370
|
+#endif
|
|
371
|
+#ifndef E3_STEP_PIN
|
|
372
|
+ #define E3_STEP_PIN -1
|
|
373
|
+#endif
|
|
374
|
+#ifndef E3_DIR_PIN
|
|
375
|
+ #define E3_DIR_PIN -1
|
|
376
|
+#endif
|
|
377
|
+#ifndef E3_ENABLE_PIN
|
|
378
|
+ #define E3_ENABLE_PIN -1
|
|
379
|
+#endif
|
|
380
|
+#ifndef E4_STEP_PIN
|
|
381
|
+ #define E4_STEP_PIN -1
|
|
382
|
+#endif
|
|
383
|
+#ifndef E4_DIR_PIN
|
|
384
|
+ #define E4_DIR_PIN -1
|
|
385
|
+#endif
|
|
386
|
+#ifndef E4_ENABLE_PIN
|
|
387
|
+ #define E4_ENABLE_PIN -1
|
|
388
|
+#endif
|
344
|
389
|
|
345
|
390
|
#ifndef FAN_PIN
|
346
|
391
|
#define FAN_PIN -1
|
|
@@ -623,7 +668,7 @@
|
623
|
668
|
#define X2_STEP_PIN _EPIN(E_STEPPERS, STEP)
|
624
|
669
|
#define X2_DIR_PIN _EPIN(E_STEPPERS, DIR)
|
625
|
670
|
#define X2_ENABLE_PIN _EPIN(E_STEPPERS, ENABLE)
|
626
|
|
- #if X2_ENABLE_PIN == 0
|
|
671
|
+ #if E_STEPPERS > 4 || !PIN_EXISTS(X2_ENABLE)
|
627
|
672
|
#error "No E stepper plug left for X2!"
|
628
|
673
|
#endif
|
629
|
674
|
#endif
|
|
@@ -640,7 +685,7 @@
|
640
|
685
|
#define Y2_STEP_PIN _EPIN(Y2_E_INDEX, STEP)
|
641
|
686
|
#define Y2_DIR_PIN _EPIN(Y2_E_INDEX, DIR)
|
642
|
687
|
#define Y2_ENABLE_PIN _EPIN(Y2_E_INDEX, ENABLE)
|
643
|
|
- #if Y2_ENABLE_PIN == 0
|
|
688
|
+ #if Y2_E_INDEX > 4 || !PIN_EXISTS(Y2_ENABLE)
|
644
|
689
|
#error "No E stepper plug left for Y2!"
|
645
|
690
|
#endif
|
646
|
691
|
#endif
|
|
@@ -657,7 +702,7 @@
|
657
|
702
|
#define Z2_STEP_PIN _EPIN(Z2_E_INDEX, STEP)
|
658
|
703
|
#define Z2_DIR_PIN _EPIN(Z2_E_INDEX, DIR)
|
659
|
704
|
#define Z2_ENABLE_PIN _EPIN(Z2_E_INDEX, ENABLE)
|
660
|
|
- #if Z2_ENABLE_PIN == 0
|
|
705
|
+ #if Z2_E_INDEX > 4 || !PIN_EXISTS(Z2_ENABLE)
|
661
|
706
|
#error "No E stepper plug left for Z2!"
|
662
|
707
|
#endif
|
663
|
708
|
#endif
|