From 9b63c0000b2e0d9d0a306e56dbc7bc28403e5549 Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Thu, 17 Feb 2022 13:40:55 +0000 Subject: many changes have happned - updates to panic() interface - genericized timer interface - (yet unused) additions to task management --- kc/core/pit8253.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'kc/core/pit8253.h') diff --git a/kc/core/pit8253.h b/kc/core/pit8253.h index 25861f7..32cb9b1 100644 --- a/kc/core/pit8253.h +++ b/kc/core/pit8253.h @@ -1,10 +1,17 @@ #pragma once +#include "timer.h" #include void pit8253_init(void); void pit8253_start(void); void pit8253_stop(void); -uint64_t pit8253_count(void); -void pit8253_set_hz(uint16_t hz); + +void pit8253_set_frequency(uint32_t frequency); +uint32_t pit8253_get_frequency(void); + +uint64_t pit8253_nanoseconds_elapsed(void); +uint64_t pit8253_nanoseconds_delta(void); + +extern const struct timer_source pit8253_timer_source; -- cgit v1.3.1-1-g115d