aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-06-18 09:40:14 -0400
committerKevin O'Connor <kevin@koconnor.net>2019-06-18 09:41:27 -0400
commit20d0bb8354dc57b96bc2153d8c2977566b4de002 (patch)
treeafe019af868466b9a394e6b29f03033a8499e8b5
parent494a5b732dbcc9c2ad120e434276984cd186f2a0 (diff)
downloadkutter-20d0bb8354dc57b96bc2153d8c2977566b4de002.tar.gz
kutter-20d0bb8354dc57b96bc2153d8c2977566b4de002.tar.xz
kutter-20d0bb8354dc57b96bc2153d8c2977566b4de002.zip
config: Update tmc5160 block in example-extras.cfg
List all the configurable parameters in the tmc5160 example block and use similar wording as the other tmc drivers. Also, don't allow DEDGE to be configured as it would just break the current code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--config/example-extras.cfg35
-rw-r--r--klippy/extras/tmc5160.py1
2 files changed, 18 insertions, 18 deletions
diff --git a/config/example-extras.cfg b/config/example-extras.cfg
index 59d51928..31bf15de 100644
--- a/config/example-extras.cfg
+++ b/config/example-extras.cfg
@@ -1125,12 +1125,6 @@
# 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 block is an example with values that may be intersting.
-# If you want to turn further, see trinamics documentation.
-# Following registers are implemented with theyre fields:
-# COOLCONF, CHOPCONF, DRV_STATUS, FACTORY_CONF, GCONF, GSTAT, IHOLD_IRUN, IOIN
-# LOST_STEPS, MSCNT, MSCURACT, OTP_READ, PWM_AUTO, PWMCONF, PWM_SCALE, TPOWERDOWN,
-# TPWMTHRS, TSTEP
#[tmc5160 stepper_x]
#cs_pin:
# The pin corresponding to the TMC5160 chip select line. This pin
@@ -1169,18 +1163,31 @@
#driver_IHOLDDELAY: 6
#driver_TPOWERDOWN: 10
#driver_TBL: 2
-#driver_TOFF: 0
+#driver_TOFF: 3
#driver_HEND: 2
#driver_HSTRT: 5
-#driver_tpfd: 4
-#driver_pwm_autoscale: True
-#driver_pwm_autograd: True
-#driver_pwm_freq: 1
+#driver_FD3: 0
+#driver_TPFD: 4
+#driver_CHM: 0
+#driver_VHIGHFS: 0
+#driver_VHIGHCHM: 0
+#driver_DISS2G: 0
+#driver_DISS2VS: 0
+#driver_PWM_AUTOSCALE: True
+#driver_PWM_AUTOGRAD: True
+#driver_PWM_FREQ: 1
+#driver_FREEWHEEL: 0
#driver_PWM_GRAD: 0
#driver_PWM_OFS: 30
#driver_PWM_REG: 4
#driver_PWM_LIM: 12
#driver_SGT: 0
+#driver_SEMIN: 0
+#driver_SEUP: 0
+#driver_SEMAX: 0
+#driver_SEDN: 0
+#driver_SEIMIN: 0
+#driver_SFILT: 0
# Set the given register during the configuration of the TMC5160
# chip. This may be used to set custom motor parameters. The
# defaults for each parameter are next to the parameter name in the
@@ -1193,12 +1200,6 @@
# to an appropriate sensitivity value.) The default is to not enable
# sensorless homing. See docs/Sensorless_Homing.md for details on how
# to configure this.
-#driver_semin: 0
-#driver_seup: 0
-#driver_semax: 0
-#driver_sedn: 0
-#driver_seimin: 0
-#driver_sfilt: 0
# Homing override. One may use this mechanism to run a series of
# g-code commands in place of a G28 found in the normal g-code input.
diff --git a/klippy/extras/tmc5160.py b/klippy/extras/tmc5160.py
index 4fe37716..d9926638 100644
--- a/klippy/extras/tmc5160.py
+++ b/klippy/extras/tmc5160.py
@@ -315,7 +315,6 @@ class TMC5160:
set_config_field(config, "vhighchm", 0)
set_config_field(config, "tpfd", 4)
set_config_field(config, "intpol", True, "interpolate")
- set_config_field(config, "dedge", 0)
set_config_field(config, "diss2g", 0)
set_config_field(config, "diss2vs", 0)
# COOLCONF