|
LumaOS
v0.1.116
An experimental x86-64 OS
|
Handles timer interrupts from the PIT (Programmable Interrupt Timer). More...
#include <arch/x86_64/pit.h>#include "arch/x86_64/io.h"#include "arch/x86_64/irq.h"#include "arch/x86_64/pic.h"Go to the source code of this file.
Functions | |
| static void | timer_irq (struct interrupt_frame *frame) |
| Handles the timer. | |
| void | pit_init (uint16_t frequency) |
| Initialize the PIT timer. | |
| void | pit_sleep_ms (uint32_t ms) |
| Sleep for a certain time using the PIT. | |
Variables | |
| volatile uint64_t | pit_ticks = 0 |
| volatile uint16_t | pit_frequency = 0 |
Handles timer interrupts from the PIT (Programmable Interrupt Timer).
Definition in file pit.c.
| void pit_init | ( | uint16_t | frequency | ) |
| void pit_sleep_ms | ( | uint32_t | ms | ) |
|
static |