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
4void init_pit(void) {
5 int counter = 1193182 / 100;
6 outb(0x43, 0x34);
7 outb(0x40,counter & 0xFF);
8 outb(0x40,counter >> 8);
9}
static void outb(uint16_t port, uint8_t data)
Definition io.h:6
void init_pit(void)
Definition pit.c:4