Skip to content

Commit

Permalink
Undo driver type auto-assignment for now
Browse files Browse the repository at this point in the history
Good general concept but needs more time to develop and group with a stepper suite.
  • Loading branch information
thinkyhead committed Feb 11, 2020
1 parent d5790e0 commit 71539bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 22 deletions.
5 changes: 5 additions & 0 deletions Marlin/Configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,11 @@
//#define X_DRIVER_TYPE A4988
//#define Y_DRIVER_TYPE A4988
//#define Z_DRIVER_TYPE A4988
//#define X2_DRIVER_TYPE A4988
//#define Y2_DRIVER_TYPE A4988
//#define Z2_DRIVER_TYPE A4988
//#define Z3_DRIVER_TYPE A4988
//#define Z4_DRIVER_TYPE A4988
//#define E0_DRIVER_TYPE A4988
//#define E1_DRIVER_TYPE A4988
//#define E2_DRIVER_TYPE A4988
Expand Down
22 changes: 0 additions & 22 deletions Marlin/src/pins/pins.h
Original file line number Diff line number Diff line change
Expand Up @@ -1189,18 +1189,12 @@
#define _PEXI(p,q) __PEXI(p,q)
#define __EPIN(p,q) E##p##_##q##_PIN
#define _EPIN(p,q) __EPIN(p,q)
#define __EDRV(p) E##p##_DRIVER_TYPE
#define _EDRV(p) __EDRV(p)
#define DIAG_REMAPPED(p,q) (PIN_EXISTS(q) && _EPIN(p##_E_INDEX, DIAG) == q##_PIN)

// The X2 axis, if any, should be the next open extruder port
#define X2_E_INDEX E_STEPPERS

#if EITHER(DUAL_X_CARRIAGE, X_DUAL_STEPPER_DRIVERS)
#ifndef X2_DRIVER_TYPE
#define X2_DRIVER_TYPE _EDRV(X2_E_INDEX)
#endif

#ifndef X2_STEP_PIN
#define X2_STEP_PIN _EPIN(X2_E_INDEX, STEP)
#define X2_DIR_PIN _EPIN(X2_E_INDEX, DIR)
Expand Down Expand Up @@ -1274,10 +1268,6 @@

// The Y2 axis, if any, should be the next open extruder port
#if ENABLED(Y_DUAL_STEPPER_DRIVERS)
#ifndef Y2_DRIVER_TYPE
#define Y2_DRIVER_TYPE _EDRV(Y2_E_INDEX)
#endif

#ifndef Y2_STEP_PIN
#define Y2_STEP_PIN _EPIN(Y2_E_INDEX, STEP)
#define Y2_DIR_PIN _EPIN(Y2_E_INDEX, DIR)
Expand Down Expand Up @@ -1346,10 +1336,6 @@

// The Z2 axis, if any, should be the next open extruder port
#if NUM_Z_STEPPER_DRIVERS >= 2
#ifndef Z2_DRIVER_TYPE
#define Z2_DRIVER_TYPE _EDRV(Z2_E_INDEX)
#endif

#ifndef Z2_STEP_PIN
#define Z2_STEP_PIN _EPIN(Z2_E_INDEX, STEP)
#define Z2_DIR_PIN _EPIN(Z2_E_INDEX, DIR)
Expand Down Expand Up @@ -1417,10 +1403,6 @@
#endif

#if NUM_Z_STEPPER_DRIVERS >= 3
#ifndef Z3_DRIVER_TYPE
#define Z3_DRIVER_TYPE _EDRV(Z3_E_INDEX)
#endif

#ifndef Z3_STEP_PIN
#define Z3_STEP_PIN _EPIN(Z3_E_INDEX, STEP)
#define Z3_DIR_PIN _EPIN(Z3_E_INDEX, DIR)
Expand Down Expand Up @@ -1488,10 +1470,6 @@
#endif

#if NUM_Z_STEPPER_DRIVERS >= 4
#ifndef Z4_DRIVER_TYPE
#define Z4_DRIVER_TYPE _EDRV(Z4_E_INDEX)
#endif

#ifndef Z4_STEP_PIN
#define Z4_STEP_PIN _EPIN(Z4_E_INDEX, STEP)
#define Z4_DIR_PIN _EPIN(Z4_E_INDEX, DIR)
Expand Down

0 comments on commit 71539bc

Please sign in to comment.