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