mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-30 07:17:59 +00:00
🔧 TMC Config Inheritance
This commit is contained in:
parent
673e6d5380
commit
5abb594f01
@ -2856,10 +2856,10 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if AXIS_IS_TMC_CONFIG(X2)
|
#if AXIS_IS_TMC_CONFIG(X2)
|
||||||
#define X2_CURRENT 800
|
#define X2_CURRENT X_CURRENT
|
||||||
#define X2_CURRENT_HOME X2_CURRENT
|
#define X2_CURRENT_HOME X2_CURRENT
|
||||||
#define X2_MICROSTEPS X_MICROSTEPS
|
#define X2_MICROSTEPS X_MICROSTEPS
|
||||||
#define X2_RSENSE 0.11
|
#define X2_RSENSE X_RSENSE
|
||||||
#define X2_CHAIN_POS -1
|
#define X2_CHAIN_POS -1
|
||||||
//#define X2_INTERPOLATE true
|
//#define X2_INTERPOLATE true
|
||||||
//#define X2_HOLD_MULTIPLIER 0.5
|
//#define X2_HOLD_MULTIPLIER 0.5
|
||||||
@ -2876,10 +2876,10 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if AXIS_IS_TMC_CONFIG(Y2)
|
#if AXIS_IS_TMC_CONFIG(Y2)
|
||||||
#define Y2_CURRENT 800
|
#define Y2_CURRENT Y_CURRENT
|
||||||
#define Y2_CURRENT_HOME Y2_CURRENT
|
#define Y2_CURRENT_HOME Y2_CURRENT
|
||||||
#define Y2_MICROSTEPS Y_MICROSTEPS
|
#define Y2_MICROSTEPS Y_MICROSTEPS
|
||||||
#define Y2_RSENSE 0.11
|
#define Y2_RSENSE Y_RSENSE
|
||||||
#define Y2_CHAIN_POS -1
|
#define Y2_CHAIN_POS -1
|
||||||
//#define Y2_INTERPOLATE true
|
//#define Y2_INTERPOLATE true
|
||||||
//#define Y2_HOLD_MULTIPLIER 0.5
|
//#define Y2_HOLD_MULTIPLIER 0.5
|
||||||
@ -2896,30 +2896,30 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if AXIS_IS_TMC_CONFIG(Z2)
|
#if AXIS_IS_TMC_CONFIG(Z2)
|
||||||
#define Z2_CURRENT 800
|
#define Z2_CURRENT Z_CURRENT
|
||||||
#define Z2_CURRENT_HOME Z2_CURRENT
|
#define Z2_CURRENT_HOME Z2_CURRENT
|
||||||
#define Z2_MICROSTEPS Z_MICROSTEPS
|
#define Z2_MICROSTEPS Z_MICROSTEPS
|
||||||
#define Z2_RSENSE 0.11
|
#define Z2_RSENSE Z_RSENSE
|
||||||
#define Z2_CHAIN_POS -1
|
#define Z2_CHAIN_POS -1
|
||||||
//#define Z2_INTERPOLATE true
|
//#define Z2_INTERPOLATE true
|
||||||
//#define Z2_HOLD_MULTIPLIER 0.5
|
//#define Z2_HOLD_MULTIPLIER 0.5
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if AXIS_IS_TMC_CONFIG(Z3)
|
#if AXIS_IS_TMC_CONFIG(Z3)
|
||||||
#define Z3_CURRENT 800
|
#define Z3_CURRENT Z_CURRENT
|
||||||
#define Z3_CURRENT_HOME Z3_CURRENT
|
#define Z3_CURRENT_HOME Z3_CURRENT
|
||||||
#define Z3_MICROSTEPS Z_MICROSTEPS
|
#define Z3_MICROSTEPS Z_MICROSTEPS
|
||||||
#define Z3_RSENSE 0.11
|
#define Z3_RSENSE Z_RSENSE
|
||||||
#define Z3_CHAIN_POS -1
|
#define Z3_CHAIN_POS -1
|
||||||
//#define Z3_INTERPOLATE true
|
//#define Z3_INTERPOLATE true
|
||||||
//#define Z3_HOLD_MULTIPLIER 0.5
|
//#define Z3_HOLD_MULTIPLIER 0.5
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if AXIS_IS_TMC_CONFIG(Z4)
|
#if AXIS_IS_TMC_CONFIG(Z4)
|
||||||
#define Z4_CURRENT 800
|
#define Z4_CURRENT Z_CURRENT
|
||||||
#define Z4_CURRENT_HOME Z4_CURRENT
|
#define Z4_CURRENT_HOME Z4_CURRENT
|
||||||
#define Z4_MICROSTEPS Z_MICROSTEPS
|
#define Z4_MICROSTEPS Z_MICROSTEPS
|
||||||
#define Z4_RSENSE 0.11
|
#define Z4_RSENSE Z_RSENSE
|
||||||
#define Z4_CHAIN_POS -1
|
#define Z4_CHAIN_POS -1
|
||||||
//#define Z4_INTERPOLATE true
|
//#define Z4_INTERPOLATE true
|
||||||
//#define Z4_HOLD_MULTIPLIER 0.5
|
//#define Z4_HOLD_MULTIPLIER 0.5
|
||||||
@ -2995,63 +2995,63 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if AXIS_IS_TMC_CONFIG(E1)
|
#if AXIS_IS_TMC_CONFIG(E1)
|
||||||
#define E1_CURRENT 800
|
#define E1_CURRENT E0_CURRENT
|
||||||
#define E1_MICROSTEPS E0_MICROSTEPS
|
#define E1_MICROSTEPS E0_MICROSTEPS
|
||||||
#define E1_RSENSE 0.11
|
#define E1_RSENSE E0_RSENSE
|
||||||
#define E1_CHAIN_POS -1
|
#define E1_CHAIN_POS -1
|
||||||
//#define E1_INTERPOLATE true
|
//#define E1_INTERPOLATE true
|
||||||
//#define E1_HOLD_MULTIPLIER 0.5
|
//#define E1_HOLD_MULTIPLIER 0.5
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if AXIS_IS_TMC_CONFIG(E2)
|
#if AXIS_IS_TMC_CONFIG(E2)
|
||||||
#define E2_CURRENT 800
|
#define E2_CURRENT E0_CURRENT
|
||||||
#define E2_MICROSTEPS E0_MICROSTEPS
|
#define E2_MICROSTEPS E0_MICROSTEPS
|
||||||
#define E2_RSENSE 0.11
|
#define E2_RSENSE E0_RSENSE
|
||||||
#define E2_CHAIN_POS -1
|
#define E2_CHAIN_POS -1
|
||||||
//#define E2_INTERPOLATE true
|
//#define E2_INTERPOLATE true
|
||||||
//#define E2_HOLD_MULTIPLIER 0.5
|
//#define E2_HOLD_MULTIPLIER 0.5
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if AXIS_IS_TMC_CONFIG(E3)
|
#if AXIS_IS_TMC_CONFIG(E3)
|
||||||
#define E3_CURRENT 800
|
#define E3_CURRENT E0_CURRENT
|
||||||
#define E3_MICROSTEPS E0_MICROSTEPS
|
#define E3_MICROSTEPS E0_MICROSTEPS
|
||||||
#define E3_RSENSE 0.11
|
#define E3_RSENSE E0_RSENSE
|
||||||
#define E3_CHAIN_POS -1
|
#define E3_CHAIN_POS -1
|
||||||
//#define E3_INTERPOLATE true
|
//#define E3_INTERPOLATE true
|
||||||
//#define E3_HOLD_MULTIPLIER 0.5
|
//#define E3_HOLD_MULTIPLIER 0.5
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if AXIS_IS_TMC_CONFIG(E4)
|
#if AXIS_IS_TMC_CONFIG(E4)
|
||||||
#define E4_CURRENT 800
|
#define E4_CURRENT E0_CURRENT
|
||||||
#define E4_MICROSTEPS E0_MICROSTEPS
|
#define E4_MICROSTEPS E0_MICROSTEPS
|
||||||
#define E4_RSENSE 0.11
|
#define E4_RSENSE E0_RSENSE
|
||||||
#define E4_CHAIN_POS -1
|
#define E4_CHAIN_POS -1
|
||||||
//#define E4_INTERPOLATE true
|
//#define E4_INTERPOLATE true
|
||||||
//#define E4_HOLD_MULTIPLIER 0.5
|
//#define E4_HOLD_MULTIPLIER 0.5
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if AXIS_IS_TMC_CONFIG(E5)
|
#if AXIS_IS_TMC_CONFIG(E5)
|
||||||
#define E5_CURRENT 800
|
#define E5_CURRENT E0_CURRENT
|
||||||
#define E5_MICROSTEPS E0_MICROSTEPS
|
#define E5_MICROSTEPS E0_MICROSTEPS
|
||||||
#define E5_RSENSE 0.11
|
#define E5_RSENSE E0_RSENSE
|
||||||
#define E5_CHAIN_POS -1
|
#define E5_CHAIN_POS -1
|
||||||
//#define E5_INTERPOLATE true
|
//#define E5_INTERPOLATE true
|
||||||
//#define E5_HOLD_MULTIPLIER 0.5
|
//#define E5_HOLD_MULTIPLIER 0.5
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if AXIS_IS_TMC_CONFIG(E6)
|
#if AXIS_IS_TMC_CONFIG(E6)
|
||||||
#define E6_CURRENT 800
|
#define E6_CURRENT E0_CURRENT
|
||||||
#define E6_MICROSTEPS E0_MICROSTEPS
|
#define E6_MICROSTEPS E0_MICROSTEPS
|
||||||
#define E6_RSENSE 0.11
|
#define E6_RSENSE E0_RSENSE
|
||||||
#define E6_CHAIN_POS -1
|
#define E6_CHAIN_POS -1
|
||||||
//#define E6_INTERPOLATE true
|
//#define E6_INTERPOLATE true
|
||||||
//#define E6_HOLD_MULTIPLIER 0.5
|
//#define E6_HOLD_MULTIPLIER 0.5
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if AXIS_IS_TMC_CONFIG(E7)
|
#if AXIS_IS_TMC_CONFIG(E7)
|
||||||
#define E7_CURRENT 800
|
#define E7_CURRENT E0_CURRENT
|
||||||
#define E7_MICROSTEPS E0_MICROSTEPS
|
#define E7_MICROSTEPS E0_MICROSTEPS
|
||||||
#define E7_RSENSE 0.11
|
#define E7_RSENSE E0_RSENSE
|
||||||
#define E7_CHAIN_POS -1
|
#define E7_CHAIN_POS -1
|
||||||
//#define E7_INTERPOLATE true
|
//#define E7_INTERPOLATE true
|
||||||
//#define E7_HOLD_MULTIPLIER 0.5
|
//#define E7_HOLD_MULTIPLIER 0.5
|
||||||
|
Loading…
Reference in New Issue
Block a user