LumaOS  v0.1.116
An experimental x86-64 OS
Loading...
Searching...
No Matches
pit.h
Go to the documentation of this file.
1
9
10#ifndef KERNEL_ARCH_X86_64_PIT_H
11#define KERNEL_ARCH_X86_64_PIT_H
12
13#include <arch/x86_64/idt.h>
14
15extern volatile uint64_t pit_ticks;
16extern volatile uint16_t pit_frequency;
17
22void pit_init(uint16_t frequency);
23
28void pit_sleep_ms(uint32_t ms);
29
30#endif
Initializes and holds the IDT for the kernel.
void pit_init(uint16_t frequency)
Initialize the PIT timer.
Definition pit.c:29
void pit_sleep_ms(uint32_t ms)
Sleep for a certain time using the PIT.
Definition pit.c:45