|
IgrOS-Kernel 0.1.34.545
Simple C++20 Kernel for i386/x86_64
|
Programmable interrupt timer. More...
#include <arch/io.hpp>#include <arch/irq.hpp>#include <arch/register.hpp>#include <arch/types.hpp>#include <drivers/clock/pit.hpp>#include <klib/kMath.hpp>#include <klib/kPrint.hpp>
Go to the source code of this file.
Classes | |
| struct | igros::arch::anonymous_namespace{pit.cpp}::pit_t |
| PIT driver state. More... | |
Namespaces | |
| namespace | igros |
| IgrOS kernel: common types and literals. | |
| namespace | igros::arch |
| Architecture-independent interface: drivers and aliases of current architecture types. | |
| namespace | igros::arch::anonymous_namespace{pit.cpp} |
| Anonymous namespace. | |
Functions | |
| void | igros::arch::pitSetupFrequency (const igros_word_t frequency) noexcept |
| Setup PIT frequency. | |
| auto | igros::arch::pitGetTicks () noexcept -> igros_quad_t |
| Get expired ticks. | |
| static void | igros::arch::pitInterruptHandler (const register_t *regs) noexcept |
| PIT interrupt (#0) handler. | |
| auto | igros::arch::pitSetup () noexcept -> bool |
| Setup programmable interrupt timer. | |
Variables | |
| constexpr auto | igros::arch::PIT_CONTROL {static_cast<port_t>(0x0043_u16)} |
| Mode/command register. | |
| constexpr auto | igros::arch::PIT_CHANNEL_0 {static_cast<port_t>(0x0040_u16)} |
| Channel 0 data port (system timer). | |
| static constinit pit_t | igros::arch::pit {} |
| PIT state. | |
Programmable interrupt timer.
Definition in file pit.cpp.