aboutsummaryrefslogtreecommitdiff
path: root/kernel/inc/drivers/timer.h
diff options
context:
space:
mode:
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