stepper: Support an optimized step/unstep function on ARM

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2019-03-09 18:18:24 -05:00
parent 9466c2d66c
commit 34d32c7823
3 changed files with 58 additions and 32 deletions

View File

@@ -76,16 +76,17 @@ config 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 then the code
will "step" and "unstep" in the same C function.
micro-controller. If this value is set to zero (or less) then
the code will "step" and "unstep" in the same C function.
The default is zero for 8-bit AVR based micro-controllers, as
it takes a little over 2us to step and unstep with this
setting.
A setting of zero (or less) on 8-bit AVR micro-controllers
results in a minimum step pulse time a little over 2us.
The default for all other micro-controllers is 2us.
A setting of zero on ARM micro-controllers typically results
in a minimum step pulse time of 20 cpu cycles.
CUSTOMIZING THIS VALUE DOES NOT IMPROVE PERFORMANCE!
The default for AVR is -1, for all other micro-controllers it
is 2us.
# The HAVE_GPIO_x options allow boards to disable support for some
# commands if the hardware does not support the feature.