mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-06-30 10:50:44 +00:00
Consolidate smart stepper driver initialization
This commit is contained in:
parent
53362b81cc
commit
48d7036874
5 changed files with 173 additions and 146 deletions
Marlin/src/module
|
@ -921,31 +921,6 @@ void Stepper::init() {
|
|||
microstep_init();
|
||||
#endif
|
||||
|
||||
// Init TMC Steppers
|
||||
#if ENABLED(HAVE_TMC26X)
|
||||
tmc26x_init();
|
||||
#endif
|
||||
|
||||
// Init TMC2130 Steppers
|
||||
#if ENABLED(HAVE_TMC2130)
|
||||
tmc2130_init();
|
||||
#endif
|
||||
|
||||
// Init TMC2208 Steppers
|
||||
#if ENABLED(HAVE_TMC2208)
|
||||
tmc2208_init();
|
||||
#endif
|
||||
|
||||
// TRAMS, TMC2130 and TMC2208 advanced settings
|
||||
#if HAS_TRINAMIC
|
||||
TMC_ADV()
|
||||
#endif
|
||||
|
||||
// Init L6470 Steppers
|
||||
#if ENABLED(HAVE_L6470DRIVER)
|
||||
L6470_init();
|
||||
#endif
|
||||
|
||||
// Init Dir Pins
|
||||
#if HAS_X_DIR
|
||||
X_DIR_INIT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue