2021-12-20 20:53:57 +00:00
|
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
2022-08-17 12:57:50 +00:00
|
|
|
#include "../../io.h"
|
2021-12-20 20:53:57 +00:00
|
|
|
#define PIT_DATA_0 0x40
|
|
|
|
#define PIT_DATA_1 0x41
|
|
|
|
#define PIT_DATA_2 0x42
|
|
|
|
#define PIT_COMMAND 0x43
|
|
|
|
|
|
|
|
|
|
|
|
extern uint32_t pit_tick;
|
|
|
|
|
|
|
|
|
|
|
|
void pit_initialise();
|
|
|
|
|
|
|
|
|
|
|
|
void get_pit_count();
|
|
|
|
|
|
|
|
void set_pit_count();
|