Fix Dual X,Y,Z UART pins in relation to TMC2208/9 (#14554)
This commit is contained in:
parent
f990ebfb09
commit
a7bb1fc322
@ -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
|
||||||
|
@ -29,17 +29,19 @@ opt_set TEMP_SENSOR_1 1
|
|||||||
opt_set TEMP_SENSOR_BED 2
|
opt_set TEMP_SENSOR_BED 2
|
||||||
opt_set GRID_MAX_POINTS_X 16
|
opt_set GRID_MAX_POINTS_X 16
|
||||||
opt_set FANMUX0_PIN 53
|
opt_set FANMUX0_PIN 53
|
||||||
opt_enable PIDTEMPBED FIX_MOUNTED_PROBE Z_SAFE_HOMING EEPROM_SETTINGS \
|
opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER LCD_PROGRESS_BAR LCD_PROGRESS_BAR_TEST \
|
||||||
REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT SD_REPRINT_LAST_SELECTED_FILE BINARY_FILE_TRANSFER \
|
PIDTEMPBED FIX_MOUNTED_PROBE Z_SAFE_HOMING CODEPENDENT_XY_HOMING \
|
||||||
NEOPIXEL_LED BLINKM PCA9632 RGB_LED RGB_LED_R_PIN RGB_LED_G_PIN RGB_LED_B_PIN \
|
EEPROM_SETTINGS SDSUPPORT SD_REPRINT_LAST_SELECTED_FILE BINARY_FILE_TRANSFER \
|
||||||
NOZZLE_PARK_FEATURE FILAMENT_RUNOUT_SENSOR FILAMENT_RUNOUT_DISTANCE_MM \
|
BLINKM PCA9632 RGB_LED RGB_LED_R_PIN RGB_LED_G_PIN RGB_LED_B_PIN LED_CONTROL_MENU \
|
||||||
|
NEOPIXEL_LED CASE_LIGHT_ENABLE CASE_LIGHT_USE_NEOPIXEL CASE_LIGHT_MENU \
|
||||||
|
NOZZLE_PARK_FEATURE ADVANCED_PAUSE_FEATURE FILAMENT_RUNOUT_DISTANCE_MM FILAMENT_RUNOUT_SENSOR \
|
||||||
AUTO_BED_LEVELING_LINEAR Z_MIN_PROBE_REPEATABILITY_TEST DEBUG_LEVELING_FEATURE \
|
AUTO_BED_LEVELING_LINEAR Z_MIN_PROBE_REPEATABILITY_TEST DEBUG_LEVELING_FEATURE \
|
||||||
SKEW_CORRECTION SKEW_CORRECTION_FOR_Z SKEW_CORRECTION_GCODE \
|
SKEW_CORRECTION SKEW_CORRECTION_FOR_Z SKEW_CORRECTION_GCODE \
|
||||||
FWRETRACT ARC_P_CIRCLES ADVANCED_PAUSE_FEATURE CNC_WORKSPACE_PLANES CNC_COORDINATE_SYSTEMS \
|
BACKLASH_COMPENSATION BACKLASH_GCODE \
|
||||||
|
FWRETRACT ARC_P_CIRCLES CNC_WORKSPACE_PLANES CNC_COORDINATE_SYSTEMS \
|
||||||
PSU_CONTROL AUTO_POWER_CONTROL POWER_LOSS_RECOVERY POWER_LOSS_PIN POWER_LOSS_STATE \
|
PSU_CONTROL AUTO_POWER_CONTROL POWER_LOSS_RECOVERY POWER_LOSS_PIN POWER_LOSS_STATE \
|
||||||
LCD_PROGRESS_BAR LCD_PROGRESS_BAR_TEST PINS_DEBUGGING \
|
SLOW_PWM_HEATERS THERMAL_PROTECTION_CHAMBER \
|
||||||
MAX7219_DEBUG LED_CONTROL_MENU CASE_LIGHT_MENU CASE_LIGHT_ENABLE CASE_LIGHT_USE_NEOPIXEL CODEPENDENT_XY_HOMING BACKLASH_COMPENSATION BACKLASH_GCODE
|
PINS_DEBUGGING MAX7219_DEBUG
|
||||||
opt_enable SLOW_PWM_HEATERS THERMAL_PROTECTION_CHAMBER
|
|
||||||
opt_set TEMP_SENSOR_CHAMBER 3
|
opt_set TEMP_SENSOR_CHAMBER 3
|
||||||
opt_set HEATER_CHAMBER_PIN 45
|
opt_set HEATER_CHAMBER_PIN 45
|
||||||
exec_test $1 $2 "RAMPS with 2 extruders, RepRap LCD, Linear ABL, LEDs, and many options"
|
exec_test $1 $2 "RAMPS with 2 extruders, RepRap LCD, Linear ABL, LEDs, and many options"
|
||||||
|
Loading…
Reference in New Issue
Block a user