diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2021-10-27 19:10:36 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2021-11-04 12:06:27 -0400 |
commit | 4acfd8d7c8973f6cc7b8a3eaa8ea9e82a92b018b (patch) | |
tree | 8e9e494c4fe21f2a96010ed23962e5efa6696af4 /src/Kconfig | |
parent | 913d099261399ba737b35752f3c3be6da618bb6a (diff) | |
download | kutter-4acfd8d7c8973f6cc7b8a3eaa8ea9e82a92b018b.tar.gz kutter-4acfd8d7c8973f6cc7b8a3eaa8ea9e82a92b018b.tar.xz kutter-4acfd8d7c8973f6cc7b8a3eaa8ea9e82a92b018b.zip |
stepper: Make step pulse duration customizable at run-time
Remove the STEP_DELAY Kconfig option and replace it with a per-stepper
step_pulse_duration printer.cfg config option.
The AVR code will continue to have optimized code to step and "unstep"
in the same function (which is automatically activated when the step
delay is 40 ticks or less). This change removes the Kconfig option
for single function step/unstep on 32bit processors.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/Kconfig')
-rw-r--r-- | src/Kconfig | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/Kconfig b/src/Kconfig index f1081907..43ab2bc6 100644 --- a/src/Kconfig +++ b/src/Kconfig @@ -73,31 +73,6 @@ config USB_SERIAL_NUMBER string "USB serial number" if !USB_SERIAL_NUMBER_CHIPID endmenu -# Step timing customization -config CUSTOM_STEP_DELAY - bool "Specify a custom step pulse duration" - depends on LOW_LEVEL_OPTIONS -config STEP_DELAY - int - default 2 -config STEP_DELAY - int "Step pulse duration (in microseconds)" - depends on CUSTOM_STEP_DELAY - help - Specify the duration of the stepper step pulse time. This - setting applies to all stepper drivers controlled by the - micro-controller. If this value is set to zero (or less) then - the code will "step" and "unstep" in the same C function. - - A setting of zero (or less) on 8-bit AVR micro-controllers - results in a minimum step pulse time a little over 2us. - - A setting of zero on ARM micro-controllers typically results - in a minimum step pulse time of 20 cpu cycles. - - The default for AVR is -1, for all other micro-controllers it - is 2us. - config INITIAL_PINS string "GPIO pins to set at micro-controller startup" depends on LOW_LEVEL_OPTIONS |