Add stepper MS3 support
Co-Authored-By: TheLongAndOnly <thelongandonly@users.noreply.github.com>
This commit is contained in:
@ -236,26 +236,37 @@
|
||||
#define MAX_AUTORETRACT 99
|
||||
#endif
|
||||
|
||||
// MS1 MS2 Stepper Driver Microstepping mode table
|
||||
#define MICROSTEP1 LOW,LOW
|
||||
#if ENABLED(HEROIC_STEPPER_DRIVERS)
|
||||
#define MICROSTEP128 LOW,HIGH
|
||||
#else
|
||||
#define MICROSTEP2 HIGH,LOW
|
||||
#define MICROSTEP4 LOW,HIGH
|
||||
#endif
|
||||
#define MICROSTEP8 HIGH,HIGH
|
||||
#ifdef __SAM3X8E__
|
||||
#if MB(ALLIGATOR)
|
||||
#define MICROSTEP16 LOW,LOW
|
||||
#define MICROSTEP32 HIGH,HIGH
|
||||
// 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 MICROSTEP16 HIGH,HIGH
|
||||
#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
|
||||
#else
|
||||
#define MICROSTEP16 HIGH,HIGH
|
||||
#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
|
||||
*/
|
||||
@ -828,6 +839,7 @@
|
||||
#define HAS_Z3_ENABLE (PIN_EXISTS(Z3_ENABLE))
|
||||
#define HAS_Z3_DIR (PIN_EXISTS(Z3_DIR))
|
||||
#define HAS_Z3_STEP (PIN_EXISTS(Z3_STEP))
|
||||
#define HAS_Z3_MICROSTEPS (PIN_EXISTS(Z3_MS1))
|
||||
|
||||
// Extruder steppers and solenoids
|
||||
#define HAS_E0_ENABLE (PIN_EXISTS(E0_ENABLE))
|
||||
@ -1003,7 +1015,7 @@
|
||||
#define HAS_CASE_LIGHT (PIN_EXISTS(CASE_LIGHT) && ENABLED(CASE_LIGHT_ENABLE))
|
||||
|
||||
// Digital control
|
||||
#define HAS_MICROSTEPS (HAS_X_MICROSTEPS || HAS_Y_MICROSTEPS || HAS_Z_MICROSTEPS || HAS_E0_MICROSTEPS || HAS_E1_MICROSTEPS || HAS_E2_MICROSTEPS || HAS_E3_MICROSTEPS || HAS_E4_MICROSTEPS || HAS_E5_MICROSTEPS)
|
||||
#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))
|
||||
|
Reference in New Issue
Block a user