diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-07-27 12:19:09 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-08-08 00:27:27 -0400 |
commit | 6a63c27542fc7b432ed438ce1d62243b5aebc3da (patch) | |
tree | ddcbb04f33248fdff3153c6fb4ea54711e9840ba /src/simulator/main.c | |
parent | 62f77f6bc56e0fcffdcdd4dcf2cfd6a7669099f2 (diff) | |
download | kutter-6a63c27542fc7b432ed438ce1d62243b5aebc3da.tar.gz kutter-6a63c27542fc7b432ed438ce1d62243b5aebc3da.tar.xz kutter-6a63c27542fc7b432ed438ce1d62243b5aebc3da.zip |
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>
Diffstat (limited to 'src/simulator/main.c')
-rw-r--r-- | src/simulator/main.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/simulator/main.c b/src/simulator/main.c index ccd6dd93..7519a35b 100644 --- a/src/simulator/main.c +++ b/src/simulator/main.c @@ -74,15 +74,20 @@ timer_is_before(uint32_t time1, uint32_t time2) return (int32_t)(time1 - time2) < 0; } +uint32_t +timer_read_time(void) +{ + return 0; // XXX +} + void -timer_periodic(void) +timer_kick(void) { } -uint32_t -timer_read_time(void) +void +timer_periodic(void) { - return 0; // XXX } |