aboutsummaryrefslogtreecommitdiff
path: root/include/arch
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-04-18 21:10:57 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2022-04-21 12:12:38 +0300
commit7967a9ab13214543041e4408086668b4db8d3e62 (patch)
tree4dab7b89bd9d5b5b8280877f9d8eb23a1edf1230 /include/arch
parent1ceed7525272b82c1028ebd353e65c3a63bd2714 (diff)
downloadkmi-7967a9ab13214543041e4408086668b4db8d3e62.tar.gz
kmi-7967a9ab13214543041e4408086668b4db8d3e62.zip
start working on timer subsys
Diffstat (limited to 'include/arch')
-rw-r--r--include/arch/timer.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/arch/timer.h b/include/arch/timer.h
new file mode 100644
index 0000000..6d63565
--- /dev/null
+++ b/include/arch/timer.h
@@ -0,0 +1,15 @@
+#ifndef APOS_ARCH_TIMER_H
+#define APOS_ARCH_TIMER_H
+
+#include <apos/timer.h>
+
+/* return hardware timer frequency */
+ticks_t stat_timer();
+
+/* set up timer interrupt for absolute ticks */
+void set_timer(ticks_t ticks);
+
+/* current ticks */
+ticks_t current_ticks();
+
+#endif /* APOS_ARCH_TIMER_H */