🐛 Fix pulldown sanity check
This commit is contained in:
parent
3bce266ef7
commit
edc4089121
|
@ -71,3 +71,7 @@
|
||||||
#if ENABLED(POSTMORTEM_DEBUGGING)
|
#if ENABLED(POSTMORTEM_DEBUGGING)
|
||||||
#error "POSTMORTEM_DEBUGGING is not supported on AVR boards."
|
#error "POSTMORTEM_DEBUGGING is not supported on AVR boards."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if USING_PULLDOWNS
|
||||||
|
#error "PULLDOWN pin mode is not available on AVR boards."
|
||||||
|
#endif
|
||||||
|
|
|
@ -59,3 +59,7 @@
|
||||||
#if HAS_TMC_SW_SERIAL
|
#if HAS_TMC_SW_SERIAL
|
||||||
#error "TMC220x Software Serial is not supported on the DUE platform."
|
#error "TMC220x Software Serial is not supported on the DUE platform."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if USING_PULLDOWNS
|
||||||
|
#error "PULLDOWN pin mode is not available on DUE boards."
|
||||||
|
#endif
|
||||||
|
|
|
@ -44,3 +44,7 @@
|
||||||
#if MB(MKS_TINYBEE) && ENABLED(FAST_PWM_FAN)
|
#if MB(MKS_TINYBEE) && ENABLED(FAST_PWM_FAN)
|
||||||
#error "FAST_PWM_FAN is not available on TinyBee."
|
#error "FAST_PWM_FAN is not available on TinyBee."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if USING_PULLDOWNS
|
||||||
|
#error "PULLDOWN pin mode is not available on ESP32 boards."
|
||||||
|
#endif
|
||||||
|
|
|
@ -40,3 +40,7 @@
|
||||||
#if ENABLED(POSTMORTEM_DEBUGGING)
|
#if ENABLED(POSTMORTEM_DEBUGGING)
|
||||||
#error "POSTMORTEM_DEBUGGING is not yet supported on Teensy 3.1/3.2."
|
#error "POSTMORTEM_DEBUGGING is not yet supported on Teensy 3.1/3.2."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if USING_PULLDOWNS
|
||||||
|
#error "PULLDOWN pin mode is not available on Teensy 3.1/3.2 boards."
|
||||||
|
#endif
|
||||||
|
|
|
@ -40,3 +40,7 @@
|
||||||
#if ENABLED(POSTMORTEM_DEBUGGING)
|
#if ENABLED(POSTMORTEM_DEBUGGING)
|
||||||
#error "POSTMORTEM_DEBUGGING is not yet supported on Teensy 3.5/3.6."
|
#error "POSTMORTEM_DEBUGGING is not yet supported on Teensy 3.5/3.6."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if USING_PULLDOWNS
|
||||||
|
#error "PULLDOWN pin mode is not available on Teensy 3.5/3.6 boards."
|
||||||
|
#endif
|
||||||
|
|
|
@ -3507,3 +3507,14 @@
|
||||||
#if PIN_EXISTS(SAFE_POWER) && DISABLED(DISABLE_DRIVER_SAFE_POWER_PROTECT)
|
#if PIN_EXISTS(SAFE_POWER) && DISABLED(DISABLE_DRIVER_SAFE_POWER_PROTECT)
|
||||||
#define HAS_DRIVER_SAFE_POWER_PROTECT 1
|
#define HAS_DRIVER_SAFE_POWER_PROTECT 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if ANY(ENDSTOPPULLDOWNS, ENDSTOPPULLDOWN_ZMIN_PROBE, \
|
||||||
|
ENDSTOPPULLDOWN_XMIN, ENDSTOPPULLDOWN_YMIN, ENDSTOPPULLDOWN_ZMIN, \
|
||||||
|
ENDSTOPPULLDOWN_IMIN, ENDSTOPPULLDOWN_JMIN, ENDSTOPPULLDOWN_KMIN, \
|
||||||
|
ENDSTOPPULLDOWN_XMAX, ENDSTOPPULLDOWN_YMAX, ENDSTOPPULLDOWN_ZMAX, \
|
||||||
|
ENDSTOPPULLDOWN_IMAX, ENDSTOPPULLDOWN_JMAX, ENDSTOPPULLDOWN_KMAX, \
|
||||||
|
POWER_LOSS_PULLDOWN, CALIBRATION_PIN_PULLDOWN, FIL_RUNOUT_PULLDOWN, \
|
||||||
|
FIL_RUNOUT1_PULLDOWN, FIL_RUNOUT2_PULLDOWN, FIL_RUNOUT3_PULLDOWN, FIL_RUNOUT4_PULLDOWN, \
|
||||||
|
FIL_RUNOUT5_PULLDOWN, FIL_RUNOUT6_PULLDOWN, FIL_RUNOUT7_PULLDOWN, FIL_RUNOUT8_PULLDOWN)
|
||||||
|
#define USING_PULLDOWNS 1
|
||||||
|
#endif
|
||||||
|
|
|
@ -782,18 +782,6 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(TARGET_LPC1768) && ANY( \
|
|
||||||
ENDSTOPPULLDOWNS, ENDSTOPPULLDOWN_ZMIN_PROBE, \
|
|
||||||
ENDSTOPPULLDOWN_XMAX, ENDSTOPPULLDOWN_YMAX, ENDSTOPPULLDOWN_ZMAX, \
|
|
||||||
ENDSTOPPULLDOWN_XMIN, ENDSTOPPULLDOWN_YMIN, ENDSTOPPULLDOWN_ZMIN, \
|
|
||||||
FIL_RUNOUT_PULLDOWN, \
|
|
||||||
FIL_RUNOUT1_PULLDOWN, FIL_RUNOUT2_PULLDOWN, FIL_RUNOUT3_PULLDOWN, FIL_RUNOUT4_PULLDOWN, \
|
|
||||||
FIL_RUNOUT5_PULLDOWN, FIL_RUNOUT6_PULLDOWN, FIL_RUNOUT7_PULLDOWN, FIL_RUNOUT8_PULLDOWN, \
|
|
||||||
POWER_LOSS_PULLDOWN, CALIBRATION_PIN_PULLDOWN \
|
|
||||||
)
|
|
||||||
#error "PULLDOWN pin mode is not available on the selected board."
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if BOTH(ENDSTOPPULLUPS, ENDSTOPPULLDOWNS)
|
#if BOTH(ENDSTOPPULLUPS, ENDSTOPPULLDOWNS)
|
||||||
#error "Enable only one of ENDSTOPPULLUPS or ENDSTOPPULLDOWNS."
|
#error "Enable only one of ENDSTOPPULLUPS or ENDSTOPPULLDOWNS."
|
||||||
#elif BOTH(FIL_RUNOUT_PULLUP, FIL_RUNOUT_PULLDOWN)
|
#elif BOTH(FIL_RUNOUT_PULLUP, FIL_RUNOUT_PULLDOWN)
|
||||||
|
|
Loading…
Reference in a new issue