|
|
|
@ -236,37 +236,6 @@
|
|
|
|
|
#define MAX_AUTORETRACT 99
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
// MS1 MS2 MS3 Stepper Driver Microstepping mode table
|
|
|
|
|
#if DISABLED(MICROSTEP_CUSTOM)
|
|
|
|
|
#define MICROSTEP1 LOW,LOW,LOW
|
|
|
|
|
#if ENABLED(HEROIC_STEPPER_DRIVERS)
|
|
|
|
|
#define MICROSTEP128 LOW,HIGH,LOW
|
|
|
|
|
#else
|
|
|
|
|
#define MICROSTEP2 HIGH,LOW,LOW
|
|
|
|
|
#define MICROSTEP4 LOW,HIGH,LOW
|
|
|
|
|
#endif
|
|
|
|
|
#define MICROSTEP8 HIGH,HIGH,LOW
|
|
|
|
|
#ifdef __SAM3X8E__
|
|
|
|
|
#if MB(ALLIGATOR)
|
|
|
|
|
#define MICROSTEP16 LOW,LOW,LOW
|
|
|
|
|
#define MICROSTEP32 HIGH,HIGH,LOW
|
|
|
|
|
#else
|
|
|
|
|
#define MICROSTEP16 HIGH,HIGH,LOW
|
|
|
|
|
#endif
|
|
|
|
|
#else
|
|
|
|
|
#define MICROSTEP16 HIGH,HIGH,LOW
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#define HAS_MICROSTEP1 defined(MICROSTEP1)
|
|
|
|
|
#define HAS_MICROSTEP2 defined(MICROSTEP2)
|
|
|
|
|
#define HAS_MICROSTEP4 defined(MICROSTEP4)
|
|
|
|
|
#define HAS_MICROSTEP8 defined(MICROSTEP8)
|
|
|
|
|
#define HAS_MICROSTEP16 defined(MICROSTEP16)
|
|
|
|
|
#define HAS_MICROSTEP32 defined(MICROSTEP32)
|
|
|
|
|
#define HAS_MICROSTEP64 defined(MICROSTEP64)
|
|
|
|
|
#define HAS_MICROSTEP128 defined(MICROSTEP128)
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Override here because this is set in Configuration_adv.h
|
|
|
|
|
*/
|
|
|
|
@ -1015,11 +984,63 @@
|
|
|
|
|
#define HAS_CASE_LIGHT (PIN_EXISTS(CASE_LIGHT) && ENABLED(CASE_LIGHT_ENABLE))
|
|
|
|
|
|
|
|
|
|
// Digital control
|
|
|
|
|
#define HAS_MICROSTEPS (HAS_X_MICROSTEPS || HAS_X2_MICROSTEPS || HAS_Y_MICROSTEPS || HAS_Y2_MICROSTEPS || HAS_Z_MICROSTEPS || HAS_Z2_MICROSTEPS || HAS_Z3_MICROSTEPS || HAS_E0_MICROSTEPS || HAS_E1_MICROSTEPS || HAS_E2_MICROSTEPS || HAS_E3_MICROSTEPS || HAS_E4_MICROSTEPS || HAS_E5_MICROSTEPS)
|
|
|
|
|
#define HAS_STEPPER_RESET (PIN_EXISTS(STEPPER_RESET))
|
|
|
|
|
#define HAS_DIGIPOTSS (PIN_EXISTS(DIGIPOTSS))
|
|
|
|
|
#define HAS_MOTOR_CURRENT_PWM (PIN_EXISTS(MOTOR_CURRENT_PWM_XY) || PIN_EXISTS(MOTOR_CURRENT_PWM_Z) || PIN_EXISTS(MOTOR_CURRENT_PWM_E))
|
|
|
|
|
|
|
|
|
|
#define HAS_MICROSTEPS (HAS_X_MICROSTEPS || HAS_X2_MICROSTEPS || HAS_Y_MICROSTEPS || HAS_Y2_MICROSTEPS || HAS_Z_MICROSTEPS || HAS_Z2_MICROSTEPS || HAS_Z3_MICROSTEPS || HAS_E0_MICROSTEPS || HAS_E1_MICROSTEPS || HAS_E2_MICROSTEPS || HAS_E3_MICROSTEPS || HAS_E4_MICROSTEPS || HAS_E5_MICROSTEPS)
|
|
|
|
|
|
|
|
|
|
#if HAS_MICROSTEPS
|
|
|
|
|
|
|
|
|
|
// MS1 MS2 MS3 Stepper Driver Microstepping mode table
|
|
|
|
|
#ifndef MICROSTEP1
|
|
|
|
|
#define MICROSTEP1 LOW,LOW,LOW
|
|
|
|
|
#endif
|
|
|
|
|
#if ENABLED(HEROIC_STEPPER_DRIVERS)
|
|
|
|
|
#ifndef MICROSTEP128
|
|
|
|
|
#define MICROSTEP128 LOW,HIGH,LOW
|
|
|
|
|
#endif
|
|
|
|
|
#else
|
|
|
|
|
#ifndef MICROSTEP2
|
|
|
|
|
#define MICROSTEP2 HIGH,LOW,LOW
|
|
|
|
|
#endif
|
|
|
|
|
#ifndef MICROSTEP4
|
|
|
|
|
#define MICROSTEP4 LOW,HIGH,LOW
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
#ifndef MICROSTEP8
|
|
|
|
|
#define MICROSTEP8 HIGH,HIGH,LOW
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef __SAM3X8E__
|
|
|
|
|
#if MB(ALLIGATOR)
|
|
|
|
|
#ifndef MICROSTEP16
|
|
|
|
|
#define MICROSTEP16 LOW,LOW,LOW
|
|
|
|
|
#endif
|
|
|
|
|
#ifndef MICROSTEP32
|
|
|
|
|
#define MICROSTEP32 HIGH,HIGH,LOW
|
|
|
|
|
#endif
|
|
|
|
|
#else
|
|
|
|
|
#ifndef MICROSTEP16
|
|
|
|
|
#define MICROSTEP16 HIGH,HIGH,LOW
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
#else
|
|
|
|
|
#ifndef MICROSTEP16
|
|
|
|
|
#define MICROSTEP16 HIGH,HIGH,LOW
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#define HAS_MICROSTEP1 defined(MICROSTEP1)
|
|
|
|
|
#define HAS_MICROSTEP2 defined(MICROSTEP2)
|
|
|
|
|
#define HAS_MICROSTEP4 defined(MICROSTEP4)
|
|
|
|
|
#define HAS_MICROSTEP8 defined(MICROSTEP8)
|
|
|
|
|
#define HAS_MICROSTEP16 defined(MICROSTEP16)
|
|
|
|
|
#define HAS_MICROSTEP32 defined(MICROSTEP32)
|
|
|
|
|
#define HAS_MICROSTEP64 defined(MICROSTEP64)
|
|
|
|
|
#define HAS_MICROSTEP128 defined(MICROSTEP128)
|
|
|
|
|
|
|
|
|
|
#endif // HAS_MICROSTEPS
|
|
|
|
|
|
|
|
|
|
#if !HAS_TEMP_SENSOR
|
|
|
|
|
#undef AUTO_REPORT_TEMPERATURES
|
|
|
|
|
#endif
|
|
|
|
|