aboutsummaryrefslogtreecommitdiffstats
path: root/src/Kconfig
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-06-13 19:42:34 -0400
committerKevin O'Connor <kevin@koconnor.net>2016-06-14 14:24:14 -0400
commit6220cdda9247391b02007d4e8d3c640eca962baa (patch)
tree05c8c28f3c4071407ac4537d7c5a97990b78b67a /src/Kconfig
parentda305e6b61efab8c16d324723859b318fb1979a9 (diff)
downloadkutter-6220cdda9247391b02007d4e8d3c640eca962baa.tar.gz
kutter-6220cdda9247391b02007d4e8d3c640eca962baa.tar.xz
kutter-6220cdda9247391b02007d4e8d3c640eca962baa.zip
stepper: Support rescheduling of step events on faster MCUs
On faster MCUs the step and unstep events may be too close for the stepper motor driver. Add a CONFIG_NO_UNSTEP_DELAY build option and support the case where it is not set. This allows faster MCUs to schedule two events for each step (one for the step and one for the unstep). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/Kconfig')
-rw-r--r--src/Kconfig7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Kconfig b/src/Kconfig
index db265c96..1a326d06 100644
--- a/src/Kconfig
+++ b/src/Kconfig
@@ -25,6 +25,13 @@ config HAVE_GPIO_HARD_PWM
bool
default n
+config NO_UNSTEP_DELAY
+ # Slow micro-controllers do not require a delay before returning a
+ # stepper step pin to its default level. A board can enable this
+ # option to optimize the stepper_event() handler in this case.
+ bool
+ default n
+
config INLINE_STEPPER_HACK
# Enables gcc to inline stepper_event() into the main timer irq handler
bool