aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/tmc5160.py
diff options
context:
space:
mode:
authorAlex Voinea <voinea.dragos.alexandru@gmail.com>2024-05-14 22:23:06 +0200
committerKevinOConnor <kevin@koconnor.net>2024-05-14 18:21:24 -0400
commited8dca8df08924e7df9291d5e4ff88c9fee4ca4e (patch)
tree61b5882acf00f60ecbe84ebb2431e3faa405e1e9 /klippy/extras/tmc5160.py
parent5249d955bb0a4ee131cc3def5d9d53d61e2d4334 (diff)
downloadkutter-ed8dca8df08924e7df9291d5e4ff88c9fee4ca4e.tar.gz
kutter-ed8dca8df08924e7df9291d5e4ff88c9fee4ca4e.tar.xz
kutter-ed8dca8df08924e7df9291d5e4ff88c9fee4ca4e.zip
tmc: Implement high_velocity_threshold for drivers that support it
Signed-off-by: Alex Voinea <voinea.dragos.alexandru@gmail.com>
Diffstat (limited to 'klippy/extras/tmc5160.py')
-rw-r--r--klippy/extras/tmc5160.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/klippy/extras/tmc5160.py b/klippy/extras/tmc5160.py
index 97d2d6f9..02e16cd4 100644
--- a/klippy/extras/tmc5160.py
+++ b/klippy/extras/tmc5160.py
@@ -242,6 +242,9 @@ Fields["TCOOLTHRS"] = {
Fields["TSTEP"] = {
"tstep": 0xfffff << 0
}
+Fields["THIGH"] = {
+ "thigh": 0xfffff << 0
+}
SignedFields = ["cur_a", "cur_b", "sgt", "xactual", "vactual", "pwm_scale_auto"]
@@ -337,6 +340,7 @@ class TMC5160:
tmc.TMCWaveTableHelper(config, self.mcu_tmc)
tmc.TMCStealthchopHelper(config, self.mcu_tmc)
tmc.TMCVcoolthrsHelper(config, self.mcu_tmc)
+ tmc.TMCVhighHelper(config, self.mcu_tmc)
# Allow other registers to be set from the config
set_config_field = self.fields.set_config_field
# GCONF