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:
parent
3799f40f29
commit
26246b1f28
|
@ -21,7 +21,7 @@ class tmc2130:
|
||||||
self.oid = self.mcu.create_oid()
|
self.oid = self.mcu.create_oid()
|
||||||
self.mcu.add_config_cmd(
|
self.mcu.add_config_cmd(
|
||||||
"config_spi oid=%d bus=%d pin=%s mode=%d rate=%d shutdown_msg=" % (
|
"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.)
|
run_current = config.getfloat('run_current', above=0., maxval=2.)
|
||||||
hold_current = config.getfloat('hold_current', run_current,
|
hold_current = config.getfloat('hold_current', run_current,
|
||||||
above=0., maxval=2.)
|
above=0., maxval=2.)
|
||||||
|
|
Loading…
Reference in New Issue