|
@ -1861,231 +1861,332 @@ |
|
|
#undef Z3_STALL_SENSITIVITY |
|
|
#undef Z3_STALL_SENSITIVITY |
|
|
#undef Z4_STALL_SENSITIVITY |
|
|
#undef Z4_STALL_SENSITIVITY |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if AXIS_IS_TMC(X) |
|
|
#if defined(X_STALL_SENSITIVITY) && AXIS_HAS_STALLGUARD(X) |
|
|
#if defined(X_STALL_SENSITIVITY) && AXIS_HAS_STALLGUARD(X) |
|
|
#define X_SENSORLESS 1 |
|
|
#define X_SENSORLESS 1 |
|
|
#endif |
|
|
#endif |
|
|
#if defined(X2_STALL_SENSITIVITY) && AXIS_HAS_STALLGUARD(X2) |
|
|
#if AXIS_HAS_STEALTHCHOP(X) |
|
|
#define X2_SENSORLESS 1 |
|
|
#define X_HAS_STEALTHCHOP 1 |
|
|
#endif |
|
|
|
|
|
#if defined(Y_STALL_SENSITIVITY) && AXIS_HAS_STALLGUARD(Y) |
|
|
|
|
|
#define Y_SENSORLESS 1 |
|
|
|
|
|
#endif |
|
|
|
|
|
#if defined(Y2_STALL_SENSITIVITY) && AXIS_HAS_STALLGUARD(Y2) |
|
|
|
|
|
#define Y2_SENSORLESS 1 |
|
|
|
|
|
#endif |
|
|
|
|
|
#if defined(Z_STALL_SENSITIVITY) && AXIS_HAS_STALLGUARD(Z) |
|
|
|
|
|
#define Z_SENSORLESS 1 |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
#if defined(Z2_STALL_SENSITIVITY) && AXIS_HAS_STALLGUARD(Z2) |
|
|
#if ENABLED(SPI_ENDSTOPS) |
|
|
#define Z2_SENSORLESS 1 |
|
|
#define X_SPI_SENSORLESS X_SENSORLESS |
|
|
#endif |
|
|
#endif |
|
|
#if defined(Z3_STALL_SENSITIVITY) && AXIS_HAS_STALLGUARD(Z3) |
|
|
#ifndef X_INTERPOLATE |
|
|
#define Z3_SENSORLESS 1 |
|
|
#define X_INTERPOLATE INTERPOLATE |
|
|
#endif |
|
|
#endif |
|
|
#if defined(Z4_STALL_SENSITIVITY) && AXIS_HAS_STALLGUARD(Z4) |
|
|
#ifndef X_HOLD_MULTIPLIER |
|
|
#define Z4_SENSORLESS 1 |
|
|
#define X_HOLD_MULTIPLIER HOLD_MULTIPLIER |
|
|
#endif |
|
|
#endif |
|
|
#if defined(I_STALL_SENSITIVITY) && AXIS_HAS_STALLGUARD(I) |
|
|
#ifndef X_SLAVE_ADDRESS |
|
|
#define I_SENSORLESS 1 |
|
|
#define X_SLAVE_ADDRESS 0 |
|
|
#endif |
|
|
#endif |
|
|
#if defined(J_STALL_SENSITIVITY) && AXIS_HAS_STALLGUARD(J) |
|
|
|
|
|
#define J_SENSORLESS 1 |
|
|
|
|
|
#endif |
|
|
|
|
|
#if defined(K_STALL_SENSITIVITY) && AXIS_HAS_STALLGUARD(K) |
|
|
|
|
|
#define K_SENSORLESS 1 |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if AXIS_HAS_STEALTHCHOP(X) |
|
|
#if AXIS_IS_TMC(X2) |
|
|
#define X_HAS_STEALTHCHOP 1 |
|
|
#if defined(X2_STALL_SENSITIVITY) && AXIS_HAS_STALLGUARD(X2) |
|
|
|
|
|
#define X2_SENSORLESS 1 |
|
|
#endif |
|
|
#endif |
|
|
#if AXIS_HAS_STEALTHCHOP(X2) |
|
|
#if AXIS_HAS_STEALTHCHOP(X2) |
|
|
#define X2_HAS_STEALTHCHOP 1 |
|
|
#define X2_HAS_STEALTHCHOP 1 |
|
|
#endif |
|
|
#endif |
|
|
#if AXIS_HAS_STEALTHCHOP(Y) |
|
|
#ifndef X2_INTERPOLATE |
|
|
#define Y_HAS_STEALTHCHOP 1 |
|
|
#define X2_INTERPOLATE X_INTERPOLATE |
|
|
#endif |
|
|
#endif |
|
|
#if AXIS_HAS_STEALTHCHOP(Y2) |
|
|
#ifndef X2_HOLD_MULTIPLIER |
|
|
#define Y2_HAS_STEALTHCHOP 1 |
|
|
#define X2_HOLD_MULTIPLIER X_HOLD_MULTIPLIER |
|
|
#endif |
|
|
#endif |
|
|
#if AXIS_HAS_STEALTHCHOP(Z) |
|
|
#ifndef X2_SLAVE_ADDRESS |
|
|
#define Z_HAS_STEALTHCHOP 1 |
|
|
#define X2_SLAVE_ADDRESS 0 |
|
|
#endif |
|
|
#endif |
|
|
#if AXIS_HAS_STEALTHCHOP(Z2) |
|
|
|
|
|
#define Z2_HAS_STEALTHCHOP 1 |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
#if AXIS_HAS_STEALTHCHOP(Z3) |
|
|
|
|
|
#define Z3_HAS_STEALTHCHOP 1 |
|
|
#if AXIS_IS_TMC(Y) |
|
|
|
|
|
#if defined(Y_STALL_SENSITIVITY) && AXIS_HAS_STALLGUARD(Y) |
|
|
|
|
|
#define Y_SENSORLESS 1 |
|
|
#endif |
|
|
#endif |
|
|
#if AXIS_HAS_STEALTHCHOP(Z4) |
|
|
#if AXIS_HAS_STEALTHCHOP(Y) |
|
|
#define Z4_HAS_STEALTHCHOP 1 |
|
|
#define Y_HAS_STEALTHCHOP 1 |
|
|
#endif |
|
|
#endif |
|
|
#if AXIS_HAS_STEALTHCHOP(I) |
|
|
#if ENABLED(SPI_ENDSTOPS) |
|
|
#define I_HAS_STEALTHCHOP 1 |
|
|
#define Y_SPI_SENSORLESS Y_SENSORLESS |
|
|
#endif |
|
|
#endif |
|
|
#if AXIS_HAS_STEALTHCHOP(J) |
|
|
#ifndef Y_INTERPOLATE |
|
|
#define J_HAS_STEALTHCHOP 1 |
|
|
#define Y_INTERPOLATE INTERPOLATE |
|
|
#endif |
|
|
#endif |
|
|
#if AXIS_HAS_STEALTHCHOP(K) |
|
|
#ifndef Y_HOLD_MULTIPLIER |
|
|
#define K_HAS_STEALTHCHOP 1 |
|
|
#define Y_HOLD_MULTIPLIER HOLD_MULTIPLIER |
|
|
#endif |
|
|
#endif |
|
|
#if E_STEPPERS > 0 && AXIS_HAS_STEALTHCHOP(E0) |
|
|
#ifndef Y_SLAVE_ADDRESS |
|
|
#define E0_HAS_STEALTHCHOP 1 |
|
|
#define Y_SLAVE_ADDRESS 0 |
|
|
#endif |
|
|
#endif |
|
|
#if E_STEPPERS > 1 && AXIS_HAS_STEALTHCHOP(E1) |
|
|
#if ENABLED(Y_DUAL_STEPPER_DRIVERS) |
|
|
#define E1_HAS_STEALTHCHOP 1 |
|
|
#if defined(Y2_STALL_SENSITIVITY) && AXIS_HAS_STALLGUARD(Y2) |
|
|
|
|
|
#define Y2_SENSORLESS 1 |
|
|
#endif |
|
|
#endif |
|
|
#if E_STEPPERS > 2 && AXIS_HAS_STEALTHCHOP(E2) |
|
|
#if AXIS_HAS_STEALTHCHOP(Y2) |
|
|
#define E2_HAS_STEALTHCHOP 1 |
|
|
#define Y2_HAS_STEALTHCHOP 1 |
|
|
#endif |
|
|
#endif |
|
|
#if E_STEPPERS > 3 && AXIS_HAS_STEALTHCHOP(E3) |
|
|
#ifndef Y2_INTERPOLATE |
|
|
#define E3_HAS_STEALTHCHOP 1 |
|
|
#define Y2_INTERPOLATE Y_INTERPOLATE |
|
|
#endif |
|
|
#endif |
|
|
#if E_STEPPERS > 4 && AXIS_HAS_STEALTHCHOP(E4) |
|
|
#ifndef Y2_HOLD_MULTIPLIER |
|
|
#define E4_HAS_STEALTHCHOP 1 |
|
|
#define Y2_HOLD_MULTIPLIER Y_HOLD_MULTIPLIER |
|
|
#endif |
|
|
#endif |
|
|
#if E_STEPPERS > 5 && AXIS_HAS_STEALTHCHOP(E5) |
|
|
#ifndef Y2_SLAVE_ADDRESS |
|
|
#define E5_HAS_STEALTHCHOP 1 |
|
|
#define Y2_SLAVE_ADDRESS 0 |
|
|
#endif |
|
|
#endif |
|
|
#if E_STEPPERS > 6 && AXIS_HAS_STEALTHCHOP(E6) |
|
|
|
|
|
#define E6_HAS_STEALTHCHOP 1 |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
#if E_STEPPERS > 7 && AXIS_HAS_STEALTHCHOP(E7) |
|
|
|
|
|
#define E7_HAS_STEALTHCHOP 1 |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if ENABLED(SPI_ENDSTOPS) |
|
|
#if AXIS_IS_TMC(Z) |
|
|
#define X_SPI_SENSORLESS X_SENSORLESS |
|
|
#if defined(Z_STALL_SENSITIVITY) && AXIS_HAS_STALLGUARD(Z) |
|
|
#if HAS_Y_AXIS |
|
|
#define Z_SENSORLESS 1 |
|
|
#define Y_SPI_SENSORLESS Y_SENSORLESS |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
#if HAS_Z_AXIS |
|
|
#if AXIS_HAS_STEALTHCHOP(Z) |
|
|
|
|
|
#define Z_HAS_STEALTHCHOP 1 |
|
|
|
|
|
#endif |
|
|
|
|
|
#if ENABLED(SPI_ENDSTOPS) |
|
|
#define Z_SPI_SENSORLESS Z_SENSORLESS |
|
|
#define Z_SPI_SENSORLESS Z_SENSORLESS |
|
|
#endif |
|
|
#endif |
|
|
#if LINEAR_AXES >= 4 |
|
|
#ifndef Z_INTERPOLATE |
|
|
#define I_SPI_SENSORLESS I_SENSORLESS |
|
|
#define Z_INTERPOLATE INTERPOLATE |
|
|
#endif |
|
|
#endif |
|
|
#if LINEAR_AXES >= 5 |
|
|
#ifndef Z_HOLD_MULTIPLIER |
|
|
#define J_SPI_SENSORLESS J_SENSORLESS |
|
|
#define Z_HOLD_MULTIPLIER HOLD_MULTIPLIER |
|
|
#endif |
|
|
#endif |
|
|
#if LINEAR_AXES >= 6 |
|
|
#ifndef Z_SLAVE_ADDRESS |
|
|
#define K_SPI_SENSORLESS K_SENSORLESS |
|
|
#define Z_SLAVE_ADDRESS 0 |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
#if NUM_Z_STEPPER_DRIVERS >= 2 |
|
|
|
|
|
#if defined(Z2_STALL_SENSITIVITY) && AXIS_HAS_STALLGUARD(Z2) |
|
|
|
|
|
#define Z2_SENSORLESS 1 |
|
|
#endif |
|
|
#endif |
|
|
#ifndef X_INTERPOLATE |
|
|
#if AXIS_HAS_STEALTHCHOP(Z2) |
|
|
#define X_INTERPOLATE INTERPOLATE |
|
|
#define Z2_HAS_STEALTHCHOP 1 |
|
|
#endif |
|
|
#endif |
|
|
#ifndef X2_INTERPOLATE |
|
|
#ifndef Z2_INTERPOLATE |
|
|
#define X2_INTERPOLATE INTERPOLATE |
|
|
#define Z2_INTERPOLATE Z_INTERPOLATE |
|
|
#endif |
|
|
#endif |
|
|
#ifndef Y_INTERPOLATE |
|
|
#ifndef Z2_HOLD_MULTIPLIER |
|
|
#define Y_INTERPOLATE INTERPOLATE |
|
|
#define Z2_HOLD_MULTIPLIER Z_HOLD_MULTIPLIER |
|
|
#endif |
|
|
#endif |
|
|
#ifndef Y2_INTERPOLATE |
|
|
#ifndef Z2_SLAVE_ADDRESS |
|
|
#define Y2_INTERPOLATE INTERPOLATE |
|
|
#define Z2_SLAVE_ADDRESS 0 |
|
|
#endif |
|
|
#endif |
|
|
#ifndef Z_INTERPOLATE |
|
|
|
|
|
#define Z_INTERPOLATE INTERPOLATE |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
#ifndef Z2_INTERPOLATE |
|
|
#if NUM_Z_STEPPER_DRIVERS >= 3 |
|
|
#define Z2_INTERPOLATE INTERPOLATE |
|
|
#if defined(Z3_STALL_SENSITIVITY) && AXIS_HAS_STALLGUARD(Z3) |
|
|
|
|
|
#define Z3_SENSORLESS 1 |
|
|
|
|
|
#endif |
|
|
|
|
|
#if AXIS_HAS_STEALTHCHOP(Z3) |
|
|
|
|
|
#define Z3_HAS_STEALTHCHOP 1 |
|
|
#endif |
|
|
#endif |
|
|
#ifndef Z3_INTERPOLATE |
|
|
#ifndef Z3_INTERPOLATE |
|
|
#define Z3_INTERPOLATE INTERPOLATE |
|
|
#define Z3_INTERPOLATE Z_INTERPOLATE |
|
|
#endif |
|
|
#endif |
|
|
#ifndef Z4_INTERPOLATE |
|
|
#ifndef Z3_HOLD_MULTIPLIER |
|
|
#define Z4_INTERPOLATE INTERPOLATE |
|
|
#define Z3_HOLD_MULTIPLIER Z_HOLD_MULTIPLIER |
|
|
#endif |
|
|
#endif |
|
|
#if LINEAR_AXES >= 4 && !defined(I_INTERPOLATE) |
|
|
#ifndef Z3_SLAVE_ADDRESS |
|
|
#define I_INTERPOLATE INTERPOLATE |
|
|
#define Z3_SLAVE_ADDRESS 0 |
|
|
#endif |
|
|
#endif |
|
|
#if LINEAR_AXES >= 5 && !defined(J_INTERPOLATE) |
|
|
|
|
|
#define J_INTERPOLATE INTERPOLATE |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
#if LINEAR_AXES >= 6 && !defined(K_INTERPOLATE) |
|
|
#if NUM_Z_STEPPER_DRIVERS >= 4 |
|
|
#define K_INTERPOLATE INTERPOLATE |
|
|
#if defined(Z4_STALL_SENSITIVITY) && AXIS_HAS_STALLGUARD(Z4) |
|
|
|
|
|
#define Z4_SENSORLESS 1 |
|
|
#endif |
|
|
#endif |
|
|
#ifndef E0_INTERPOLATE |
|
|
#if AXIS_HAS_STEALTHCHOP(Z4) |
|
|
#define E0_INTERPOLATE INTERPOLATE |
|
|
#define Z4_HAS_STEALTHCHOP 1 |
|
|
#endif |
|
|
#endif |
|
|
#ifndef E1_INTERPOLATE |
|
|
#ifndef Z4_INTERPOLATE |
|
|
#define E1_INTERPOLATE INTERPOLATE |
|
|
#define Z4_INTERPOLATE Z_INTERPOLATE |
|
|
#endif |
|
|
#endif |
|
|
#ifndef E2_INTERPOLATE |
|
|
#ifndef Z4_HOLD_MULTIPLIER |
|
|
#define E2_INTERPOLATE INTERPOLATE |
|
|
#define Z4_HOLD_MULTIPLIER Z_HOLD_MULTIPLIER |
|
|
#endif |
|
|
#endif |
|
|
#ifndef E3_INTERPOLATE |
|
|
#ifndef Z4_SLAVE_ADDRESS |
|
|
#define E3_INTERPOLATE INTERPOLATE |
|
|
#define Z4_SLAVE_ADDRESS 0 |
|
|
#endif |
|
|
#endif |
|
|
#ifndef E4_INTERPOLATE |
|
|
|
|
|
#define E4_INTERPOLATE INTERPOLATE |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
#ifndef E5_INTERPOLATE |
|
|
|
|
|
#define E5_INTERPOLATE INTERPOLATE |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
#ifndef E6_INTERPOLATE |
|
|
|
|
|
#define E6_INTERPOLATE INTERPOLATE |
|
|
#if AXIS_IS_TMC(I) |
|
|
|
|
|
#if defined(I_STALL_SENSITIVITY) && AXIS_HAS_STALLGUARD(I) |
|
|
|
|
|
#define I_SENSORLESS 1 |
|
|
#endif |
|
|
#endif |
|
|
#ifndef E7_INTERPOLATE |
|
|
#if AXIS_HAS_STEALTHCHOP(I) |
|
|
#define E7_INTERPOLATE INTERPOLATE |
|
|
#define I_HAS_STEALTHCHOP 1 |
|
|
#endif |
|
|
#endif |
|
|
#ifndef X_SLAVE_ADDRESS |
|
|
#if ENABLED(SPI_ENDSTOPS) |
|
|
#define X_SLAVE_ADDRESS 0 |
|
|
#define I_SPI_SENSORLESS I_SENSORLESS |
|
|
#endif |
|
|
#endif |
|
|
#ifndef Y_SLAVE_ADDRESS |
|
|
#ifndef I_INTERPOLATE |
|
|
#define Y_SLAVE_ADDRESS 0 |
|
|
#define I_INTERPOLATE INTERPOLATE |
|
|
#endif |
|
|
#endif |
|
|
#ifndef Z_SLAVE_ADDRESS |
|
|
#ifndef I_HOLD_MULTIPLIER |
|
|
#define Z_SLAVE_ADDRESS 0 |
|
|
#define I_HOLD_MULTIPLIER HOLD_MULTIPLIER |
|
|
#endif |
|
|
#endif |
|
|
#ifndef I_SLAVE_ADDRESS |
|
|
#ifndef I_SLAVE_ADDRESS |
|
|
#define I_SLAVE_ADDRESS 0 |
|
|
#define I_SLAVE_ADDRESS 0 |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if AXIS_IS_TMC(J) |
|
|
|
|
|
#if defined(J_STALL_SENSITIVITY) && AXIS_HAS_STALLGUARD(J) |
|
|
|
|
|
#define J_SENSORLESS 1 |
|
|
|
|
|
#endif |
|
|
|
|
|
#if AXIS_HAS_STEALTHCHOP(J) |
|
|
|
|
|
#define J_HAS_STEALTHCHOP 1 |
|
|
|
|
|
#endif |
|
|
|
|
|
#if ENABLED(SPI_ENDSTOPS) |
|
|
|
|
|
#define J_SPI_SENSORLESS J_SENSORLESS |
|
|
|
|
|
#endif |
|
|
|
|
|
#ifndef J_INTERPOLATE |
|
|
|
|
|
#define J_INTERPOLATE INTERPOLATE |
|
|
|
|
|
#endif |
|
|
|
|
|
#ifndef J_HOLD_MULTIPLIER |
|
|
|
|
|
#define J_HOLD_MULTIPLIER HOLD_MULTIPLIER |
|
|
|
|
|
#endif |
|
|
#ifndef J_SLAVE_ADDRESS |
|
|
#ifndef J_SLAVE_ADDRESS |
|
|
#define J_SLAVE_ADDRESS 0 |
|
|
#define J_SLAVE_ADDRESS 0 |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if AXIS_IS_TMC(K) |
|
|
|
|
|
#if defined(K_STALL_SENSITIVITY) && AXIS_HAS_STALLGUARD(K) |
|
|
|
|
|
#define K_SENSORLESS 1 |
|
|
|
|
|
#endif |
|
|
|
|
|
#if AXIS_HAS_STEALTHCHOP(K) |
|
|
|
|
|
#define K_HAS_STEALTHCHOP 1 |
|
|
|
|
|
#endif |
|
|
|
|
|
#if ENABLED(SPI_ENDSTOPS) |
|
|
|
|
|
#define K_SPI_SENSORLESS K_SENSORLESS |
|
|
|
|
|
#endif |
|
|
|
|
|
#ifndef K_INTERPOLATE |
|
|
|
|
|
#define K_INTERPOLATE INTERPOLATE |
|
|
|
|
|
#endif |
|
|
|
|
|
#ifndef K_HOLD_MULTIPLIER |
|
|
|
|
|
#define K_HOLD_MULTIPLIER HOLD_MULTIPLIER |
|
|
|
|
|
#endif |
|
|
#ifndef K_SLAVE_ADDRESS |
|
|
#ifndef K_SLAVE_ADDRESS |
|
|
#define K_SLAVE_ADDRESS 0 |
|
|
#define K_SLAVE_ADDRESS 0 |
|
|
#endif |
|
|
#endif |
|
|
#ifndef X2_SLAVE_ADDRESS |
|
|
|
|
|
#define X2_SLAVE_ADDRESS 0 |
|
|
|
|
|
#endif |
|
|
|
|
|
#ifndef Y2_SLAVE_ADDRESS |
|
|
|
|
|
#define Y2_SLAVE_ADDRESS 0 |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
#ifndef Z2_SLAVE_ADDRESS |
|
|
|
|
|
#define Z2_SLAVE_ADDRESS 0 |
|
|
#if AXIS_IS_TMC(E0) |
|
|
|
|
|
#if AXIS_HAS_STEALTHCHOP(E0) |
|
|
|
|
|
#define E0_HAS_STEALTHCHOP 1 |
|
|
#endif |
|
|
#endif |
|
|
#ifndef Z3_SLAVE_ADDRESS |
|
|
#ifndef E0_INTERPOLATE |
|
|
#define Z3_SLAVE_ADDRESS 0 |
|
|
#define E0_INTERPOLATE INTERPOLATE |
|
|
#endif |
|
|
#endif |
|
|
#ifndef Z4_SLAVE_ADDRESS |
|
|
#ifndef E0_HOLD_MULTIPLIER |
|
|
#define Z4_SLAVE_ADDRESS 0 |
|
|
#define E0_HOLD_MULTIPLIER HOLD_MULTIPLIER |
|
|
#endif |
|
|
#endif |
|
|
#ifndef E0_SLAVE_ADDRESS |
|
|
#ifndef E0_SLAVE_ADDRESS |
|
|
#define E0_SLAVE_ADDRESS 0 |
|
|
#define E0_SLAVE_ADDRESS 0 |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
#endif |
|
|
|
|
|
#if AXIS_IS_TMC(E1) |
|
|
|
|
|
#if AXIS_HAS_STEALTHCHOP(E1) |
|
|
|
|
|
#define E1_HAS_STEALTHCHOP 1 |
|
|
|
|
|
#endif |
|
|
|
|
|
#ifndef E1_INTERPOLATE |
|
|
|
|
|
#define E1_INTERPOLATE E0_INTERPOLATE |
|
|
|
|
|
#endif |
|
|
|
|
|
#ifndef E1_HOLD_MULTIPLIER |
|
|
|
|
|
#define E1_HOLD_MULTIPLIER E0_HOLD_MULTIPLIER |
|
|
|
|
|
#endif |
|
|
#ifndef E1_SLAVE_ADDRESS |
|
|
#ifndef E1_SLAVE_ADDRESS |
|
|
#define E1_SLAVE_ADDRESS 0 |
|
|
#define E1_SLAVE_ADDRESS 0 |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
#endif |
|
|
|
|
|
#if AXIS_IS_TMC(E2) |
|
|
|
|
|
#if AXIS_HAS_STEALTHCHOP(E2) |
|
|
|
|
|
#define E2_HAS_STEALTHCHOP 1 |
|
|
|
|
|
#endif |
|
|
|
|
|
#ifndef E2_INTERPOLATE |
|
|
|
|
|
#define E2_INTERPOLATE E0_INTERPOLATE |
|
|
|
|
|
#endif |
|
|
|
|
|
#ifndef E2_HOLD_MULTIPLIER |
|
|
|
|
|
#define E2_HOLD_MULTIPLIER E0_HOLD_MULTIPLIER |
|
|
|
|
|
#endif |
|
|
#ifndef E2_SLAVE_ADDRESS |
|
|
#ifndef E2_SLAVE_ADDRESS |
|
|
#define E2_SLAVE_ADDRESS 0 |
|
|
#define E2_SLAVE_ADDRESS 0 |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
#endif |
|
|
|
|
|
#if AXIS_IS_TMC(E3) |
|
|
|
|
|
#if AXIS_HAS_STEALTHCHOP(E3) |
|
|
|
|
|
#define E3_HAS_STEALTHCHOP 1 |
|
|
|
|
|
#endif |
|
|
|
|
|
#ifndef E3_INTERPOLATE |
|
|
|
|
|
#define E3_INTERPOLATE E0_INTERPOLATE |
|
|
|
|
|
#endif |
|
|
|
|
|
#ifndef E3_HOLD_MULTIPLIER |
|
|
|
|
|
#define E3_HOLD_MULTIPLIER E0_HOLD_MULTIPLIER |
|
|
|
|
|
#endif |
|
|
#ifndef E3_SLAVE_ADDRESS |
|
|
#ifndef E3_SLAVE_ADDRESS |
|
|
#define E3_SLAVE_ADDRESS 0 |
|
|
#define E3_SLAVE_ADDRESS 0 |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
#endif |
|
|
|
|
|
#if AXIS_IS_TMC(E4) |
|
|
|
|
|
#if AXIS_HAS_STEALTHCHOP(E4) |
|
|
|
|
|
#define E4_HAS_STEALTHCHOP 1 |
|
|
|
|
|
#endif |
|
|
|
|
|
#ifndef E4_INTERPOLATE |
|
|
|
|
|
#define E4_INTERPOLATE E0_INTERPOLATE |
|
|
|
|
|
#endif |
|
|
|
|
|
#ifndef E4_HOLD_MULTIPLIER |
|
|
|
|
|
#define E4_HOLD_MULTIPLIER E0_HOLD_MULTIPLIER |
|
|
|
|
|
#endif |
|
|
#ifndef E4_SLAVE_ADDRESS |
|
|
#ifndef E4_SLAVE_ADDRESS |
|
|
#define E4_SLAVE_ADDRESS 0 |
|
|
#define E4_SLAVE_ADDRESS 0 |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
#endif |
|
|
|
|
|
#if AXIS_IS_TMC(E5) |
|
|
|
|
|
#if AXIS_HAS_STEALTHCHOP(E5) |
|
|
|
|
|
#define E5_HAS_STEALTHCHOP 1 |
|
|
|
|
|
#endif |
|
|
|
|
|
#ifndef E5_INTERPOLATE |
|
|
|
|
|
#define E5_INTERPOLATE E0_INTERPOLATE |
|
|
|
|
|
#endif |
|
|
|
|
|
#ifndef E5_HOLD_MULTIPLIER |
|
|
|
|
|
#define E5_HOLD_MULTIPLIER E0_HOLD_MULTIPLIER |
|
|
|
|
|
#endif |
|
|
#ifndef E5_SLAVE_ADDRESS |
|
|
#ifndef E5_SLAVE_ADDRESS |
|
|
#define E5_SLAVE_ADDRESS 0 |
|
|
#define E5_SLAVE_ADDRESS 0 |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
#endif |
|
|
|
|
|
#if AXIS_IS_TMC(E6) |
|
|
|
|
|
#if AXIS_HAS_STEALTHCHOP(E6) |
|
|
|
|
|
#define E6_HAS_STEALTHCHOP 1 |
|
|
|
|
|
#endif |
|
|
|
|
|
#ifndef E6_INTERPOLATE |
|
|
|
|
|
#define E6_INTERPOLATE E0_INTERPOLATE |
|
|
|
|
|
#endif |
|
|
|
|
|
#ifndef E6_HOLD_MULTIPLIER |
|
|
|
|
|
#define E6_HOLD_MULTIPLIER E0_HOLD_MULTIPLIER |
|
|
|
|
|
#endif |
|
|
#ifndef E6_SLAVE_ADDRESS |
|
|
#ifndef E6_SLAVE_ADDRESS |
|
|
#define E6_SLAVE_ADDRESS 0 |
|
|
#define E6_SLAVE_ADDRESS 0 |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
#endif |
|
|
|
|
|
#if AXIS_IS_TMC(E7) |
|
|
|
|
|
#if AXIS_HAS_STEALTHCHOP(E7) |
|
|
|
|
|
#define E7_HAS_STEALTHCHOP 1 |
|
|
|
|
|
#endif |
|
|
|
|
|
#ifndef E7_INTERPOLATE |
|
|
|
|
|
#define E7_INTERPOLATE E0_INTERPOLATE |
|
|
|
|
|
#endif |
|
|
|
|
|
#ifndef E7_HOLD_MULTIPLIER |
|
|
|
|
|
#define E7_HOLD_MULTIPLIER E0_HOLD_MULTIPLIER |
|
|
|
|
|
#endif |
|
|
#ifndef E7_SLAVE_ADDRESS |
|
|
#ifndef E7_SLAVE_ADDRESS |
|
|
#define E7_SLAVE_ADDRESS 0 |
|
|
#define E7_SLAVE_ADDRESS 0 |
|
|
#endif |
|
|
#endif |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
#endif // HAS_TRINAMIC_CONFIG
|
|
|
|
|
|
|
|
|
#if ANY_AXIS_HAS(HW_SERIAL) |
|
|
#if ANY_AXIS_HAS(HW_SERIAL) |
|
|
#define HAS_TMC_HW_SERIAL 1 |
|
|
#define HAS_TMC_HW_SERIAL 1 |
|
|