💥 Num Axes and Multi-Stepper based on Driver Types (#24120)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
This commit is contained in:
@@ -486,10 +486,10 @@
|
||||
#ifndef Z2_USE_ENDSTOP
|
||||
#define Z2_USE_ENDSTOP _ZSTOP_
|
||||
#endif
|
||||
#if NUM_Z_STEPPER_DRIVERS >= 3 && !defined(Z3_USE_ENDSTOP)
|
||||
#if NUM_Z_STEPPERS >= 3 && !defined(Z3_USE_ENDSTOP)
|
||||
#define Z3_USE_ENDSTOP _ZSTOP_
|
||||
#endif
|
||||
#if NUM_Z_STEPPER_DRIVERS >= 4 && !defined(Z4_USE_ENDSTOP)
|
||||
#if NUM_Z_STEPPERS >= 4 && !defined(Z4_USE_ENDSTOP)
|
||||
#define Z4_USE_ENDSTOP _ZSTOP_
|
||||
#endif
|
||||
#endif
|
||||
@@ -775,14 +775,14 @@
|
||||
#define X2_MS3_PIN -1
|
||||
#endif
|
||||
|
||||
#if ENABLED(Y_DUAL_STEPPER_DRIVERS) && !defined(Y2_DIAG_PIN) && !defined(Y2_STEP_PIN) && !PIN_EXISTS(Y2_CS_PIN)
|
||||
#if HAS_DUAL_Y_STEPPERS && !defined(Y2_DIAG_PIN) && !defined(Y2_STEP_PIN) && !PIN_EXISTS(Y2_CS_PIN)
|
||||
#define Z2_E_INDEX INCREMENT(Y2_E_INDEX)
|
||||
#else
|
||||
#define Z2_E_INDEX Y2_E_INDEX
|
||||
#endif
|
||||
|
||||
// The Y2 axis, if any, should be the next open extruder port
|
||||
#if ENABLED(Y_DUAL_STEPPER_DRIVERS)
|
||||
#if HAS_DUAL_Y_STEPPERS
|
||||
#ifndef Y2_STEP_PIN
|
||||
#define Y2_STEP_PIN _EPIN(Y2_E_INDEX, STEP)
|
||||
#define Y2_DIR_PIN _EPIN(Y2_E_INDEX, DIR)
|
||||
@@ -861,14 +861,14 @@
|
||||
#define Y2_MS3_PIN -1
|
||||
#endif
|
||||
|
||||
#if NUM_Z_STEPPER_DRIVERS >= 2 && !defined(Z2_DIAG_PIN) && !defined(Z2_STEP_PIN) && !PIN_EXISTS(Z2_CS_PIN)
|
||||
#if NUM_Z_STEPPERS >= 2 && !defined(Z2_DIAG_PIN) && !defined(Z2_STEP_PIN) && !PIN_EXISTS(Z2_CS_PIN)
|
||||
#define Z3_E_INDEX INCREMENT(Z2_E_INDEX)
|
||||
#else
|
||||
#define Z3_E_INDEX Z2_E_INDEX
|
||||
#endif
|
||||
|
||||
// The Z2 axis, if any, should be the next open extruder port
|
||||
#if NUM_Z_STEPPER_DRIVERS >= 2
|
||||
#if NUM_Z_STEPPERS >= 2
|
||||
#ifndef Z2_STEP_PIN
|
||||
#define Z2_STEP_PIN _EPIN(Z2_E_INDEX, STEP)
|
||||
#define Z2_DIR_PIN _EPIN(Z2_E_INDEX, DIR)
|
||||
@@ -947,14 +947,14 @@
|
||||
#define Z2_MS3_PIN -1
|
||||
#endif
|
||||
|
||||
#if NUM_Z_STEPPER_DRIVERS >= 3 && !defined(Z3_DIAG_PIN) && !defined(Z3_STEP_PIN) && !PIN_EXISTS(Z3_CS_PIN)
|
||||
#if NUM_Z_STEPPERS >= 3 && !defined(Z3_DIAG_PIN) && !defined(Z3_STEP_PIN) && !PIN_EXISTS(Z3_CS_PIN)
|
||||
#define Z4_E_INDEX INCREMENT(Z3_E_INDEX)
|
||||
#else
|
||||
#define Z4_E_INDEX Z3_E_INDEX
|
||||
#endif
|
||||
|
||||
// The Z3 axis, if any, should be the next open extruder port
|
||||
#if NUM_Z_STEPPER_DRIVERS >= 3
|
||||
#if NUM_Z_STEPPERS >= 3
|
||||
#ifndef Z3_STEP_PIN
|
||||
#define Z3_STEP_PIN _EPIN(Z3_E_INDEX, STEP)
|
||||
#define Z3_DIR_PIN _EPIN(Z3_E_INDEX, DIR)
|
||||
@@ -1033,14 +1033,14 @@
|
||||
#define Z3_MS3_PIN -1
|
||||
#endif
|
||||
|
||||
#if NUM_Z_STEPPER_DRIVERS >= 4 && !defined(Z4_DIAG_PIN) && !defined(Z4_STEP_PIN) && !PIN_EXISTS(Z4_CS_PIN)
|
||||
#if NUM_Z_STEPPERS >= 4 && !defined(Z4_DIAG_PIN) && !defined(Z4_STEP_PIN) && !PIN_EXISTS(Z4_CS_PIN)
|
||||
#define I_E_INDEX INCREMENT(Z4_E_INDEX)
|
||||
#else
|
||||
#define I_E_INDEX Z4_E_INDEX
|
||||
#endif
|
||||
|
||||
// The Z4 axis, if any, should be the next open extruder port
|
||||
#if NUM_Z_STEPPER_DRIVERS >= 4
|
||||
#if NUM_Z_STEPPERS >= 4
|
||||
#ifndef Z4_STEP_PIN
|
||||
#define Z4_STEP_PIN _EPIN(Z4_E_INDEX, STEP)
|
||||
#define Z4_DIR_PIN _EPIN(Z4_E_INDEX, DIR)
|
||||
@@ -1747,16 +1747,16 @@
|
||||
#if DISABLED(Z_MULTI_ENDSTOPS) || Z_HOME_TO_MIN
|
||||
#undef Z2_MAX_PIN
|
||||
#endif
|
||||
#if DISABLED(Z_MULTI_ENDSTOPS) || NUM_Z_STEPPER_DRIVERS < 3 || Z_HOME_TO_MAX
|
||||
#if DISABLED(Z_MULTI_ENDSTOPS) || NUM_Z_STEPPERS < 3 || Z_HOME_TO_MAX
|
||||
#undef Z3_MIN_PIN
|
||||
#endif
|
||||
#if DISABLED(Z_MULTI_ENDSTOPS) || NUM_Z_STEPPER_DRIVERS < 3 || Z_HOME_TO_MIN
|
||||
#if DISABLED(Z_MULTI_ENDSTOPS) || NUM_Z_STEPPERS < 3 || Z_HOME_TO_MIN
|
||||
#undef Z3_MAX_PIN
|
||||
#endif
|
||||
#if DISABLED(Z_MULTI_ENDSTOPS) || NUM_Z_STEPPER_DRIVERS < 4 || Z_HOME_TO_MAX
|
||||
#if DISABLED(Z_MULTI_ENDSTOPS) || NUM_Z_STEPPERS < 4 || Z_HOME_TO_MAX
|
||||
#undef Z4_MIN_PIN
|
||||
#endif
|
||||
#if DISABLED(Z_MULTI_ENDSTOPS) || NUM_Z_STEPPER_DRIVERS < 4 || Z_HOME_TO_MIN
|
||||
#if DISABLED(Z_MULTI_ENDSTOPS) || NUM_Z_STEPPERS < 4 || Z_HOME_TO_MIN
|
||||
#undef Z4_MAX_PIN
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user