Updates to support 5 extruders

This commit is contained in:
Scott Lahteine
2017-04-09 03:23:05 -05:00
parent 2b88ccd0aa
commit c54f6cf23d
74 changed files with 446 additions and 89 deletions

View File

@ -75,6 +75,9 @@
#if ENABLED(E3_IS_TMC)
_TMC_DEFINE(E3);
#endif
#if ENABLED(E4_IS_TMC)
_TMC_DEFINE(E4);
#endif
#define _TMC_INIT(A) do{ \
stepper##A.setMicrosteps(A##_MICROSTEPS); \
@ -112,6 +115,9 @@
#if ENABLED(E3_IS_TMC)
_TMC_INIT(E3);
#endif
#if ENABLED(E4_IS_TMC)
_TMC_INIT(E4);
#endif
}
#endif // HAVE_TMCDRIVER
@ -157,6 +163,9 @@
#if ENABLED(E3_IS_TMC2130)
_TMC2130_DEFINE(E3);
#endif
#if ENABLED(E4_IS_TMC2130)
_TMC2130_DEFINE(E4);
#endif
// Use internal reference voltage for current calculations. This is the default.
// Following values from Trinamic's spreadsheet with values for a NEMA17 (42BYGHW609)
@ -213,6 +222,9 @@
#if ENABLED(E3_IS_TMC2130)
_TMC2130_INIT(E3);
#endif
#if ENABLED(E4_IS_TMC2130)
_TMC2130_INIT(E4);
#endif
TMC2130_ADV()
}
@ -260,6 +272,9 @@
#if ENABLED(E3_IS_L6470)
_L6470_DEFINE(E3);
#endif
#if ENABLED(E4_IS_L6470)
_L6470_DEFINE(E4);
#endif
#define _L6470_INIT(A) do{ \
stepper##A.init(A##_K_VAL); \
@ -300,6 +315,9 @@
#if ENABLED(E3_IS_L6470)
_L6470_INIT(E3);
#endif
#if ENABLED(E4_IS_L6470)
_L6470_INIT(E4);
#endif
}
#endif // HAVE_L6470DRIVER