|
|
|
@ -34,33 +34,6 @@
|
|
|
|
|
#define EMERGENCY_PARSER_CAPABILITIES ""
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Set ENDSTOPPULLUPS for unused endstop switches
|
|
|
|
|
*/
|
|
|
|
|
#if ENABLED(ENDSTOPPULLUPS)
|
|
|
|
|
#if ENABLED(USE_XMAX_PLUG)
|
|
|
|
|
#define ENDSTOPPULLUP_XMAX
|
|
|
|
|
#endif
|
|
|
|
|
#if ENABLED(USE_YMAX_PLUG)
|
|
|
|
|
#define ENDSTOPPULLUP_YMAX
|
|
|
|
|
#endif
|
|
|
|
|
#if ENABLED(USE_ZMAX_PLUG)
|
|
|
|
|
#define ENDSTOPPULLUP_ZMAX
|
|
|
|
|
#endif
|
|
|
|
|
#if ENABLED(USE_XMIN_PLUG)
|
|
|
|
|
#define ENDSTOPPULLUP_XMIN
|
|
|
|
|
#endif
|
|
|
|
|
#if ENABLED(USE_YMIN_PLUG)
|
|
|
|
|
#define ENDSTOPPULLUP_YMIN
|
|
|
|
|
#endif
|
|
|
|
|
#if ENABLED(USE_ZMIN_PLUG)
|
|
|
|
|
#define ENDSTOPPULLUP_ZMIN
|
|
|
|
|
#endif
|
|
|
|
|
#if DISABLED(DISABLE_Z_MIN_PROBE_ENDSTOP)
|
|
|
|
|
#define ENDSTOPPULLUP_ZMIN_PROBE
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Axis lengths
|
|
|
|
|
*/
|
|
|
|
@ -362,33 +335,91 @@
|
|
|
|
|
#define _XMAX_ 101
|
|
|
|
|
#define _YMAX_ 201
|
|
|
|
|
#define _ZMAX_ 301
|
|
|
|
|
#if Z2_USE_ENDSTOP == _XMAX_
|
|
|
|
|
#define USE_XMAX_PLUG
|
|
|
|
|
#elif Z2_USE_ENDSTOP == _YMAX_
|
|
|
|
|
#define USE_YMAX_PLUG
|
|
|
|
|
#elif Z2_USE_ENDSTOP == _ZMAX_
|
|
|
|
|
#define USE_ZMAX_PLUG
|
|
|
|
|
#elif Z2_USE_ENDSTOP == _XMIN_
|
|
|
|
|
#define USE_XMIN_PLUG
|
|
|
|
|
#elif Z2_USE_ENDSTOP == _YMIN_
|
|
|
|
|
#define USE_YMIN_PLUG
|
|
|
|
|
#elif Z2_USE_ENDSTOP == _ZMIN_
|
|
|
|
|
#define USE_ZMIN_PLUG
|
|
|
|
|
#endif
|
|
|
|
|
#if Z_HOME_DIR > 0
|
|
|
|
|
#if Z2_USE_ENDSTOP == _XMAX_
|
|
|
|
|
#define Z2_MAX_ENDSTOP_INVERTING X_MAX_ENDSTOP_INVERTING
|
|
|
|
|
#define Z2_MAX_PIN X_MAX_PIN
|
|
|
|
|
#undef USE_XMAX_PLUG
|
|
|
|
|
#elif Z2_USE_ENDSTOP == _YMAX_
|
|
|
|
|
#define Z2_MAX_ENDSTOP_INVERTING Y_MAX_ENDSTOP_INVERTING
|
|
|
|
|
#define Z2_MAX_PIN Y_MAX_PIN
|
|
|
|
|
#undef USE_YMAX_PLUG
|
|
|
|
|
#elif Z2_USE_ENDSTOP == _ZMAX_
|
|
|
|
|
#define Z2_MAX_ENDSTOP_INVERTING Z_MAX_ENDSTOP_INVERTING
|
|
|
|
|
#define Z2_MAX_PIN Z_MAX_PIN
|
|
|
|
|
#undef USE_ZMAX_PLUG
|
|
|
|
|
#elif Z2_USE_ENDSTOP == _XMIN_
|
|
|
|
|
#define Z2_MAX_ENDSTOP_INVERTING X_MIN_ENDSTOP_INVERTING
|
|
|
|
|
#define Z2_MAX_PIN X_MIN_PIN
|
|
|
|
|
#undef USE_XMIN_PLUG
|
|
|
|
|
#elif Z2_USE_ENDSTOP == _YMIN_
|
|
|
|
|
#define Z2_MAX_ENDSTOP_INVERTING Y_MIN_ENDSTOP_INVERTING
|
|
|
|
|
#define Z2_MAX_PIN Y_MIN_PIN
|
|
|
|
|
#undef USE_YMIN_PLUG
|
|
|
|
|
#elif Z2_USE_ENDSTOP == _ZMIN_
|
|
|
|
|
#define Z2_MAX_ENDSTOP_INVERTING Z_MIN_ENDSTOP_INVERTING
|
|
|
|
|
#define Z2_MAX_PIN Z_MIN_PIN
|
|
|
|
|
#undef USE_ZMIN_PLUG
|
|
|
|
|
#else
|
|
|
|
|
#define Z2_MAX_ENDSTOP_INVERTING false
|
|
|
|
|
#endif
|
|
|
|
|
#else
|
|
|
|
|
#if Z2_USE_ENDSTOP == _XMAX_
|
|
|
|
|
#define Z2_MIN_ENDSTOP_INVERTING X_MAX_ENDSTOP_INVERTING
|
|
|
|
|
#define Z2_MIN_PIN X_MAX_PIN
|
|
|
|
|
#elif Z2_USE_ENDSTOP == _YMAX_
|
|
|
|
|
#define Z2_MIN_ENDSTOP_INVERTING Y_MAX_ENDSTOP_INVERTING
|
|
|
|
|
#define Z2_MIN_PIN Y_MAX_PIN
|
|
|
|
|
#elif Z2_USE_ENDSTOP == _ZMAX_
|
|
|
|
|
#define Z2_MIN_ENDSTOP_INVERTING Z_MAX_ENDSTOP_INVERTING
|
|
|
|
|
#define Z2_MIN_PIN Z_MAX_PIN
|
|
|
|
|
#elif Z2_USE_ENDSTOP == _XMIN_
|
|
|
|
|
#define Z2_MIN_ENDSTOP_INVERTING X_MIN_ENDSTOP_INVERTING
|
|
|
|
|
#define Z2_MIN_PIN X_MIN_PIN
|
|
|
|
|
#elif Z2_USE_ENDSTOP == _YMIN_
|
|
|
|
|
#define Z2_MIN_ENDSTOP_INVERTING Y_MIN_ENDSTOP_INVERTING
|
|
|
|
|
#define Z2_MIN_PIN Y_MIN_PIN
|
|
|
|
|
#elif Z2_USE_ENDSTOP == _ZMIN_
|
|
|
|
|
#define Z2_MIN_ENDSTOP_INVERTING Z_MIN_ENDSTOP_INVERTING
|
|
|
|
|
#define Z2_MIN_PIN Z_MIN_PIN
|
|
|
|
|
#else
|
|
|
|
|
#define Z2_MIN_ENDSTOP_INVERTING false
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Set ENDSTOPPULLUPS for active endstop switches
|
|
|
|
|
*/
|
|
|
|
|
#if ENABLED(ENDSTOPPULLUPS)
|
|
|
|
|
#if ENABLED(USE_XMAX_PLUG)
|
|
|
|
|
#define ENDSTOPPULLUP_XMAX
|
|
|
|
|
#endif
|
|
|
|
|
#if ENABLED(USE_YMAX_PLUG)
|
|
|
|
|
#define ENDSTOPPULLUP_YMAX
|
|
|
|
|
#endif
|
|
|
|
|
#if ENABLED(USE_ZMAX_PLUG)
|
|
|
|
|
#define ENDSTOPPULLUP_ZMAX
|
|
|
|
|
#endif
|
|
|
|
|
#if ENABLED(USE_XMIN_PLUG)
|
|
|
|
|
#define ENDSTOPPULLUP_XMIN
|
|
|
|
|
#endif
|
|
|
|
|
#if ENABLED(USE_YMIN_PLUG)
|
|
|
|
|
#define ENDSTOPPULLUP_YMIN
|
|
|
|
|
#endif
|
|
|
|
|
#if ENABLED(USE_ZMIN_PLUG)
|
|
|
|
|
#define ENDSTOPPULLUP_ZMIN
|
|
|
|
|
#endif
|
|
|
|
|
#if DISABLED(DISABLE_Z_MIN_PROBE_ENDSTOP)
|
|
|
|
|
#define ENDSTOPPULLUP_ZMIN_PROBE
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|