diff options
Diffstat (limited to 'include/arch/i686/timer.h')
| -rw-r--r-- | include/arch/i686/timer.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/arch/i686/timer.h b/include/arch/i686/timer.h new file mode 100644 index 0000000..7a15949 --- /dev/null +++ b/include/arch/i686/timer.h @@ -0,0 +1,13 @@ +#include <stdint.h> + +#define HZ 100 +#define PIT_FREQ 1193182 + +extern volatile const uint64_t *current_tick; + +struct regs_t; + +void timer_init(uint32_t freq); + +/* NOTE: enables interrupts by default */ +void timer_delay(uint64_t ticks); |