From 8e559cbb41d696eb119c5daccd33670ebb5207c3 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Mon, 25 Dec 2023 14:55:54 -0500 Subject: kernel: timer: Add microseconds support Signed-off-by: Ian Moffett --- sys/include/sys/timer.h | 2 ++ 1 file changed, 2 insertions(+) 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); }; -- cgit v1.2.3