Treat TMC2660 like non-TMC (#11485)
This commit is contained in:
parent
4f59ee8978
commit
9e46e84a55
@ -428,7 +428,7 @@
|
|||||||
#define MINIMUM_STEPPER_DIR_DELAY 500
|
#define MINIMUM_STEPPER_DIR_DELAY 500
|
||||||
#elif HAS_DRIVER(A4988)
|
#elif HAS_DRIVER(A4988)
|
||||||
#define MINIMUM_STEPPER_DIR_DELAY 200
|
#define MINIMUM_STEPPER_DIR_DELAY 200
|
||||||
#elif HAS_TRINAMIC || HAS_DRIVER(TMC2130_STANDALONE) || HAS_DRIVER(TMC2208_STANDALONE) || HAS_DRIVER(TMC26X_STANDALONE) || HAS_DRIVER(TMC2660_STANDALONE)
|
#elif HAS_TRINAMIC || HAS_DRIVER(TMC2660) || HAS_DRIVER(TMC2130_STANDALONE) || HAS_DRIVER(TMC2208_STANDALONE) || HAS_DRIVER(TMC26X_STANDALONE) || HAS_DRIVER(TMC2660_STANDALONE)
|
||||||
#define MINIMUM_STEPPER_DIR_DELAY 20
|
#define MINIMUM_STEPPER_DIR_DELAY 20
|
||||||
#else
|
#else
|
||||||
#define MINIMUM_STEPPER_DIR_DELAY 0 // Expect at least 10µS since one Stepper ISR must transpire
|
#define MINIMUM_STEPPER_DIR_DELAY 0 // Expect at least 10µS since one Stepper ISR must transpire
|
||||||
@ -444,7 +444,7 @@
|
|||||||
#define MINIMUM_STEPPER_PULSE 2
|
#define MINIMUM_STEPPER_PULSE 2
|
||||||
#elif HAS_DRIVER(A4988) || HAS_DRIVER(LV8729)
|
#elif HAS_DRIVER(A4988) || HAS_DRIVER(LV8729)
|
||||||
#define MINIMUM_STEPPER_PULSE 1
|
#define MINIMUM_STEPPER_PULSE 1
|
||||||
#elif HAS_TRINAMIC || HAS_DRIVER(TMC2130_STANDALONE) || HAS_DRIVER(TMC2208_STANDALONE) || HAS_DRIVER(TMC26X_STANDALONE) || HAS_DRIVER(TMC2660_STANDALONE)
|
#elif HAS_TRINAMIC || HAS_DRIVER(TMC2660) || HAS_DRIVER(TMC2130_STANDALONE) || HAS_DRIVER(TMC2208_STANDALONE) || HAS_DRIVER(TMC26X_STANDALONE) || HAS_DRIVER(TMC2660_STANDALONE)
|
||||||
#define MINIMUM_STEPPER_PULSE 0
|
#define MINIMUM_STEPPER_PULSE 0
|
||||||
#else
|
#else
|
||||||
#define MINIMUM_STEPPER_PULSE 2
|
#define MINIMUM_STEPPER_PULSE 2
|
||||||
@ -460,7 +460,7 @@
|
|||||||
#define MAXIMUM_STEPPER_RATE 150000
|
#define MAXIMUM_STEPPER_RATE 150000
|
||||||
#elif HAS_DRIVER(DRV8825)
|
#elif HAS_DRIVER(DRV8825)
|
||||||
#define MAXIMUM_STEPPER_RATE 250000
|
#define MAXIMUM_STEPPER_RATE 250000
|
||||||
#elif HAS_TRINAMIC || HAS_DRIVER(TMC2130_STANDALONE) || HAS_DRIVER(TMC2208_STANDALONE) || HAS_DRIVER(TMC26X_STANDALONE) || HAS_DRIVER(TMC2660_STANDALONE)
|
#elif HAS_TRINAMIC || HAS_DRIVER(TMC2660) || HAS_DRIVER(TMC2130_STANDALONE) || HAS_DRIVER(TMC2208_STANDALONE) || HAS_DRIVER(TMC26X_STANDALONE) || HAS_DRIVER(TMC2660_STANDALONE)
|
||||||
#define MAXIMUM_STEPPER_RATE 400000
|
#define MAXIMUM_STEPPER_RATE 400000
|
||||||
#elif HAS_DRIVER(A4988)
|
#elif HAS_DRIVER(A4988)
|
||||||
#define MAXIMUM_STEPPER_RATE 500000
|
#define MAXIMUM_STEPPER_RATE 500000
|
||||||
@ -731,9 +731,9 @@
|
|||||||
|
|
||||||
// Trinamic Stepper Drivers
|
// Trinamic Stepper Drivers
|
||||||
#define HAS_STEALTHCHOP (HAS_DRIVER(TMC2130) || HAS_DRIVER(TMC2208))
|
#define HAS_STEALTHCHOP (HAS_DRIVER(TMC2130) || HAS_DRIVER(TMC2208))
|
||||||
#define HAS_STALLGUARD (HAS_DRIVER(TMC2130) || HAS_DRIVER(TMC2660))
|
#define HAS_STALLGUARD HAS_DRIVER(TMC2130)
|
||||||
#define AXIS_HAS_STEALTHCHOP(ST) ( AXIS_DRIVER_TYPE(ST, TMC2130) || AXIS_DRIVER_TYPE(ST, TMC2208) )
|
#define AXIS_HAS_STEALTHCHOP(ST) ( AXIS_DRIVER_TYPE(ST, TMC2130) || AXIS_DRIVER_TYPE(ST, TMC2208) )
|
||||||
#define AXIS_HAS_STALLGUARD(ST) ( AXIS_DRIVER_TYPE(ST, TMC2130) || AXIS_DRIVER_TYPE(ST, TMC2660) )
|
#define AXIS_HAS_STALLGUARD(ST) AXIS_DRIVER_TYPE(ST, TMC2130)
|
||||||
|
|
||||||
#if ENABLED(SENSORLESS_HOMING)
|
#if ENABLED(SENSORLESS_HOMING)
|
||||||
// Disable Z axis sensorless homing if a probe is used to home the Z axis
|
// Disable Z axis sensorless homing if a probe is used to home the Z axis
|
||||||
|
@ -63,7 +63,7 @@
|
|||||||
|
|
||||||
// Test for supported TMC drivers that require advanced configuration
|
// Test for supported TMC drivers that require advanced configuration
|
||||||
// Does not match standalone configurations
|
// Does not match standalone configurations
|
||||||
#define HAS_TRINAMIC ( HAS_DRIVER(TMC2130) || HAS_DRIVER(TMC2208) || HAS_DRIVER(TMC2660) )
|
#define HAS_TRINAMIC (HAS_DRIVER(TMC2130) || HAS_DRIVER(TMC2208))
|
||||||
|
|
||||||
#define AXIS_IS_TMC(A) ( AXIS_DRIVER_TYPE_##A(TMC2130) || \
|
#define AXIS_IS_TMC(A) ( AXIS_DRIVER_TYPE_##A(TMC2130) || \
|
||||||
AXIS_DRIVER_TYPE_##A(TMC2208) || \
|
AXIS_DRIVER_TYPE_##A(TMC2208) || \
|
||||||
|
Loading…
Reference in New Issue
Block a user