Add support for TMC2660 (#11998)

This commit is contained in:
teemuatlut
2018-10-07 01:18:10 +03:00
committed by Scott Lahteine
parent cf0b9eb37c
commit c447d75916
11 changed files with 278 additions and 62 deletions

View File

@ -54,7 +54,8 @@ void GcodeSuite::M18_M84() {
if (parser.seen('X')) disable_X();
if (parser.seen('Y')) disable_Y();
if (parser.seen('Z')) disable_Z();
#if E0_ENABLE_PIN != X_ENABLE_PIN && E1_ENABLE_PIN != Y_ENABLE_PIN // Only disable on boards that have separate ENABLE_PINS
// Only disable on boards that have separate ENABLE_PINS or another method for disabling the driver
#if (E0_ENABLE_PIN != X_ENABLE_PIN && E1_ENABLE_PIN != Y_ENABLE_PIN) || AXIS_DRIVER_TYPE(E0, TMC2660) || AXIS_DRIVER_TYPE(E1, TMC2660) || AXIS_DRIVER_TYPE(E2, TMC2660) || AXIS_DRIVER_TYPE(E3, TMC2660) || AXIS_DRIVER_TYPE(E4, TMC2660) || AXIS_DRIVER_TYPE(E5, TMC2660)
if (parser.seen('E')) disable_e_steppers();
#endif
}

View File

@ -31,10 +31,14 @@
* M122: Debug TMC drivers
*/
void GcodeSuite::M122() {
if (parser.seen('S'))
tmc_set_report_status(parser.value_bool());
else
tmc_report_all();
#if ENABLED(MONITOR_DRIVER_STATUS)
if (parser.seen('S'))
tmc_set_report_status(parser.value_bool());
else
#endif
tmc_report_all();
}
#endif // TMC_DEBUG