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