aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/tmc5160.py
Commit message (Collapse)AuthorAgeFilesLines
* tmc: Configure "intpol" field from TMCMicrostepHelperKevin O'Connor2019-06-281-1/+0
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc: Add support for virtual enable pinsKevin O'Connor2019-06-281-2/+2
| | | | | | | Add support for enabling the stepper via the communication channel. This improves support for boards with a shared enable line. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc: Simplify internal DUMP_TMC interfaceKevin O'Connor2019-06-251-4/+1
| | | | | | | | Only the tmc2208 driver needs special read register translation logic. Rework the code so a default implementation is available for all the other drivers. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Update tmc5160 block in example-extras.cfgKevin O'Connor2019-06-181-1/+0
| | | | | | | | | | List all the configurable parameters in the tmc5160 example block and use similar wording as the other tmc drivers. Also, don't allow DEDGE to be configured as it would just break the current code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc: Move common TMC stepper driver code to new file tmc.pyKevin O'Connor2019-06-101-7/+7
| | | | | | Move common code from tmc2130.py to tmc.py. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc2130: Rework remaining config helpers to use mcu_tmc interfaceKevin O'Connor2019-06-101-19/+7
| | | | | | | | Introduce TMCMicrostepHelper and TMCStealthchopHelper helper code that uses the mcu_tmc interface. Update the callers to use these new helpers. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc2130: Move TMC virtual endstop code into a new TMCEndstopHelper classKevin O'Connor2019-06-101-9/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc5160: Move current setting code to its own helper classKevin O'Connor2019-06-101-66/+61
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc2130: Transmit register initialization during connect callbackKevin O'Connor2019-06-101-2/+0
| | | | | | | | Perform the register initialization directly from TMCCommandHelper and perform it during the "connect" phase. This unifies the register setup for the TMC2130, TMC2208, TMC2660, and TMC5160. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc5160: Use TMCCommandHelperKevin O'Connor2019-06-101-46/+7
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc5160: Use tmc2130.MCU_TMC_SPI for low-level get/set_register accessKevin O'Connor2019-06-101-43/+13
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc5160: Rename registers to Registers and fields to FieldsKevin O'Connor2019-06-101-87/+87
| | | | | | | Minor change to the code so that it is more similar to the other tmc drivers. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* test: Add test cases for tmc driversKevin O'Connor2019-06-101-0/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc2130: Check field name validity. (#1697)Artem Belevich2019-06-021-1/+3
| | | | | This avoids crashing Klipper if user entered invalid field name. Signed-off-by: Artem Belevich <artemb@gmail.com>
* tmc2130: Add support for two's complement signed fields to FieldHelperKevin O'Connor2019-05-291-2/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc5160: Add support for TMC5160 steppers (#1637)Stephan2019-05-201-0/+437
Signed-off-by: Stephan Oelze <stephan.oelze@gmail.com>