aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/tmc2130.py
Commit message (Collapse)AuthorAgeFilesLines
...
* tmc2130: Convert field helper into a classKevin O'Connor2019-02-031-18/+20
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc2208: Decode register fields in DUMP_TMC (#1156)lorf2019-02-021-1/+35
| | | | | | | | | | | Report values of TMC2208 register fields in DUMP_TMC command to help in tuning and diagnostics. This also adds functions to refer to register fields by name for TMC drivers and register mappings for TMC2208. Signed-off-by: Kevin O'Connor <kevin@koconnor.net> Signed-off-by: Dmitry Frolov <dmitry.frolov@gmail.com>
* tmc2130: Use bus.py helper code for spiKevin O'Connor2018-11-211-29/+7
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* endstop_phase: Add support for detecting phase via TMC stepper driversKevin O'Connor2018-10-161-0/+4
| | | | | | | | The Trinamic stepper motor drivers are capable of reporting the stepper phase - add support for using that capability to the enddstop_phases module. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mcu: Rename add_config_object() to register_config_callback()Kevin O'Connor2018-09-031-1/+1
| | | | | | | | | Change the name of the config registration method and pass an explicit reference to the callback to the new method. This makes the relationship between mcu registration and build_config() more clear in the calling code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* 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>