![]() |
Max OS 0.3
|
Defines drivers for the Programmable Interval Timer (PIT) and APIC Clock. More...
#include <cstdint>#include <libcommon/time.h>#include <libcommon/vector.h>#include <libcommon/event.h>#include <hardwarecommunication/interrupts.h>#include <hardwarecommunication/apic.h>Go to the source code of this file.
Classes | |
| struct | MaxOS::hardwarecommunication::PITCommand |
| The command byte to send to the PIT, specifies the channel, access mode, operating mode and BCD mode. More... | |
| class | MaxOS::hardwarecommunication::PIT |
| Driver for the Programmable Interval Timer. More... | |
| class | MaxOS::hardwarecommunication::Clock |
| Driver for the APIC clock. More... | |
Typedefs | |
| typedef struct MaxOS::hardwarecommunication::PITCommand | MaxOS::hardwarecommunication::pit_command_t |
| Alias for PITCommand struct. | |
Enumerations | |
| enum class | MaxOS::hardwarecommunication::Channel { INTERRUPT , DRAM_REFRESH , SPEAKER } |
| Where should the PIT raise an event to. More... | |
| enum class | MaxOS::hardwarecommunication::AccessMode { LATCH_COUNT , LOW_BYTE , HIGH_BYTE , LOW_HIGH_BYTE } |
| What mode should the PIT use for the selected channel. More... | |
| enum class | MaxOS::hardwarecommunication::OperatingMode { INTERRUPT_ON_TERMINAL_COUNT , ONE_SHOT , RATE_GENERATOR , SQUARE_WAVE , SOFTWARE_STROBE , HARDWARE_STROBE } |
| What should the PIT do. More... | |
| enum class | MaxOS::hardwarecommunication::BCDMode { BINARY , BCD } |
| Specifies the data encoding mode used by the PIT. More... | |
Variables | |
| constexpr uint16_t | MaxOS::hardwarecommunication::TICK_CALIBRATE_LENGTH = 10 |
| How many loops to spin for calibration. | |
Defines drivers for the Programmable Interval Timer (PIT) and APIC Clock.
Definition in file clock.h.
|
strong |
|
strong |
|
strong |
|
strong |