mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-03 18:22:22 +00:00
22 lines
297 B
C
22 lines
297 B
C
#ifndef _TIMER_H
|
|
#define _TIMER_H
|
|
|
|
#include <isr.h>
|
|
|
|
#define PIT_DIV 1193180
|
|
#define PIT_CH0 0x40
|
|
#define PIT_CH1 0x41
|
|
#define PIT_CH2 0x42
|
|
#define PIT_CMD 0x43
|
|
|
|
#define TIMER_FREQ 1000
|
|
|
|
int timer_init(void);
|
|
void timer_wait(size_t ticks);
|
|
|
|
int hpet_init(void);
|
|
|
|
// TODO: rtc_init(void);
|
|
|
|
#endif
|