mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-10 16:27:55 -06:00
sched: Support adding timers to the start of timer_list
If sched_add_timer() is called on a timer that would make it the new head of the list, then add it and signal the board code that the timer should be rescheduled. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
62f77f6bc5
commit
6a63c27542
7 changed files with 62 additions and 45 deletions
|
@ -10,7 +10,7 @@
|
|||
#include "board/timer_irq.h" // timer_dispatch_many
|
||||
#include "basecmd.h" // stats_note_sleep
|
||||
#include "command.h" // shutdown
|
||||
#include "sched.h" // sched_timer_kick
|
||||
#include "sched.h" // sched_timer_dispatch
|
||||
|
||||
DECL_CONSTANT(CLOCK_FREQ, CONFIG_CLOCK_FREQ);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue