aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/tmc2130.py
Commit message (Collapse)AuthorAgeFilesLines
...
* tmc2130: Minor code cleanupKevin O'Connor2018-08-271-53/+58
| | | | | | | Rework the code to use set_register() with the string name of the desired register to set. Add a get_register() method. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pins: Explicitly pass can_invert and can_pullup to lookup_pin()Kevin O'Connor2018-07-261-6/+3
| | | | | | | | | | | | Don't pass pin_type to lookup_pin() - instead, if a pin can be inverted or can have a pullup, then the caller must explicitly specify that when calling lookup_pin(). This simplifies the code for the cases where it is not valid to invert or pullup. Explicitly pass the pin_type to setup_pin() and have ppins.setup_pin() apply default pullup and invert flags. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc2130: Add a DUMP_TMC helper commandKevin O'Connor2018-06-301-3/+33
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc2130: Allow the PWMCONF register to be configuredKevin O'Connor2018-05-251-0/+8
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc2130: Initial support for sensorless homingKevin O'Connor2018-05-251-5/+65
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc2130: Use an SPI rate of 4MhzKevin O'Connor2018-05-251-1/+1
| | | | | | The spec recommends 4Mhz for SPI, so use that. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc2130: Configure stealthchop velocity limitKevin O'Connor2018-05-251-4/+17
| | | | | | | Change stealhchop config option to a stealthchop_threshold configuration option. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc2130: The default TOFF time should be 4Kevin O'Connor2018-05-241-1/+1
| | | | | | | 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>
* tmc2130: Add initial support for TMC2130 stepper motor driversKevin O'Connor2018-05-201-0/+70
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>