Go to the documentation of this file.
18 #ifndef __LIBARCH_INTEL_PIT_H
19 #define __LIBARCH_INTEL_PIT_H
Registers
Hardware registers.
Intel 8254 Programmable Interrupt Timer (PIT).
ControlFlags
Control Register Flags.
Represents a configurable timer device.
unsigned int uint
Unsigned integer number.
IntelIO m_io
I/O instance.
static const uint InterruptNumber
The IRQ vector for channel 0 is fixed to IRQ0.
static const uint OscillatorFreq
Oscillator frequency in hertz used by the PIT.
unsigned int Size
Any sane size indicator cannot go negative.
Result setControl(ControlFlags flags)
Set Control register.
virtual Result setFrequency(Size hertz)
Set interrupt frequency.
Result waitTrigger()
Busy wait for one trigger period.
uint getCounter()
Get current timer counter.