|
@@ -755,19 +755,7 @@
|
755
|
755
|
#define GRID_LOOP(A,B) LOOP_L_N(A, GRID_MAX_POINTS_X) LOOP_L_N(B, GRID_MAX_POINTS_Y)
|
756
|
756
|
#endif
|
757
|
757
|
|
758
|
|
-#ifndef INVERT_X_DIR
|
759
|
|
- #define INVERT_X_DIR false
|
760
|
|
-#endif
|
761
|
|
-#ifndef INVERT_Y_DIR
|
762
|
|
- #define INVERT_Y_DIR false
|
763
|
|
-#endif
|
764
|
|
-#ifndef INVERT_Z_DIR
|
765
|
|
- #define INVERT_Z_DIR false
|
766
|
|
-#endif
|
767
|
|
-#ifndef INVERT_E_DIR
|
768
|
|
- #define INVERT_E_DIR false
|
769
|
|
-#endif
|
770
|
|
-
|
|
758
|
+// Slim menu optimizations
|
771
|
759
|
#if ENABLED(SLIM_LCD_MENUS)
|
772
|
760
|
#define BOOT_MARLIN_LOGO_SMALL
|
773
|
761
|
#endif
|
|
@@ -786,14 +774,105 @@
|
786
|
774
|
#define HAS_CLASSIC_E_JERK 1
|
787
|
775
|
#endif
|
788
|
776
|
|
789
|
|
-#ifndef SPI_SPEED
|
790
|
|
- #define SPI_SPEED SPI_FULL_SPEED
|
791
|
|
-#endif
|
792
|
|
-
|
793
|
777
|
#if SERIAL_PORT == -1 || SERIAL_PORT_2 == -1
|
794
|
778
|
#define HAS_USB_SERIAL 1
|
795
|
779
|
#endif
|
796
|
780
|
|
|
781
|
+// Fallback Stepper Driver types
|
|
782
|
+#ifndef X_DRIVER_TYPE
|
|
783
|
+ #define X_DRIVER_TYPE A4988
|
|
784
|
+#endif
|
|
785
|
+#ifndef Y_DRIVER_TYPE
|
|
786
|
+ #define Y_DRIVER_TYPE A4988
|
|
787
|
+#endif
|
|
788
|
+#ifndef Z_DRIVER_TYPE
|
|
789
|
+ #define Z_DRIVER_TYPE A4988
|
|
790
|
+#endif
|
|
791
|
+#if NONE(DUAL_X_CARRIAGE, X_DUAL_STEPPER_DRIVERS)
|
|
792
|
+ #undef X2_DRIVER_TYPE
|
|
793
|
+#elif !defined(X2_DRIVER_TYPE)
|
|
794
|
+ #define X2_DRIVER_TYPE A4988
|
|
795
|
+#endif
|
|
796
|
+#if DISABLED(Y_DUAL_STEPPER_DRIVERS)
|
|
797
|
+ #undef Y2_DRIVER_TYPE
|
|
798
|
+#elif !defined(Y2_DRIVER_TYPE)
|
|
799
|
+ #define Y2_DRIVER_TYPE A4988
|
|
800
|
+#endif
|
|
801
|
+#if NUM_Z_STEPPER_DRIVERS < 2
|
|
802
|
+ #undef Z2_DRIVER_TYPE
|
|
803
|
+#elif !defined(Z2_DRIVER_TYPE)
|
|
804
|
+ #define Z2_DRIVER_TYPE A4988
|
|
805
|
+#endif
|
|
806
|
+#if NUM_Z_STEPPER_DRIVERS < 3
|
|
807
|
+ #undef Z3_DRIVER_TYPE
|
|
808
|
+#elif !defined(Z3_DRIVER_TYPE)
|
|
809
|
+ #define Z3_DRIVER_TYPE A4988
|
|
810
|
+#endif
|
|
811
|
+#if NUM_Z_STEPPER_DRIVERS < 4
|
|
812
|
+ #undef Z4_DRIVER_TYPE
|
|
813
|
+#elif !defined(Z4_DRIVER_TYPE)
|
|
814
|
+ #define Z4_DRIVER_TYPE A4988
|
|
815
|
+#endif
|
|
816
|
+#if E_STEPPERS < 1
|
|
817
|
+ #undef E0_DRIVER_TYPE
|
|
818
|
+#elif !defined(E0_DRIVER_TYPE)
|
|
819
|
+ #define E0_DRIVER_TYPE A4988
|
|
820
|
+#endif
|
|
821
|
+#if E_STEPPERS < 2
|
|
822
|
+ #undef E1_DRIVER_TYPE
|
|
823
|
+#elif !defined(E1_DRIVER_TYPE)
|
|
824
|
+ #define E1_DRIVER_TYPE A4988
|
|
825
|
+#endif
|
|
826
|
+#if E_STEPPERS < 3
|
|
827
|
+ #undef E2_DRIVER_TYPE
|
|
828
|
+#elif !defined(E2_DRIVER_TYPE)
|
|
829
|
+ #define E2_DRIVER_TYPE A4988
|
|
830
|
+#endif
|
|
831
|
+#if E_STEPPERS < 4
|
|
832
|
+ #undef E3_DRIVER_TYPE
|
|
833
|
+#elif !defined(E3_DRIVER_TYPE)
|
|
834
|
+ #define E3_DRIVER_TYPE A4988
|
|
835
|
+#endif
|
|
836
|
+#if E_STEPPERS < 5
|
|
837
|
+ #undef E4_DRIVER_TYPE
|
|
838
|
+#elif !defined(E4_DRIVER_TYPE)
|
|
839
|
+ #define E4_DRIVER_TYPE A4988
|
|
840
|
+#endif
|
|
841
|
+#if E_STEPPERS < 6
|
|
842
|
+ #undef E5_DRIVER_TYPE
|
|
843
|
+#elif !defined(E5_DRIVER_TYPE)
|
|
844
|
+ #define E5_DRIVER_TYPE A4988
|
|
845
|
+#endif
|
|
846
|
+#if E_STEPPERS < 7
|
|
847
|
+ #undef E6_DRIVER_TYPE
|
|
848
|
+#elif !defined(E6_DRIVER_TYPE)
|
|
849
|
+ #define E6_DRIVER_TYPE A4988
|
|
850
|
+#endif
|
|
851
|
+#if E_STEPPERS < 8
|
|
852
|
+ #undef E7_DRIVER_TYPE
|
|
853
|
+#elif !defined(E7_DRIVER_TYPE)
|
|
854
|
+ #define E7_DRIVER_TYPE A4988
|
|
855
|
+#endif
|
|
856
|
+
|
|
857
|
+// Fallback axis inverting
|
|
858
|
+#ifndef INVERT_X_DIR
|
|
859
|
+ #define INVERT_X_DIR false
|
|
860
|
+#endif
|
|
861
|
+#ifndef INVERT_Y_DIR
|
|
862
|
+ #define INVERT_Y_DIR false
|
|
863
|
+#endif
|
|
864
|
+#ifndef INVERT_Z_DIR
|
|
865
|
+ #define INVERT_Z_DIR false
|
|
866
|
+#endif
|
|
867
|
+#ifndef INVERT_E_DIR
|
|
868
|
+ #define INVERT_E_DIR false
|
|
869
|
+#endif
|
|
870
|
+
|
|
871
|
+// Fallback SPI Speed
|
|
872
|
+#ifndef SPI_SPEED
|
|
873
|
+ #define SPI_SPEED SPI_FULL_SPEED
|
|
874
|
+#endif
|
|
875
|
+
|
797
|
876
|
/**
|
798
|
877
|
* This setting is also used by M109 when trying to calculate
|
799
|
878
|
* a ballpark safe margin to prevent wait-forever situation.
|