|
@ -58,11 +58,11 @@ void reset_stepper_drivers(); // Called by settings.load / settings.reset |
|
|
#define X_DIR_WRITE(STATE) WRITE(X_DIR_PIN,STATE) |
|
|
#define X_DIR_WRITE(STATE) WRITE(X_DIR_PIN,STATE) |
|
|
#define X_DIR_READ() READ(X_DIR_PIN) |
|
|
#define X_DIR_READ() READ(X_DIR_PIN) |
|
|
#endif |
|
|
#endif |
|
|
#define X_STEP_INIT SET_OUTPUT(X_STEP_PIN) |
|
|
#define X_STEP_INIT() SET_OUTPUT(X_STEP_PIN) |
|
|
#ifndef X_STEP_WRITE |
|
|
#ifndef X_STEP_WRITE |
|
|
#define X_STEP_WRITE(STATE) WRITE(X_STEP_PIN,STATE) |
|
|
#define X_STEP_WRITE(STATE) WRITE(X_STEP_PIN,STATE) |
|
|
#endif |
|
|
#endif |
|
|
#define X_STEP_READ READ(X_STEP_PIN) |
|
|
#define X_STEP_READ() READ(X_STEP_PIN) |
|
|
|
|
|
|
|
|
// Y Stepper
|
|
|
// Y Stepper
|
|
|
#ifndef Y_ENABLE_INIT |
|
|
#ifndef Y_ENABLE_INIT |
|
@ -75,11 +75,11 @@ void reset_stepper_drivers(); // Called by settings.load / settings.reset |
|
|
#define Y_DIR_WRITE(STATE) WRITE(Y_DIR_PIN,STATE) |
|
|
#define Y_DIR_WRITE(STATE) WRITE(Y_DIR_PIN,STATE) |
|
|
#define Y_DIR_READ() READ(Y_DIR_PIN) |
|
|
#define Y_DIR_READ() READ(Y_DIR_PIN) |
|
|
#endif |
|
|
#endif |
|
|
#define Y_STEP_INIT SET_OUTPUT(Y_STEP_PIN) |
|
|
#define Y_STEP_INIT() SET_OUTPUT(Y_STEP_PIN) |
|
|
#ifndef Y_STEP_WRITE |
|
|
#ifndef Y_STEP_WRITE |
|
|
#define Y_STEP_WRITE(STATE) WRITE(Y_STEP_PIN,STATE) |
|
|
#define Y_STEP_WRITE(STATE) WRITE(Y_STEP_PIN,STATE) |
|
|
#endif |
|
|
#endif |
|
|
#define Y_STEP_READ READ(Y_STEP_PIN) |
|
|
#define Y_STEP_READ() READ(Y_STEP_PIN) |
|
|
|
|
|
|
|
|
// Z Stepper
|
|
|
// Z Stepper
|
|
|
#ifndef Z_ENABLE_INIT |
|
|
#ifndef Z_ENABLE_INIT |
|
@ -92,11 +92,11 @@ void reset_stepper_drivers(); // Called by settings.load / settings.reset |
|
|
#define Z_DIR_WRITE(STATE) WRITE(Z_DIR_PIN,STATE) |
|
|
#define Z_DIR_WRITE(STATE) WRITE(Z_DIR_PIN,STATE) |
|
|
#define Z_DIR_READ() READ(Z_DIR_PIN) |
|
|
#define Z_DIR_READ() READ(Z_DIR_PIN) |
|
|
#endif |
|
|
#endif |
|
|
#define Z_STEP_INIT SET_OUTPUT(Z_STEP_PIN) |
|
|
#define Z_STEP_INIT() SET_OUTPUT(Z_STEP_PIN) |
|
|
#ifndef Z_STEP_WRITE |
|
|
#ifndef Z_STEP_WRITE |
|
|
#define Z_STEP_WRITE(STATE) WRITE(Z_STEP_PIN,STATE) |
|
|
#define Z_STEP_WRITE(STATE) WRITE(Z_STEP_PIN,STATE) |
|
|
#endif |
|
|
#endif |
|
|
#define Z_STEP_READ READ(Z_STEP_PIN) |
|
|
#define Z_STEP_READ() READ(Z_STEP_PIN) |
|
|
|
|
|
|
|
|
// X2 Stepper
|
|
|
// X2 Stepper
|
|
|
#if HAS_X2_ENABLE |
|
|
#if HAS_X2_ENABLE |
|
@ -110,11 +110,11 @@ void reset_stepper_drivers(); // Called by settings.load / settings.reset |
|
|
#define X2_DIR_WRITE(STATE) WRITE(X2_DIR_PIN,STATE) |
|
|
#define X2_DIR_WRITE(STATE) WRITE(X2_DIR_PIN,STATE) |
|
|
#define X2_DIR_READ() READ(X2_DIR_PIN) |
|
|
#define X2_DIR_READ() READ(X2_DIR_PIN) |
|
|
#endif |
|
|
#endif |
|
|
#define X2_STEP_INIT SET_OUTPUT(X2_STEP_PIN) |
|
|
#define X2_STEP_INIT() SET_OUTPUT(X2_STEP_PIN) |
|
|
#ifndef X2_STEP_WRITE |
|
|
#ifndef X2_STEP_WRITE |
|
|
#define X2_STEP_WRITE(STATE) WRITE(X2_STEP_PIN,STATE) |
|
|
#define X2_STEP_WRITE(STATE) WRITE(X2_STEP_PIN,STATE) |
|
|
#endif |
|
|
#endif |
|
|
#define X2_STEP_READ READ(X2_STEP_PIN) |
|
|
#define X2_STEP_READ() READ(X2_STEP_PIN) |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
// Y2 Stepper
|
|
|
// Y2 Stepper
|
|
@ -129,11 +129,11 @@ void reset_stepper_drivers(); // Called by settings.load / settings.reset |
|
|
#define Y2_DIR_WRITE(STATE) WRITE(Y2_DIR_PIN,STATE) |
|
|
#define Y2_DIR_WRITE(STATE) WRITE(Y2_DIR_PIN,STATE) |
|
|
#define Y2_DIR_READ() READ(Y2_DIR_PIN) |
|
|
#define Y2_DIR_READ() READ(Y2_DIR_PIN) |
|
|
#endif |
|
|
#endif |
|
|
#define Y2_STEP_INIT SET_OUTPUT(Y2_STEP_PIN) |
|
|
#define Y2_STEP_INIT() SET_OUTPUT(Y2_STEP_PIN) |
|
|
#ifndef Y2_STEP_WRITE |
|
|
#ifndef Y2_STEP_WRITE |
|
|
#define Y2_STEP_WRITE(STATE) WRITE(Y2_STEP_PIN,STATE) |
|
|
#define Y2_STEP_WRITE(STATE) WRITE(Y2_STEP_PIN,STATE) |
|
|
#endif |
|
|
#endif |
|
|
#define Y2_STEP_READ READ(Y2_STEP_PIN) |
|
|
#define Y2_STEP_READ() READ(Y2_STEP_PIN) |
|
|
#else |
|
|
#else |
|
|
#define Y2_DIR_WRITE(STATE) NOOP |
|
|
#define Y2_DIR_WRITE(STATE) NOOP |
|
|
#endif |
|
|
#endif |
|
@ -150,11 +150,11 @@ void reset_stepper_drivers(); // Called by settings.load / settings.reset |
|
|
#define Z2_DIR_WRITE(STATE) WRITE(Z2_DIR_PIN,STATE) |
|
|
#define Z2_DIR_WRITE(STATE) WRITE(Z2_DIR_PIN,STATE) |
|
|
#define Z2_DIR_READ() READ(Z2_DIR_PIN) |
|
|
#define Z2_DIR_READ() READ(Z2_DIR_PIN) |
|
|
#endif |
|
|
#endif |
|
|
#define Z2_STEP_INIT SET_OUTPUT(Z2_STEP_PIN) |
|
|
#define Z2_STEP_INIT() SET_OUTPUT(Z2_STEP_PIN) |
|
|
#ifndef Z2_STEP_WRITE |
|
|
#ifndef Z2_STEP_WRITE |
|
|
#define Z2_STEP_WRITE(STATE) WRITE(Z2_STEP_PIN,STATE) |
|
|
#define Z2_STEP_WRITE(STATE) WRITE(Z2_STEP_PIN,STATE) |
|
|
#endif |
|
|
#endif |
|
|
#define Z2_STEP_READ READ(Z2_STEP_PIN) |
|
|
#define Z2_STEP_READ() READ(Z2_STEP_PIN) |
|
|
#else |
|
|
#else |
|
|
#define Z2_DIR_WRITE(STATE) NOOP |
|
|
#define Z2_DIR_WRITE(STATE) NOOP |
|
|
#endif |
|
|
#endif |
|
@ -171,11 +171,11 @@ void reset_stepper_drivers(); // Called by settings.load / settings.reset |
|
|
#define Z3_DIR_WRITE(STATE) WRITE(Z3_DIR_PIN,STATE) |
|
|
#define Z3_DIR_WRITE(STATE) WRITE(Z3_DIR_PIN,STATE) |
|
|
#define Z3_DIR_READ() READ(Z3_DIR_PIN) |
|
|
#define Z3_DIR_READ() READ(Z3_DIR_PIN) |
|
|
#endif |
|
|
#endif |
|
|
#define Z3_STEP_INIT SET_OUTPUT(Z3_STEP_PIN) |
|
|
#define Z3_STEP_INIT() SET_OUTPUT(Z3_STEP_PIN) |
|
|
#ifndef Z3_STEP_WRITE |
|
|
#ifndef Z3_STEP_WRITE |
|
|
#define Z3_STEP_WRITE(STATE) WRITE(Z3_STEP_PIN,STATE) |
|
|
#define Z3_STEP_WRITE(STATE) WRITE(Z3_STEP_PIN,STATE) |
|
|
#endif |
|
|
#endif |
|
|
#define Z3_STEP_READ READ(Z3_STEP_PIN) |
|
|
#define Z3_STEP_READ() READ(Z3_STEP_PIN) |
|
|
#else |
|
|
#else |
|
|
#define Z3_DIR_WRITE(STATE) NOOP |
|
|
#define Z3_DIR_WRITE(STATE) NOOP |
|
|
#endif |
|
|
#endif |
|
@ -191,11 +191,11 @@ void reset_stepper_drivers(); // Called by settings.load / settings.reset |
|
|
#define E0_DIR_WRITE(STATE) WRITE(E0_DIR_PIN,STATE) |
|
|
#define E0_DIR_WRITE(STATE) WRITE(E0_DIR_PIN,STATE) |
|
|
#define E0_DIR_READ() READ(E0_DIR_PIN) |
|
|
#define E0_DIR_READ() READ(E0_DIR_PIN) |
|
|
#endif |
|
|
#endif |
|
|
#define E0_STEP_INIT SET_OUTPUT(E0_STEP_PIN) |
|
|
#define E0_STEP_INIT() SET_OUTPUT(E0_STEP_PIN) |
|
|
#ifndef E0_STEP_WRITE |
|
|
#ifndef E0_STEP_WRITE |
|
|
#define E0_STEP_WRITE(STATE) WRITE(E0_STEP_PIN,STATE) |
|
|
#define E0_STEP_WRITE(STATE) WRITE(E0_STEP_PIN,STATE) |
|
|
#endif |
|
|
#endif |
|
|
#define E0_STEP_READ READ(E0_STEP_PIN) |
|
|
#define E0_STEP_READ() READ(E0_STEP_PIN) |
|
|
|
|
|
|
|
|
// E1 Stepper
|
|
|
// E1 Stepper
|
|
|
#ifndef E1_ENABLE_INIT |
|
|
#ifndef E1_ENABLE_INIT |
|
@ -208,11 +208,11 @@ void reset_stepper_drivers(); // Called by settings.load / settings.reset |
|
|
#define E1_DIR_WRITE(STATE) WRITE(E1_DIR_PIN,STATE) |
|
|
#define E1_DIR_WRITE(STATE) WRITE(E1_DIR_PIN,STATE) |
|
|
#define E1_DIR_READ() READ(E1_DIR_PIN) |
|
|
#define E1_DIR_READ() READ(E1_DIR_PIN) |
|
|
#endif |
|
|
#endif |
|
|
#define E1_STEP_INIT SET_OUTPUT(E1_STEP_PIN) |
|
|
#define E1_STEP_INIT() SET_OUTPUT(E1_STEP_PIN) |
|
|
#ifndef E1_STEP_WRITE |
|
|
#ifndef E1_STEP_WRITE |
|
|
#define E1_STEP_WRITE(STATE) WRITE(E1_STEP_PIN,STATE) |
|
|
#define E1_STEP_WRITE(STATE) WRITE(E1_STEP_PIN,STATE) |
|
|
#endif |
|
|
#endif |
|
|
#define E1_STEP_READ READ(E1_STEP_PIN) |
|
|
#define E1_STEP_READ() READ(E1_STEP_PIN) |
|
|
|
|
|
|
|
|
// E2 Stepper
|
|
|
// E2 Stepper
|
|
|
#ifndef E2_ENABLE_INIT |
|
|
#ifndef E2_ENABLE_INIT |
|
@ -225,11 +225,11 @@ void reset_stepper_drivers(); // Called by settings.load / settings.reset |
|
|
#define E2_DIR_WRITE(STATE) WRITE(E2_DIR_PIN,STATE) |
|
|
#define E2_DIR_WRITE(STATE) WRITE(E2_DIR_PIN,STATE) |
|
|
#define E2_DIR_READ() READ(E2_DIR_PIN) |
|
|
#define E2_DIR_READ() READ(E2_DIR_PIN) |
|
|
#endif |
|
|
#endif |
|
|
#define E2_STEP_INIT SET_OUTPUT(E2_STEP_PIN) |
|
|
#define E2_STEP_INIT() SET_OUTPUT(E2_STEP_PIN) |
|
|
#ifndef E2_STEP_WRITE |
|
|
#ifndef E2_STEP_WRITE |
|
|
#define E2_STEP_WRITE(STATE) WRITE(E2_STEP_PIN,STATE) |
|
|
#define E2_STEP_WRITE(STATE) WRITE(E2_STEP_PIN,STATE) |
|
|
#endif |
|
|
#endif |
|
|
#define E2_STEP_READ READ(E2_STEP_PIN) |
|
|
#define E2_STEP_READ() READ(E2_STEP_PIN) |
|
|
|
|
|
|
|
|
// E3 Stepper
|
|
|
// E3 Stepper
|
|
|
#ifndef E3_ENABLE_INIT |
|
|
#ifndef E3_ENABLE_INIT |
|
@ -242,11 +242,11 @@ void reset_stepper_drivers(); // Called by settings.load / settings.reset |
|
|
#define E3_DIR_WRITE(STATE) WRITE(E3_DIR_PIN,STATE) |
|
|
#define E3_DIR_WRITE(STATE) WRITE(E3_DIR_PIN,STATE) |
|
|
#define E3_DIR_READ() READ(E3_DIR_PIN) |
|
|
#define E3_DIR_READ() READ(E3_DIR_PIN) |
|
|
#endif |
|
|
#endif |
|
|
#define E3_STEP_INIT SET_OUTPUT(E3_STEP_PIN) |
|
|
#define E3_STEP_INIT() SET_OUTPUT(E3_STEP_PIN) |
|
|
#ifndef E3_STEP_WRITE |
|
|
#ifndef E3_STEP_WRITE |
|
|
#define E3_STEP_WRITE(STATE) WRITE(E3_STEP_PIN,STATE) |
|
|
#define E3_STEP_WRITE(STATE) WRITE(E3_STEP_PIN,STATE) |
|
|
#endif |
|
|
#endif |
|
|
#define E3_STEP_READ READ(E3_STEP_PIN) |
|
|
#define E3_STEP_READ() READ(E3_STEP_PIN) |
|
|
|
|
|
|
|
|
// E4 Stepper
|
|
|
// E4 Stepper
|
|
|
#ifndef E4_ENABLE_INIT |
|
|
#ifndef E4_ENABLE_INIT |
|
@ -259,11 +259,11 @@ void reset_stepper_drivers(); // Called by settings.load / settings.reset |
|
|
#define E4_DIR_WRITE(STATE) WRITE(E4_DIR_PIN,STATE) |
|
|
#define E4_DIR_WRITE(STATE) WRITE(E4_DIR_PIN,STATE) |
|
|
#define E4_DIR_READ() READ(E4_DIR_PIN) |
|
|
#define E4_DIR_READ() READ(E4_DIR_PIN) |
|
|
#endif |
|
|
#endif |
|
|
#define E4_STEP_INIT SET_OUTPUT(E4_STEP_PIN) |
|
|
#define E4_STEP_INIT() SET_OUTPUT(E4_STEP_PIN) |
|
|
#ifndef E4_STEP_WRITE |
|
|
#ifndef E4_STEP_WRITE |
|
|
#define E4_STEP_WRITE(STATE) WRITE(E4_STEP_PIN,STATE) |
|
|
#define E4_STEP_WRITE(STATE) WRITE(E4_STEP_PIN,STATE) |
|
|
#endif |
|
|
#endif |
|
|
#define E4_STEP_READ READ(E4_STEP_PIN) |
|
|
#define E4_STEP_READ() READ(E4_STEP_PIN) |
|
|
|
|
|
|
|
|
// E5 Stepper
|
|
|
// E5 Stepper
|
|
|
#ifndef E5_ENABLE_INIT |
|
|
#ifndef E5_ENABLE_INIT |
|
@ -276,11 +276,11 @@ void reset_stepper_drivers(); // Called by settings.load / settings.reset |
|
|
#define E5_DIR_WRITE(STATE) WRITE(E5_DIR_PIN,STATE) |
|
|
#define E5_DIR_WRITE(STATE) WRITE(E5_DIR_PIN,STATE) |
|
|
#define E5_DIR_READ() READ(E5_DIR_PIN) |
|
|
#define E5_DIR_READ() READ(E5_DIR_PIN) |
|
|
#endif |
|
|
#endif |
|
|
#define E5_STEP_INIT SET_OUTPUT(E5_STEP_PIN) |
|
|
#define E5_STEP_INIT() SET_OUTPUT(E5_STEP_PIN) |
|
|
#ifndef E5_STEP_WRITE |
|
|
#ifndef E5_STEP_WRITE |
|
|
#define E5_STEP_WRITE(STATE) WRITE(E5_STEP_PIN,STATE) |
|
|
#define E5_STEP_WRITE(STATE) WRITE(E5_STEP_PIN,STATE) |
|
|
#endif |
|
|
#endif |
|
|
#define E5_STEP_READ READ(E5_STEP_PIN) |
|
|
#define E5_STEP_READ() READ(E5_STEP_PIN) |
|
|
|
|
|
|
|
|
/**
|
|
|
/**
|
|
|
* Extruder indirection for the single E axis |
|
|
* Extruder indirection for the single E axis |
|
|