|
|
@ -60,17 +60,19 @@ |
|
|
|
#define X_ENABLE_READ READ(X_ENABLE_PIN) |
|
|
|
|
|
|
|
// X2 motor
|
|
|
|
#define X2_STEP_INIT SET_OUTPUT(X2_STEP_PIN) |
|
|
|
#define X2_STEP_WRITE(STATE) WRITE(X2_STEP_PIN,STATE) |
|
|
|
#define X2_STEP_READ READ(X2_STEP_PIN) |
|
|
|
#if ENABLED(DUAL_X_CARRIAGE) |
|
|
|
#define X2_STEP_INIT SET_OUTPUT(X2_STEP_PIN) |
|
|
|
#define X2_STEP_WRITE(STATE) WRITE(X2_STEP_PIN,STATE) |
|
|
|
#define X2_STEP_READ READ(X2_STEP_PIN) |
|
|
|
|
|
|
|
#define X2_DIR_INIT SET_OUTPUT(X2_DIR_PIN) |
|
|
|
#define X2_DIR_WRITE(STATE) WRITE(X2_DIR_PIN,STATE) |
|
|
|
#define X2_DIR_READ READ(X_DIR_PIN) |
|
|
|
#define X2_DIR_INIT SET_OUTPUT(X2_DIR_PIN) |
|
|
|
#define X2_DIR_WRITE(STATE) WRITE(X2_DIR_PIN,STATE) |
|
|
|
#define X2_DIR_READ READ(X_DIR_PIN) |
|
|
|
|
|
|
|
#define X2_ENABLE_INIT SET_OUTPUT(X2_ENABLE_PIN) |
|
|
|
#define X2_ENABLE_WRITE(STATE) WRITE(X2_ENABLE_PIN,STATE) |
|
|
|
#define X2_ENABLE_READ READ(X_ENABLE_PIN) |
|
|
|
#define X2_ENABLE_INIT SET_OUTPUT(X2_ENABLE_PIN) |
|
|
|
#define X2_ENABLE_WRITE(STATE) WRITE(X2_ENABLE_PIN,STATE) |
|
|
|
#define X2_ENABLE_READ READ(X_ENABLE_PIN) |
|
|
|
#endif // DUAL_X_CARRIAGE
|
|
|
|
|
|
|
|
// Y motor
|
|
|
|
#define Y_STEP_INIT SET_OUTPUT(Y_STEP_PIN) |
|
|
@ -86,17 +88,19 @@ |
|
|
|
#define Y_ENABLE_READ READ(Y_ENABLE_PIN) |
|
|
|
|
|
|
|
// Y2 motor
|
|
|
|
#define Y2_STEP_INIT SET_OUTPUT(Y2_STEP_PIN) |
|
|
|
#define Y2_STEP_WRITE(STATE) WRITE(Y2_STEP_PIN,STATE) |
|
|
|
#define Y2_STEP_READ READ(Y2_STEP_PIN) |
|
|
|
#if ENABLED(Y_DUAL_STEPPER_DRIVERS) |
|
|
|
#define Y2_STEP_INIT SET_OUTPUT(Y2_STEP_PIN) |
|
|
|
#define Y2_STEP_WRITE(STATE) WRITE(Y2_STEP_PIN,STATE) |
|
|
|
#define Y2_STEP_READ READ(Y2_STEP_PIN) |
|
|
|
|
|
|
|
#define Y2_DIR_INIT SET_OUTPUT(Y2_DIR_PIN) |
|
|
|
#define Y2_DIR_WRITE(STATE) WRITE(Y2_DIR_PIN,STATE) |
|
|
|
#define Y2_DIR_READ READ(Y2_DIR_PIN) |
|
|
|
#define Y2_DIR_INIT SET_OUTPUT(Y2_DIR_PIN) |
|
|
|
#define Y2_DIR_WRITE(STATE) WRITE(Y2_DIR_PIN,STATE) |
|
|
|
#define Y2_DIR_READ READ(Y2_DIR_PIN) |
|
|
|
|
|
|
|
#define Y2_ENABLE_INIT SET_OUTPUT(Y2_ENABLE_PIN) |
|
|
|
#define Y2_ENABLE_WRITE(STATE) WRITE(Y2_ENABLE_PIN,STATE) |
|
|
|
#define Y2_ENABLE_READ READ(Y2_ENABLE_PIN) |
|
|
|
#define Y2_ENABLE_INIT SET_OUTPUT(Y2_ENABLE_PIN) |
|
|
|
#define Y2_ENABLE_WRITE(STATE) WRITE(Y2_ENABLE_PIN,STATE) |
|
|
|
#define Y2_ENABLE_READ READ(Y2_ENABLE_PIN) |
|
|
|
#endif // Y_DUAL_STEPPER_DRIVERS
|
|
|
|
|
|
|
|
// Z motor
|
|
|
|
#define Z_STEP_INIT SET_OUTPUT(Z_STEP_PIN) |
|
|
@ -112,17 +116,19 @@ |
|
|
|
#define Z_ENABLE_READ READ(Z_ENABLE_PIN) |
|
|
|
|
|
|
|
// Z2 motor
|
|
|
|
#define Z2_STEP_INIT SET_OUTPUT(Z2_STEP_PIN) |
|
|
|
#define Z2_STEP_WRITE(STATE) WRITE(Z2_STEP_PIN,STATE) |
|
|
|
#define Z2_STEP_READ READ(Z2_STEP_PIN) |
|
|
|
|
|
|
|
#define Z2_DIR_INIT SET_OUTPUT(Z2_DIR_PIN) |
|
|
|
#define Z2_DIR_WRITE(STATE) WRITE(Z2_DIR_PIN,STATE) |
|
|
|
#define Z2_DIR_READ READ(Z2_DIR_PIN) |
|
|
|
|
|
|
|
#define Z2_ENABLE_INIT SET_OUTPUT(Z2_ENABLE_PIN) |
|
|
|
#define Z2_ENABLE_WRITE(STATE) WRITE(Z2_ENABLE_PIN,STATE) |
|
|
|
#define Z2_ENABLE_READ READ(Z2_ENABLE_PIN) |
|
|
|
#if ENABLED(Z_DUAL_STEPPER_DRIVERS) |
|
|
|
#define Z2_STEP_INIT SET_OUTPUT(Z2_STEP_PIN) |
|
|
|
#define Z2_STEP_WRITE(STATE) WRITE(Z2_STEP_PIN,STATE) |
|
|
|
#define Z2_STEP_READ READ(Z2_STEP_PIN) |
|
|
|
|
|
|
|
#define Z2_DIR_INIT SET_OUTPUT(Z2_DIR_PIN) |
|
|
|
#define Z2_DIR_WRITE(STATE) WRITE(Z2_DIR_PIN,STATE) |
|
|
|
#define Z2_DIR_READ READ(Z2_DIR_PIN) |
|
|
|
|
|
|
|
#define Z2_ENABLE_INIT SET_OUTPUT(Z2_ENABLE_PIN) |
|
|
|
#define Z2_ENABLE_WRITE(STATE) WRITE(Z2_ENABLE_PIN,STATE) |
|
|
|
#define Z2_ENABLE_READ READ(Z2_ENABLE_PIN) |
|
|
|
#endif // Z_DUAL_STEPPER_DRIVERS
|
|
|
|
|
|
|
|
// E0 motor
|
|
|
|
#define E0_STEP_INIT SET_OUTPUT(E0_STEP_PIN) |
|
|
|