aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2021-03-18 22:44:38 -0400
committerKevin O'Connor <kevin@koconnor.net>2021-03-18 22:44:38 -0400
commitb6eea021b16226343c75a90b81ea49ed2d6c0b32 (patch)
tree4ecd6bb0092ddcd240af7c09e1d38f2ebaf4b730
parent4566392fafe801573972380ef7d2391affd1282c (diff)
downloadkutter-b6eea021b16226343c75a90b81ea49ed2d6c0b32.tar.gz
kutter-b6eea021b16226343c75a90b81ea49ed2d6c0b32.tar.xz
kutter-b6eea021b16226343c75a90b81ea49ed2d6c0b32.zip
tmc2660: Use lowercase for stallguard/coolstep fields
Use lowercase for the field names so that it matches the tmc2130/tmc5160 field names. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--klippy/extras/tmc2660.py30
1 files changed, 15 insertions, 15 deletions
diff --git a/klippy/extras/tmc2660.py b/klippy/extras/tmc2660.py
index 0e054c59..a4493e19 100644
--- a/klippy/extras/tmc2660.py
+++ b/klippy/extras/tmc2660.py
@@ -33,17 +33,17 @@ Fields["CHOPCONF"] = {
}
Fields["SMARTEN"] = {
- "SEMIN" : 0x0f,
- "SEUP": 0x03 << 5,
- "SEMAX": 0x0f << 8,
- "SEDN": 0x03 << 13,
- "SEIMIN": 0x01 << 15
+ "semin" : 0x0f,
+ "seup": 0x03 << 5,
+ "semax": 0x0f << 8,
+ "sedn": 0x03 << 13,
+ "seimin": 0x01 << 15
}
Fields["SGCSCONF"] = {
"CS": 0x1f,
- "SGT": 0x7F << 8,
- "SFILT": 0x01 << 16
+ "sgt": 0x7F << 8,
+ "sfilt": 0x01 << 16
}
Fields["DRVCONF"] = {
@@ -94,7 +94,7 @@ Fields["READRSP@RDSEL2"] = {
"SG_RESULT@RDSEL2": 0x1f << 19
}
-SignedFields = ["SGT"]
+SignedFields = ["sgt"]
FieldFormatters = dict(tmc2130.FieldFormatters)
FieldFormatters.update({
@@ -248,15 +248,15 @@ class TMC2660:
self.fields.get_field("HEND")) > 15:
raise config.error("driver_HEND + driver_HSTRT must be <= 15")
# SMARTEN
- set_config_field(config, "SEIMIN", 0)
- set_config_field(config, "SEDN", 0)
- set_config_field(config, "SEMAX", 0)
- set_config_field(config, "SEUP", 0)
- set_config_field(config, "SEMIN", 0)
+ set_config_field(config, "seimin", 0)
+ set_config_field(config, "sedn", 0)
+ set_config_field(config, "semax", 0)
+ set_config_field(config, "sup", 0)
+ set_config_field(config, "semin", 0)
# SGSCONF
- set_config_field(config, "SFILT", 0)
- set_config_field(config, "SGT", 0)
+ set_config_field(config, "sfilt", 0)
+ set_config_field(config, "sgt", 0)
# DRVCONF
set_config_field(config, "SLPH", 0)