X_DUAL_STEPPER_DRIVERS configuration option

This commit is contained in:
Scott Lahteine
2016-07-11 10:19:01 -07:00
parent 0ccc5d1dd9
commit 91bd6eade7
18 changed files with 365 additions and 214 deletions

View File

@ -76,8 +76,14 @@
/**
* Dual Stepper Drivers
*/
#if ENABLED(Z_DUAL_STEPPER_DRIVERS) && ENABLED(Y_DUAL_STEPPER_DRIVERS)
#error "You cannot have dual stepper drivers for both Y and Z."
#if ENABLED(X_DUAL_STEPPER_DRIVERS) && ENABLED(DUAL_X_CARRIAGE)
#error "DUAL_X_CARRIAGE is not compatible with X_DUAL_STEPPER_DRIVERS."
#elif ENABLED(X_DUAL_STEPPER_DRIVERS) && (!HAS_X2_ENABLE || !HAS_X2_STEP || !HAS_X2_DIR)
#error "X_DUAL_STEPPER_DRIVERS requires X2 pins (and an extra E plug)."
#elif ENABLED(Y_DUAL_STEPPER_DRIVERS) && (!HAS_Y2_ENABLE || !HAS_Y2_STEP || !HAS_Y2_DIR)
#error "Y_DUAL_STEPPER_DRIVERS requires Y2 pins (and an extra E plug)."
#elif ENABLED(Z_DUAL_STEPPER_DRIVERS) && (!HAS_Z2_ENABLE || !HAS_Z2_STEP || !HAS_Z2_DIR)
#error "Z_DUAL_STEPPER_DRIVERS requires Z2 pins (and an extra E plug)."
#endif
/**
@ -152,14 +158,6 @@
#error "EXTRUDERS must be 1 with HEATERS_PARALLEL."
#endif
#if ENABLED(Y_DUAL_STEPPER_DRIVERS)
#error "EXTRUDERS must be 1 with Y_DUAL_STEPPER_DRIVERS."
#endif
#if ENABLED(Z_DUAL_STEPPER_DRIVERS)
#error "EXTRUDERS must be 1 with Z_DUAL_STEPPER_DRIVERS."
#endif
#elif ENABLED(SINGLENOZZLE)
#error "SINGLENOZZLE requires 2 or more EXTRUDERS."
#endif