tmc2130: Use an SPI rate of 4Mhz

The spec recommends 4Mhz for SPI, so use that.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2018-05-22 22:05:37 -04:00
parent 3799f40f29
commit 26246b1f28
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ class tmc2130:
self.oid = self.mcu.create_oid()
self.mcu.add_config_cmd(
"config_spi oid=%d bus=%d pin=%s mode=%d rate=%d shutdown_msg=" % (
self.oid, 0, cs_pin_params['pin'], 3, 3600000))
self.oid, 0, cs_pin_params['pin'], 3, 4000000))
run_current = config.getfloat('run_current', above=0., maxval=2.)
hold_current = config.getfloat('hold_current', run_current,
above=0., maxval=2.)