|
@ -949,12 +949,14 @@ |
|
|
#ifndef X2_MS3_PIN |
|
|
#ifndef X2_MS3_PIN |
|
|
#define X2_MS3_PIN _EPIN(E_STEPPERS, MS3) |
|
|
#define X2_MS3_PIN _EPIN(E_STEPPERS, MS3) |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
#if AXIS_DRIVER_TYPE_X2(TMC2208) || AXIS_DRIVER_TYPE_X2(TMC2209) |
|
|
#ifndef X2_SERIAL_TX_PIN |
|
|
#ifndef X2_SERIAL_TX_PIN |
|
|
#define X2_SERIAL_TX_PIN _EPIN(E_STEPPERS, SERIAL_TX) |
|
|
#define X2_SERIAL_TX_PIN _EPIN(E_STEPPERS, SERIAL_TX) |
|
|
#endif |
|
|
#endif |
|
|
#ifndef X2_SERIAL_RX_PIN |
|
|
#ifndef X2_SERIAL_RX_PIN |
|
|
#define X2_SERIAL_RX_PIN _EPIN(E_STEPPERS, SERIAL_RX) |
|
|
#define X2_SERIAL_RX_PIN _EPIN(E_STEPPERS, SERIAL_RX) |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
#endif |
|
|
#define Y2_E_INDEX INCREMENT(E_STEPPERS) |
|
|
#define Y2_E_INDEX INCREMENT(E_STEPPERS) |
|
|
#else |
|
|
#else |
|
|
#define Y2_E_INDEX E_STEPPERS |
|
|
#define Y2_E_INDEX E_STEPPERS |
|
@ -982,12 +984,14 @@ |
|
|
#ifndef Y2_MS3_PIN |
|
|
#ifndef Y2_MS3_PIN |
|
|
#define Y2_MS3_PIN _EPIN(Y2_E_INDEX, MS3) |
|
|
#define Y2_MS3_PIN _EPIN(Y2_E_INDEX, MS3) |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
#if AXIS_DRIVER_TYPE_Y2(TMC2208) || AXIS_DRIVER_TYPE_Y2(TMC2209) |
|
|
#ifndef Y2_SERIAL_TX_PIN |
|
|
#ifndef Y2_SERIAL_TX_PIN |
|
|
#define Y2_SERIAL_TX_PIN _EPIN(Y2_E_INDEX, SERIAL_TX) |
|
|
#define Y2_SERIAL_TX_PIN _EPIN(Y2_E_INDEX, SERIAL_TX) |
|
|
#endif |
|
|
#endif |
|
|
#ifndef Y2_SERIAL_RX_PIN |
|
|
#ifndef Y2_SERIAL_RX_PIN |
|
|
#define Y2_SERIAL_RX_PIN _EPIN(Y2_E_INDEX, SERIAL_RX) |
|
|
#define Y2_SERIAL_RX_PIN _EPIN(Y2_E_INDEX, SERIAL_RX) |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
#endif |
|
|
#define Z2_E_INDEX INCREMENT(Y2_E_INDEX) |
|
|
#define Z2_E_INDEX INCREMENT(Y2_E_INDEX) |
|
|
#else |
|
|
#else |
|
|
#define Z2_E_INDEX Y2_E_INDEX |
|
|
#define Z2_E_INDEX Y2_E_INDEX |
|
@ -1015,12 +1019,14 @@ |
|
|
#ifndef Z2_MS3_PIN |
|
|
#ifndef Z2_MS3_PIN |
|
|
#define Z2_MS3_PIN _EPIN(Z2_E_INDEX, MS3) |
|
|
#define Z2_MS3_PIN _EPIN(Z2_E_INDEX, MS3) |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
#if AXIS_DRIVER_TYPE_Z2(TMC2208) || AXIS_DRIVER_TYPE_Z2(TMC2209) |
|
|
#ifndef Z2_SERIAL_TX_PIN |
|
|
#ifndef Z2_SERIAL_TX_PIN |
|
|
#define Z2_SERIAL_TX_PIN _EPIN(Z2_E_INDEX, SERIAL_TX) |
|
|
#define Z2_SERIAL_TX_PIN _EPIN(Z2_E_INDEX, SERIAL_TX) |
|
|
#endif |
|
|
#endif |
|
|
#ifndef Z2_SERIAL_RX_PIN |
|
|
#ifndef Z2_SERIAL_RX_PIN |
|
|
#define Z2_SERIAL_RX_PIN _EPIN(Z2_E_INDEX, SERIAL_RX) |
|
|
#define Z2_SERIAL_RX_PIN _EPIN(Z2_E_INDEX, SERIAL_RX) |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
#endif |
|
|
#define Z3_E_INDEX INCREMENT(Z2_E_INDEX) |
|
|
#define Z3_E_INDEX INCREMENT(Z2_E_INDEX) |
|
|
#else |
|
|
#else |
|
|
#define Z3_E_INDEX Z2_E_INDEX |
|
|
#define Z3_E_INDEX Z2_E_INDEX |
|
@ -1047,6 +1053,7 @@ |
|
|
#ifndef Z3_MS3_PIN |
|
|
#ifndef Z3_MS3_PIN |
|
|
#define Z3_MS3_PIN _EPIN(Z3_E_INDEX, MS3) |
|
|
#define Z3_MS3_PIN _EPIN(Z3_E_INDEX, MS3) |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
#if AXIS_DRIVER_TYPE_Z3(TMC2208) || AXIS_DRIVER_TYPE_Z3(TMC2209) |
|
|
#ifndef Z3_SERIAL_TX_PIN |
|
|
#ifndef Z3_SERIAL_TX_PIN |
|
|
#define Z3_SERIAL_TX_PIN _EPIN(Z3_E_INDEX, SERIAL_TX) |
|
|
#define Z3_SERIAL_TX_PIN _EPIN(Z3_E_INDEX, SERIAL_TX) |
|
|
#endif |
|
|
#endif |
|
@ -1054,3 +1061,4 @@ |
|
|
#define Z3_SERIAL_RX_PIN _EPIN(Z3_E_INDEX, SERIAL_RX) |
|
|
#define Z3_SERIAL_RX_PIN _EPIN(Z3_E_INDEX, SERIAL_RX) |
|
|
#endif |
|
|
#endif |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
#endif |
|
|