tmc: Remove virtual_enable support and replace with automatic support
Automatically detect if the stepper has a dedicated enable line. If it does not, then automatically enable virtual enable support. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -1206,10 +1206,7 @@
|
||||
# Configure a TMC2130 stepper motor driver via SPI bus. To use this
|
||||
# feature, define a config section with a "tmc2130" prefix followed by
|
||||
# the name of the corresponding stepper config section (for example,
|
||||
# "[tmc2130 stepper_x]"). This also creates a
|
||||
# "tmc2130_stepper_x:virtual_enable" virtual pin which may be used as
|
||||
# the stepper's enable_pin (for enabling the driver via an SPI
|
||||
# message).
|
||||
# "[tmc2130 stepper_x]").
|
||||
#[tmc2130 stepper_x]
|
||||
#cs_pin:
|
||||
# The pin corresponding to the TMC2130 chip select line. This pin
|
||||
@@ -1271,10 +1268,7 @@
|
||||
# Configure a TMC2208 (or TMC2224) stepper motor driver via single
|
||||
# wire UART. To use this feature, define a config section with a
|
||||
# "tmc2208" prefix followed by the name of the corresponding stepper
|
||||
# config section (for example, "[tmc2208 stepper_x]"). This also
|
||||
# creates a "tmc2208_stepper_x:virtual_enable" virtual pin which may
|
||||
# be used as the stepper's enable_pin (for enabling the driver via a
|
||||
# UART message).
|
||||
# config section (for example, "[tmc2208 stepper_x]").
|
||||
#[tmc2208 stepper_x]
|
||||
#uart_pin:
|
||||
# The pin connected to the TMC2208 PDN_UART line. This parameter
|
||||
@@ -1331,10 +1325,7 @@
|
||||
# Configure a TMC2209 stepper motor driver via single wire UART. To
|
||||
# use this feature, define a config section with a "tmc2209" prefix
|
||||
# followed by the name of the corresponding stepper config section
|
||||
# (for example, "[tmc2209 stepper_x]"). This also creates a
|
||||
# "tmc2209_stepper_x:virtual_enable" virtual pin which may be used as
|
||||
# the stepper's enable_pin (for enabling the driver via a UART
|
||||
# message).
|
||||
# (for example, "[tmc2209 stepper_x]").
|
||||
#[tmc2209 stepper_x]
|
||||
#uart_pin:
|
||||
#tx_pin:
|
||||
@@ -1380,10 +1371,7 @@
|
||||
# Configure a TMC2660 stepper motor driver via SPI bus. To use this
|
||||
# feature, define a config section with a tmc2660 prefix followed by
|
||||
# the name of the corresponding stepper config section (for example,
|
||||
# "[tmc2660 stepper_x]"). This also creates a
|
||||
# "tmc2660_stepper_x:virtual_enable" virtual pin which may be used as
|
||||
# the stepper's enable_pin (for enabling the driver via an SPI
|
||||
# message).
|
||||
# "[tmc2660 stepper_x]").
|
||||
#[tmc2660 stepper_x]
|
||||
#cs_pin:
|
||||
# The pin corresponding to the TMC2660 chip select line. This pin
|
||||
@@ -1455,10 +1443,7 @@
|
||||
# Configure a TMC5160 stepper motor driver via SPI bus. To use this
|
||||
# feature, define a config section with a "tmc5160" prefix followed by
|
||||
# the name of the corresponding stepper config section (for example,
|
||||
# "[tmc5160 stepper_x]"). This also creates a
|
||||
# "tmc5160_stepper_x:virtual_enable" virtual pin which may be used as
|
||||
# the stepper's enable_pin (for enabling the driver via an SPI
|
||||
# message).
|
||||
# "[tmc5160 stepper_x]").
|
||||
#[tmc5160 stepper_x]
|
||||
#cs_pin:
|
||||
# The pin corresponding to the TMC5160 chip select line. This pin
|
||||
|
@@ -86,7 +86,7 @@
|
||||
[stepper_x]
|
||||
step_pin: PD6
|
||||
dir_pin: PD11
|
||||
enable_pin: !PC6, tmc2660_stepper_x:virtual_enable
|
||||
enable_pin: !PC6
|
||||
step_distance: .0125
|
||||
endstop_pin: ^PC14
|
||||
position_endstop: 0
|
||||
@@ -104,7 +104,7 @@ idle_current_percent: 20
|
||||
[stepper_y]
|
||||
step_pin: PD7
|
||||
dir_pin: !PD12
|
||||
enable_pin: !PC6, tmc2660_stepper_y:virtual_enable
|
||||
enable_pin: !PC6
|
||||
step_distance: .0125
|
||||
endstop_pin: ^PA2
|
||||
position_endstop: 0
|
||||
@@ -122,7 +122,7 @@ idle_current_percent: 20
|
||||
[stepper_z]
|
||||
step_pin: PD8
|
||||
dir_pin: PD13
|
||||
enable_pin: !PC6, tmc2660_stepper_z:virtual_enable
|
||||
enable_pin: !PC6
|
||||
step_distance: .0025
|
||||
endstop_pin: ^PD29
|
||||
position_endstop: 0.5
|
||||
@@ -140,7 +140,7 @@ sense_resistor: 0.051
|
||||
[stepper_z1]
|
||||
step_pin: PD0
|
||||
dir_pin: PD16
|
||||
enable_pin: !PC6, tmc2660_stepper_z1:virtual_enable
|
||||
enable_pin: !PC6
|
||||
step_distance: .0025
|
||||
|
||||
[tmc2660 stepper_z1]
|
||||
@@ -155,7 +155,7 @@ sense_resistor: 0.051
|
||||
[stepper_z2]
|
||||
step_pin: PD3
|
||||
dir_pin: !PD17
|
||||
enable_pin: !PC6, tmc2660_stepper_z2:virtual_enable
|
||||
enable_pin: !PC6
|
||||
step_distance: .0025
|
||||
|
||||
[tmc2660 stepper_z2]
|
||||
@@ -170,7 +170,7 @@ sense_resistor: 0.051
|
||||
[stepper_z3]
|
||||
step_pin: PD27
|
||||
dir_pin: !PC0
|
||||
enable_pin: !PC6, tmc2660_stepper_z3:virtual_enable
|
||||
enable_pin: !PC6
|
||||
step_distance: .0025
|
||||
|
||||
[tmc2660 stepper_z3]
|
||||
@@ -185,7 +185,7 @@ sense_resistor: 0.051
|
||||
[extruder]
|
||||
step_pin: PD5
|
||||
dir_pin: PA1
|
||||
enable_pin: !PC6, tmc2660_extruder:virtual_enable
|
||||
enable_pin: !PC6
|
||||
step_distance: .002
|
||||
nozzle_diameter: 0.400
|
||||
filament_diameter: 1.750
|
||||
@@ -211,7 +211,7 @@ sense_resistor: 0.051
|
||||
[extruder1]
|
||||
step_pin: PD4
|
||||
dir_pin: PD9
|
||||
enable_pin: !PC6, tmc2660_extruder1:virtual_enable
|
||||
enable_pin: !PC6
|
||||
step_distance: .002
|
||||
nozzle_diameter: 0.400
|
||||
filament_diameter: 1.750
|
||||
@@ -237,7 +237,7 @@ sense_resistor: 0.051
|
||||
[extruder2]
|
||||
step_pin: PD2
|
||||
dir_pin: !PD28
|
||||
enable_pin: !PC6, tmc2660_extruder2:virtual_enable
|
||||
enable_pin: !PC6
|
||||
step_distance: .002
|
||||
nozzle_diameter: 0.400
|
||||
filament_diameter: 1.750
|
||||
@@ -263,7 +263,7 @@ sense_resistor: 0.051
|
||||
[extruder3]
|
||||
step_pin: PD1
|
||||
dir_pin: !PD22
|
||||
enable_pin: !PC6, tmc2660_extruder3:virtual_enable
|
||||
enable_pin: !PC6
|
||||
step_distance: .002
|
||||
nozzle_diameter: 0.400
|
||||
filament_diameter: 1.750
|
||||
|
@@ -6,7 +6,7 @@
|
||||
[stepper_x]
|
||||
step_pin: PC20
|
||||
dir_pin: PC18
|
||||
enable_pin: !PA1, tmc2208_stepper_x:virtual_enable
|
||||
enable_pin: !PA1
|
||||
step_distance: .0125
|
||||
endstop_pin: ^PA24
|
||||
position_endstop: 0
|
||||
@@ -25,7 +25,7 @@ stealthchop_threshold: 250
|
||||
[stepper_y]
|
||||
step_pin: PC2
|
||||
dir_pin: PA8
|
||||
enable_pin: !PA1, tmc2208_stepper_y:virtual_enable
|
||||
enable_pin: !PA1
|
||||
step_distance: .0125
|
||||
endstop_pin: ^PB6
|
||||
position_endstop: 0
|
||||
@@ -44,7 +44,7 @@ stealthchop_threshold: 250
|
||||
[stepper_z]
|
||||
step_pin: PC28
|
||||
dir_pin: PB4
|
||||
enable_pin: !PA1, tmc2208_stepper_z:virtual_enable
|
||||
enable_pin: !PA1
|
||||
step_distance: .0025
|
||||
endstop_pin: ^PC10
|
||||
position_endstop: 0.5
|
||||
@@ -62,7 +62,7 @@ stealthchop_threshold: 30
|
||||
[extruder]
|
||||
step_pin: PC4
|
||||
dir_pin: PB7
|
||||
enable_pin: !PA1, tmc2208_extruder:virtual_enable
|
||||
enable_pin: !PA1
|
||||
step_distance: .002
|
||||
nozzle_diameter: 0.400
|
||||
filament_diameter: 1.750
|
||||
|
@@ -6,7 +6,7 @@
|
||||
[stepper_x]
|
||||
step_pin: PD6
|
||||
dir_pin: PD11
|
||||
enable_pin: !PC6, tmc2660_stepper_x:virtual_enable
|
||||
enable_pin: !PC6
|
||||
step_distance: .0125
|
||||
endstop_pin: ^PC14
|
||||
position_endstop: 0
|
||||
@@ -22,7 +22,7 @@ sense_resistor: 0.051
|
||||
[stepper_y]
|
||||
step_pin: PD7
|
||||
dir_pin: !PD12
|
||||
enable_pin: !PC6, tmc2660_stepper_y:virtual_enable
|
||||
enable_pin: !PC6
|
||||
step_distance: .0125
|
||||
endstop_pin: ^PA2
|
||||
position_endstop: 0
|
||||
@@ -38,7 +38,7 @@ sense_resistor: 0.051
|
||||
[stepper_z]
|
||||
step_pin: PD8
|
||||
dir_pin: PD13
|
||||
enable_pin: !PC6, tmc2660_stepper_z:virtual_enable
|
||||
enable_pin: !PC6
|
||||
step_distance: .0025
|
||||
endstop_pin: ^PD29
|
||||
#endstop_pin: PD10 # E0 endstop
|
||||
@@ -56,7 +56,7 @@ sense_resistor: 0.051
|
||||
[extruder]
|
||||
step_pin: PD5
|
||||
dir_pin: PA1
|
||||
enable_pin: !PC6, tmc2660_extruder:virtual_enable
|
||||
enable_pin: !PC6
|
||||
step_distance: .002
|
||||
nozzle_diameter: 0.400
|
||||
filament_diameter: 1.750
|
||||
@@ -80,7 +80,7 @@ sense_resistor: 0.051
|
||||
#[extruder1]
|
||||
#step_pin: PD4
|
||||
#dir_pin: PD9
|
||||
#enable_pin: !PC6, tmc2660_extruder1:virtual_enable
|
||||
#enable_pin: !PC6
|
||||
#heater_pin: !PA16
|
||||
#sensor_pin: PC12
|
||||
#...
|
||||
|
Reference in New Issue
Block a user