2021-07-26 09:17:52 +00:00
|
|
|
#ifndef PIT_H
|
|
|
|
#define PIT_H
|
|
|
|
|
|
|
|
#define PIT_COUNTER_0 0x40
|
|
|
|
#define PIT_COUNTER_1 0x41
|
|
|
|
#define PIT_COUNTER_2 0x42
|
2021-07-26 12:15:21 +00:00
|
|
|
#define PIT_CONTROL_REG 0x43
|
|
|
|
|
|
|
|
#define PIT_MODE_2 (0x2 << 1)
|
|
|
|
|
|
|
|
#define PIT_RW_LSB (0x1 << 4)
|
|
|
|
#define PIT_RW_MSB (0x1 << 5)
|
|
|
|
|
|
|
|
#define PIT_DIVIDER 11931
|
2021-07-26 09:17:52 +00:00
|
|
|
|
|
|
|
void pit_handler(void);
|
|
|
|
unsigned long gettick(void);
|
2021-07-26 12:15:21 +00:00
|
|
|
void init_pit(void);
|
2021-07-26 09:17:52 +00:00
|
|
|
|
|
|
|
#endif /* !PIT_H */
|