aboutsummaryrefslogtreecommitdiff
path: root/kernel/inc/drivers/timer.h
diff options
context:
space:
mode:
authorMarvin Borner2021-05-20 20:41:24 +0200
committerMarvin Borner2021-05-20 20:41:24 +0200
commit298aaf63f15350e6248d5a96e8c6a63b0ec93e0f (patch)
tree952331f841b4d02d0b7189da716648df5cdb4d8e /kernel/inc/drivers/timer.h
parentb22346a9b830b642e684e13cf4946d8ef8d8e1ca (diff)
Major restructuring
Diffstat (limited to 'kernel/inc/drivers/timer.h')
-rw-r--r--kernel/inc/drivers/timer.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/kernel/inc/drivers/timer.h b/kernel/inc/drivers/timer.h
new file mode 100644
index 0000000..9ff23f8
--- /dev/null
+++ b/kernel/inc/drivers/timer.h
@@ -0,0 +1,17 @@
+// MIT License, Copyright (c) 2020 Marvin Borner
+
+#ifndef TIMER_H
+#define TIMER_H
+
+#include <def.h>
+#include <drivers/interrupts.h>
+
+u32 timer_get(void);
+void timer_wait(u32 ticks);
+void timer_install(void);
+void timer_handler(struct regs *r) NONNULL;
+
+void scheduler_enable(void);
+void scheduler_disable(void);
+
+#endif