aboutsummaryrefslogtreecommitdiff
path: root/kernel/inc/timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/inc/timer.h')
-rw-r--r--kernel/inc/timer.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/kernel/inc/timer.h b/kernel/inc/timer.h
new file mode 100644
index 0000000..1233f6e
--- /dev/null
+++ b/kernel/inc/timer.h
@@ -0,0 +1,19 @@
+// MIT License, Copyright (c) 2020 Marvin Borner
+
+#ifndef TIMER_H
+#define TIMER_H
+
+#include <def.h>
+
+enum timer_mode {
+ TIMER_MODE_DEFAULT,
+ TIMER_MODE_SLEEP,
+};
+
+void timer_install_handler(void);
+
+u32 timer_get(void);
+void timer_wait(u32 ticks);
+void timer_install(void);
+
+#endif