|
@@ -2103,105 +2103,28 @@ static_assert(hbm[Z_AXIS] >= 0, "HOMING_BUMP_MM.Z must be greater than or equal
|
2103
|
2103
|
|
2104
|
2104
|
// Dual/multiple endstops requirements
|
2105
|
2105
|
#if ENABLED(X_DUAL_ENDSTOPS)
|
2106
|
|
- #if !X2_USE_ENDSTOP
|
2107
|
|
- #error "You must set X2_USE_ENDSTOP with X_DUAL_ENDSTOPS."
|
2108
|
|
- #elif X2_USE_ENDSTOP == _XMIN_ && DISABLED(USE_XMIN_PLUG)
|
2109
|
|
- #error "USE_XMIN_PLUG is required when X2_USE_ENDSTOP is _XMIN_."
|
2110
|
|
- #elif X2_USE_ENDSTOP == _XMAX_ && DISABLED(USE_XMAX_PLUG)
|
2111
|
|
- #error "USE_XMAX_PLUG is required when X2_USE_ENDSTOP is _XMAX_."
|
2112
|
|
- #elif X2_USE_ENDSTOP == _YMIN_ && DISABLED(USE_YMIN_PLUG)
|
2113
|
|
- #error "USE_YMIN_PLUG is required when X2_USE_ENDSTOP is _YMIN_."
|
2114
|
|
- #elif X2_USE_ENDSTOP == _YMAX_ && DISABLED(USE_YMAX_PLUG)
|
2115
|
|
- #error "USE_YMAX_PLUG is required when X2_USE_ENDSTOP is _YMAX_."
|
2116
|
|
- #elif X2_USE_ENDSTOP == _ZMIN_ && DISABLED(USE_ZMIN_PLUG)
|
2117
|
|
- #error "USE_ZMIN_PLUG is required when X2_USE_ENDSTOP is _ZMIN_."
|
2118
|
|
- #elif X2_USE_ENDSTOP == _ZMAX_ && DISABLED(USE_ZMAX_PLUG)
|
2119
|
|
- #error "USE_ZMAX_PLUG is required when X2_USE_ENDSTOP is _ZMAX_."
|
2120
|
|
- #elif !HAS_X2_MIN && !HAS_X2_MAX
|
2121
|
|
- #error "X2_USE_ENDSTOP has been assigned to a nonexistent endstop!"
|
2122
|
|
- #elif ENABLED(DELTA)
|
|
2106
|
+ #if ENABLED(DELTA)
|
2123
|
2107
|
#error "X_DUAL_ENDSTOPS is not compatible with DELTA."
|
|
2108
|
+ #elif !X2_USE_ENDSTOP
|
|
2109
|
+ #error "X2_USE_ENDSTOP must be set with X_DUAL_ENDSTOPS."
|
2124
|
2110
|
#endif
|
2125
|
2111
|
#endif
|
2126
|
2112
|
#if ENABLED(Y_DUAL_ENDSTOPS)
|
2127
|
|
- #if !Y2_USE_ENDSTOP
|
2128
|
|
- #error "You must set Y2_USE_ENDSTOP with Y_DUAL_ENDSTOPS."
|
2129
|
|
- #elif Y2_USE_ENDSTOP == _XMIN_ && DISABLED(USE_XMIN_PLUG)
|
2130
|
|
- #error "USE_XMIN_PLUG is required when Y2_USE_ENDSTOP is _XMIN_."
|
2131
|
|
- #elif Y2_USE_ENDSTOP == _XMAX_ && DISABLED(USE_XMAX_PLUG)
|
2132
|
|
- #error "USE_XMAX_PLUG is required when Y2_USE_ENDSTOP is _XMAX_."
|
2133
|
|
- #elif Y2_USE_ENDSTOP == _YMIN_ && DISABLED(USE_YMIN_PLUG)
|
2134
|
|
- #error "USE_YMIN_PLUG is required when Y2_USE_ENDSTOP is _YMIN_."
|
2135
|
|
- #elif Y2_USE_ENDSTOP == _YMAX_ && DISABLED(USE_YMAX_PLUG)
|
2136
|
|
- #error "USE_YMAX_PLUG is required when Y2_USE_ENDSTOP is _YMAX_."
|
2137
|
|
- #elif Y2_USE_ENDSTOP == _ZMIN_ && DISABLED(USE_ZMIN_PLUG)
|
2138
|
|
- #error "USE_ZMIN_PLUG is required when Y2_USE_ENDSTOP is _ZMIN_."
|
2139
|
|
- #elif Y2_USE_ENDSTOP == _ZMAX_ && DISABLED(USE_ZMAX_PLUG)
|
2140
|
|
- #error "USE_ZMAX_PLUG is required when Y2_USE_ENDSTOP is _ZMAX_."
|
2141
|
|
- #elif !HAS_Y2_MIN && !HAS_Y2_MAX
|
2142
|
|
- #error "Y2_USE_ENDSTOP has been assigned to a nonexistent endstop!"
|
2143
|
|
- #elif ENABLED(DELTA)
|
|
2113
|
+ #if ENABLED(DELTA)
|
2144
|
2114
|
#error "Y_DUAL_ENDSTOPS is not compatible with DELTA."
|
|
2115
|
+ #elif !Y2_USE_ENDSTOP
|
|
2116
|
+ #error "Y2_USE_ENDSTOP must be set with Y_DUAL_ENDSTOPS."
|
2145
|
2117
|
#endif
|
2146
|
2118
|
#endif
|
2147
|
|
-
|
2148
|
2119
|
#if ENABLED(Z_MULTI_ENDSTOPS)
|
2149
|
|
- #if !Z2_USE_ENDSTOP
|
2150
|
|
- #error "You must set Z2_USE_ENDSTOP with Z_MULTI_ENDSTOPS when NUM_Z_STEPPER_DRIVERS >= 2."
|
2151
|
|
- #elif Z2_USE_ENDSTOP == _XMIN_ && DISABLED(USE_XMIN_PLUG)
|
2152
|
|
- #error "USE_XMIN_PLUG is required when Z2_USE_ENDSTOP is _XMIN_."
|
2153
|
|
- #elif Z2_USE_ENDSTOP == _XMAX_ && DISABLED(USE_XMAX_PLUG)
|
2154
|
|
- #error "USE_XMAX_PLUG is required when Z2_USE_ENDSTOP is _XMAX_."
|
2155
|
|
- #elif Z2_USE_ENDSTOP == _YMIN_ && DISABLED(USE_YMIN_PLUG)
|
2156
|
|
- #error "USE_YMIN_PLUG is required when Z2_USE_ENDSTOP is _YMIN_."
|
2157
|
|
- #elif Z2_USE_ENDSTOP == _YMAX_ && DISABLED(USE_YMAX_PLUG)
|
2158
|
|
- #error "USE_YMAX_PLUG is required when Z2_USE_ENDSTOP is _YMAX_."
|
2159
|
|
- #elif Z2_USE_ENDSTOP == _ZMIN_ && DISABLED(USE_ZMIN_PLUG)
|
2160
|
|
- #error "USE_ZMIN_PLUG is required when Z2_USE_ENDSTOP is _ZMIN_."
|
2161
|
|
- #elif Z2_USE_ENDSTOP == _ZMAX_ && DISABLED(USE_ZMAX_PLUG)
|
2162
|
|
- #error "USE_ZMAX_PLUG is required when Z2_USE_ENDSTOP is _ZMAX_."
|
2163
|
|
- #elif !HAS_Z2_MIN && !HAS_Z2_MAX
|
2164
|
|
- #error "Z2_USE_ENDSTOP has been assigned to a nonexistent endstop!"
|
2165
|
|
- #elif ENABLED(DELTA)
|
|
2120
|
+ #if ENABLED(DELTA)
|
2166
|
2121
|
#error "Z_MULTI_ENDSTOPS is not compatible with DELTA."
|
2167
|
|
- #endif
|
2168
|
|
- #if NUM_Z_STEPPER_DRIVERS >= 3
|
2169
|
|
- #if !Z3_USE_ENDSTOP
|
2170
|
|
- #error "You must set Z3_USE_ENDSTOP with Z_MULTI_ENDSTOPS when NUM_Z_STEPPER_DRIVERS >= 3."
|
2171
|
|
- #elif Z3_USE_ENDSTOP == _XMIN_ && DISABLED(USE_XMIN_PLUG)
|
2172
|
|
- #error "USE_XMIN_PLUG is required when Z3_USE_ENDSTOP is _XMIN_."
|
2173
|
|
- #elif Z3_USE_ENDSTOP == _XMAX_ && DISABLED(USE_XMAX_PLUG)
|
2174
|
|
- #error "USE_XMAX_PLUG is required when Z3_USE_ENDSTOP is _XMAX_."
|
2175
|
|
- #elif Z3_USE_ENDSTOP == _YMIN_ && DISABLED(USE_YMIN_PLUG)
|
2176
|
|
- #error "USE_YMIN_PLUG is required when Z3_USE_ENDSTOP is _YMIN_."
|
2177
|
|
- #elif Z3_USE_ENDSTOP == _YMAX_ && DISABLED(USE_YMAX_PLUG)
|
2178
|
|
- #error "USE_YMAX_PLUG is required when Z3_USE_ENDSTOP is _YMAX_."
|
2179
|
|
- #elif Z3_USE_ENDSTOP == _ZMIN_ && DISABLED(USE_ZMIN_PLUG)
|
2180
|
|
- #error "USE_ZMIN_PLUG is required when Z3_USE_ENDSTOP is _ZMIN_."
|
2181
|
|
- #elif Z3_USE_ENDSTOP == _ZMAX_ && DISABLED(USE_ZMAX_PLUG)
|
2182
|
|
- #error "USE_ZMAX_PLUG is required when Z3_USE_ENDSTOP is _ZMAX_."
|
2183
|
|
- #elif !HAS_Z3_MIN && !HAS_Z3_MAX
|
2184
|
|
- #error "Z3_USE_ENDSTOP has been assigned to a nonexistent endstop!"
|
2185
|
|
- #endif
|
2186
|
|
- #endif
|
2187
|
|
- #if NUM_Z_STEPPER_DRIVERS >= 4
|
2188
|
|
- #if !Z4_USE_ENDSTOP
|
2189
|
|
- #error "You must set Z4_USE_ENDSTOP with Z_MULTI_ENDSTOPS when NUM_Z_STEPPER_DRIVERS >= 4."
|
2190
|
|
- #elif Z4_USE_ENDSTOP == _XMIN_ && DISABLED(USE_XMIN_PLUG)
|
2191
|
|
- #error "USE_XMIN_PLUG is required when Z4_USE_ENDSTOP is _XMIN_."
|
2192
|
|
- #elif Z4_USE_ENDSTOP == _XMAX_ && DISABLED(USE_XMAX_PLUG)
|
2193
|
|
- #error "USE_XMAX_PLUG is required when Z4_USE_ENDSTOP is _XMAX_."
|
2194
|
|
- #elif Z4_USE_ENDSTOP == _YMIN_ && DISABLED(USE_YMIN_PLUG)
|
2195
|
|
- #error "USE_YMIN_PLUG is required when Z4_USE_ENDSTOP is _YMIN_."
|
2196
|
|
- #elif Z4_USE_ENDSTOP == _YMAX_ && DISABLED(USE_YMAX_PLUG)
|
2197
|
|
- #error "USE_YMAX_PLUG is required when Z4_USE_ENDSTOP is _YMAX_."
|
2198
|
|
- #elif Z4_USE_ENDSTOP == _ZMIN_ && DISABLED(USE_ZMIN_PLUG)
|
2199
|
|
- #error "USE_ZMIN_PLUG is required when Z4_USE_ENDSTOP is _ZMIN_."
|
2200
|
|
- #elif Z4_USE_ENDSTOP == _ZMAX_ && DISABLED(USE_ZMAX_PLUG)
|
2201
|
|
- #error "USE_ZMAX_PLUG is required when Z4_USE_ENDSTOP is _ZMAX_."
|
2202
|
|
- #elif !HAS_Z4_MIN && !HAS_Z4_MAX
|
2203
|
|
- #error "Z4_USE_ENDSTOP has been assigned to a nonexistent endstop!"
|
2204
|
|
- #endif
|
|
2122
|
+ #elif !Z2_USE_ENDSTOP
|
|
2123
|
+ #error "Z2_USE_ENDSTOP must be set with Z_MULTI_ENDSTOPS."
|
|
2124
|
+ #elif !Z3_USE_ENDSTOP && NUM_Z_STEPPER_DRIVERS >= 3
|
|
2125
|
+ #error "Z3_USE_ENDSTOP must be set with Z_MULTI_ENDSTOPS and NUM_Z_STEPPER_DRIVERS >= 3."
|
|
2126
|
+ #elif !Z4_USE_ENDSTOP && NUM_Z_STEPPER_DRIVERS >= 4
|
|
2127
|
+ #error "Z4_USE_ENDSTOP must be set with Z_MULTI_ENDSTOPS and NUM_Z_STEPPER_DRIVERS >= 4."
|
2205
|
2128
|
#endif
|
2206
|
2129
|
#endif
|
2207
|
2130
|
|