ソースを参照

Move core conditionals earlier

Scott Lahteine 4年前
コミット
d8a3b9eb3a
2個のファイルの変更49行の追加47行の削除
  1. 49
    10
      Marlin/src/inc/Conditionals_LCD.h
  2. 0
    37
      Marlin/src/inc/Conditionals_post.h

+ 49
- 10
Marlin/src/inc/Conditionals_LCD.h ファイルの表示

@@ -26,16 +26,6 @@
26 26
  * Conditionals that need to be set before Configuration_adv.h or pins.h
27 27
  */
28 28
 
29
-// Kinematics
30
-#if ENABLED(MORGAN_SCARA)
31
-  #define IS_SCARA 1
32
-  #define IS_KINEMATIC 1
33
-#elif ENABLED(DELTA)
34
-  #define IS_KINEMATIC 1
35
-#else
36
-  #define IS_CARTESIAN 1
37
-#endif
38
-
39 29
 // MKS_LCD12864 is a variant of MKS_MINI_12864
40 30
 #if ENABLED(MKS_LCD12864)
41 31
   #define MKS_MINI_12864
@@ -888,6 +878,55 @@
888 878
   #define BOOT_MARLIN_LOGO_SMALL
889 879
 #endif
890 880
 
881
+/**
882
+ * CoreXY, CoreXZ, and CoreYZ - and their reverse
883
+ */
884
+#if EITHER(COREXY, COREYX)
885
+  #define CORE_IS_XY 1
886
+#endif
887
+#if EITHER(COREXZ, COREZX)
888
+  #define CORE_IS_XZ 1
889
+#endif
890
+#if EITHER(COREYZ, COREZY)
891
+  #define CORE_IS_YZ 1
892
+#endif
893
+#if CORE_IS_XY || CORE_IS_XZ || CORE_IS_YZ
894
+  #define IS_CORE 1
895
+#endif
896
+#if IS_CORE
897
+  #if CORE_IS_XY
898
+    #define CORE_AXIS_1 A_AXIS
899
+    #define CORE_AXIS_2 B_AXIS
900
+    #define NORMAL_AXIS Z_AXIS
901
+  #elif CORE_IS_XZ
902
+    #define CORE_AXIS_1 A_AXIS
903
+    #define NORMAL_AXIS Y_AXIS
904
+    #define CORE_AXIS_2 C_AXIS
905
+  #elif CORE_IS_YZ
906
+    #define NORMAL_AXIS X_AXIS
907
+    #define CORE_AXIS_1 B_AXIS
908
+    #define CORE_AXIS_2 C_AXIS
909
+  #endif
910
+  #define CORESIGN(n) (ANY(COREYX, COREZX, COREZY) ? (-(n)) : (n))
911
+#elif ENABLED(MARKFORGED_XY)
912
+  // Markforged kinematics
913
+  #define CORE_AXIS_1 A_AXIS
914
+  #define CORE_AXIS_2 B_AXIS
915
+  #define NORMAL_AXIS Z_AXIS
916
+#endif
917
+
918
+#if ENABLED(MORGAN_SCARA)
919
+  #define IS_SCARA 1
920
+  #define IS_KINEMATIC 1
921
+#elif ENABLED(DELTA)
922
+  #define IS_KINEMATIC 1
923
+#else
924
+  #define IS_CARTESIAN 1
925
+  #if !IS_CORE
926
+    #define IS_FULL_CARTESIAN 1
927
+  #endif
928
+#endif
929
+
891 930
 // This flag indicates some kind of jerk storage is needed
892 931
 #if EITHER(CLASSIC_JERK, IS_KINEMATIC)
893 932
   #define HAS_CLASSIC_JERK 1

+ 0
- 37
Marlin/src/inc/Conditionals_post.h ファイルの表示

@@ -120,43 +120,6 @@
120 120
   #endif
121 121
 #endif
122 122
 
123
-/**
124
- * CoreXY, CoreXZ, and CoreYZ - and their reverse
125
- */
126
-#if EITHER(COREXY, COREYX)
127
-  #define CORE_IS_XY 1
128
-#endif
129
-#if EITHER(COREXZ, COREZX)
130
-  #define CORE_IS_XZ 1
131
-#endif
132
-#if EITHER(COREYZ, COREZY)
133
-  #define CORE_IS_YZ 1
134
-#endif
135
-#if CORE_IS_XY || CORE_IS_XZ || CORE_IS_YZ
136
-  #define IS_CORE 1
137
-#endif
138
-#if IS_CORE
139
-  #if CORE_IS_XY
140
-    #define CORE_AXIS_1 A_AXIS
141
-    #define CORE_AXIS_2 B_AXIS
142
-    #define NORMAL_AXIS Z_AXIS
143
-  #elif CORE_IS_XZ
144
-    #define CORE_AXIS_1 A_AXIS
145
-    #define NORMAL_AXIS Y_AXIS
146
-    #define CORE_AXIS_2 C_AXIS
147
-  #elif CORE_IS_YZ
148
-    #define NORMAL_AXIS X_AXIS
149
-    #define CORE_AXIS_1 B_AXIS
150
-    #define CORE_AXIS_2 C_AXIS
151
-  #endif
152
-  #define CORESIGN(n) (ANY(COREYX, COREZX, COREZY) ? (-(n)) : (n))
153
-#elif ENABLED(MARKFORGED_XY)
154
-  // Markforged kinematics
155
-  #define CORE_AXIS_1 A_AXIS
156
-  #define CORE_AXIS_2 B_AXIS
157
-  #define NORMAL_AXIS Z_AXIS
158
-#endif
159
-
160 123
 // Calibration codes only for non-core axes
161 124
 #if EITHER(BACKLASH_GCODE, CALIBRATION_GCODE)
162 125
   #if EITHER(IS_CORE, MARKFORGED_XY)

読み込み中…
キャンセル
保存