aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-11-16 17:16:50 -0500
committerKevin O'Connor <kevin@koconnor.net>2018-11-16 17:16:50 -0500
commitb161a69e98eed93d23737b3910a581d1b828f80e (patch)
tree85de1eeffdd50cd844b18bd9369e984f3767c999
parentac72f8ec7864a450b079ae55e42bea5b3b0383fc (diff)
downloadkutter-b161a69e98eed93d23737b3910a581d1b828f80e.tar.gz
kutter-b161a69e98eed93d23737b3910a581d1b828f80e.tar.xz
kutter-b161a69e98eed93d23737b3910a581d1b828f80e.zip
timer_irq: Increase maximum busy wait time to 2us
Increase the amount of time to "busy wait" in the timer dispatch loop to 2 micro-seconds. This, in practice, causes stepper step and unstep events to occur within a single hardware interrupt. Doing that helps stabilize the single active stepper performance benchmarks. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--src/generic/timer_irq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/generic/timer_irq.c b/src/generic/timer_irq.c
index 0b4c3c8d..f7e255e6 100644
--- a/src/generic/timer_irq.c
+++ b/src/generic/timer_irq.c
@@ -33,7 +33,7 @@ static uint32_t timer_repeat_until;
#define TIMER_IDLE_REPEAT_TICKS timer_from_us(500)
#define TIMER_REPEAT_TICKS timer_from_us(100)
-#define TIMER_MIN_TRY_TICKS timer_from_us(1)
+#define TIMER_MIN_TRY_TICKS timer_from_us(2)
#define TIMER_DEFER_REPEAT_TICKS timer_from_us(5)
// Invoke timers - called from board irq code.