Consolidate smart stepper driver initialization

This commit is contained in:
Scott Lahteine 2018-03-18 18:33:56 -05:00
parent 72776f647b
commit a03502080e
5 changed files with 180 additions and 119 deletions

View file

@ -948,31 +948,6 @@ void Stepper::init() {
microstep_init();
#endif
// Init TMC Steppers
#if ENABLED(HAVE_TMC26X)
tmc_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;