tmc2130: The default TOFF time should be 4

The recommended TOFF time in "standalone mode" according to the
tmc2130 is 4, so use that as the default.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2018-05-24 10:44:45 -04:00
parent ee4f37fe0c
commit c4fe43ffce
2 changed files with 2 additions and 2 deletions

View File

@ -453,7 +453,7 @@
#driver_IHOLDDELAY: 8 #driver_IHOLDDELAY: 8
#driver_TPOWERDOWN: 0 #driver_TPOWERDOWN: 0
#driver_BLANK_TIME_SELECT: 1 #driver_BLANK_TIME_SELECT: 1
#driver_TOFF: 1 #driver_TOFF: 4
#driver_HEND: 7 #driver_HEND: 7
#driver_HSTRT: 0 #driver_HSTRT: 0
# Set the given register during the configuration of the TMC2130 # Set the given register during the configuration of the TMC2130

View File

@ -33,7 +33,7 @@ class tmc2130:
tpowerdown = config.getint('driver_TPOWERDOWN', 0, minval=0, maxval=255) tpowerdown = config.getint('driver_TPOWERDOWN', 0, minval=0, maxval=255)
blank_time_select = config.getint('driver_BLANK_TIME_SELECT', 1, blank_time_select = config.getint('driver_BLANK_TIME_SELECT', 1,
minval=0, maxval=3) minval=0, maxval=3)
toff = config.getint('driver_TOFF', 1, minval=1, maxval=15) toff = config.getint('driver_TOFF', 4, minval=1, maxval=15)
hend = config.getint('driver_HEND', 7, minval=0, maxval=15) hend = config.getint('driver_HEND', 7, minval=0, maxval=15)
hstrt = config.getint('driver_HSTRT', 0, minval=0, maxval=7) hstrt = config.getint('driver_HSTRT', 0, minval=0, maxval=7)
# calculate current # calculate current