summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2023-12-25 14:55:54 -0500
committerIan Moffett <ian@osmora.org>2023-12-25 14:55:54 -0500
commit8e559cbb41d696eb119c5daccd33670ebb5207c3 (patch)
treea282204bdb4613455517a0b40ab4675e4e167885 /sys
parentbe09d3e5351fc42426605923b0fe7bda420cba21 (diff)
kernel: timer: Add microseconds support
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys')
-rw-r--r--sys/include/sys/timer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/include/sys/timer.h b/sys/include/sys/timer.h
index 41cc12b..e00d808 100644
--- a/sys/include/sys/timer.h
+++ b/sys/include/sys/timer.h
@@ -76,7 +76,9 @@ struct timer {
int(*usleep)(size_t us);
int(*nsleep)(size_t ns);
void(*periodic_ms)(size_t ms);
+ void(*periodic_us)(size_t ms);
void(*oneshot_ms)(size_t ms);
+ void(*oneshot_us)(size_t ms);
void(*stop)(void);
};