jankos/pit.h
shockrahwow a9d947c51f further refactor of pit functions
now they are all prepended with pit_
2019-11-29 13:08:59 -08:00

18 lines
318 B
C

#ifndef PIT_H
#define PIT_H
#include "interrupts.h"
#include "types.h"
// 60hz timer for now
#define PIT_TIMER_INTERVAL 100
#define PIT_TIME_DATA0 0x40
#define PIT_TIME_DATA1 0x41
#define PIT_TIME_DATA2 0x42
void pit_inc_ticks(struct cpu_reg_state*);
void pit_timer_wait(u32);
void pit_install_timer(void);
#endif