LF OS
Hobby operating system for amd64 with high ambitions
Loading...
Searching...
No Matches
pit.c
Go to the documentation of this file.
1
#include "
pit.h
"
2
#include "
io.h
"
3
4
void
init_pit
(
void
) {
5
int
counter = 1193182 / 100;
6
outb
(0x43, 0x34);
7
outb
(0x40,counter & 0xFF);
8
outb
(0x40,counter >> 8);
9
}
io.h
outb
static void outb(uint16_t port, uint8_t data)
Definition
io.h:6
init_pit
void init_pit(void)
Definition
pit.c:4
pit.h
src
kernel
arch
amd64
pit.c
Generated on Tue Apr 23 2024 20:41:16 for LF OS by
1.9.8