diff options
author | Marvin Borner | 2021-07-01 21:13:01 +0200 |
---|---|---|
committer | Marvin Borner | 2021-07-01 22:32:16 +0200 |
commit | f3e85eedc434da973267f360abdbb79cb6f24100 (patch) | |
tree | 9fd71ec70454474a0a2cff479c7d9b949e779c74 /kernel/inc/timer.h | |
parent | 340e841772eb13d9087235b8707c1cfeff8710cb (diff) |
Timing is everything
Diffstat (limited to 'kernel/inc/timer.h')
-rw-r--r-- | kernel/inc/timer.h | 19 |
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 |