From af036bb3346026d84b640478beb3e87308367fd8 Mon Sep 17 00:00:00 2001 From: sigsegv7 Date: Fri, 15 Sep 2023 23:35:50 -0400 Subject: kernel: dev: Add extra HPET sleep functions Signed-off-by: sigsegv7 --- sys/dev/timer/hpet.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'sys/dev') diff --git a/sys/dev/timer/hpet.c b/sys/dev/timer/hpet.c index ab30f63..9e9180f 100644 --- a/sys/dev/timer/hpet.c +++ b/sys/dev/timer/hpet.c @@ -127,6 +127,18 @@ hpet_msleep(size_t ms) return hpet_sleep(ms, 1000000000000); } +int +hpet_usleep(size_t us) +{ + return hpet_sleep(us, 1000000000); +} + +int +hpet_nsleep(size_t ns) +{ + return hpet_sleep(ns, 1000000); +} + int hpet_init(void) { -- cgit v1.2.3