Module timer

Source
Expand description

The timer support.

Modulesยง

apic ๐Ÿ”’
hpet ๐Ÿ”’
pit ๐Ÿ”’
The Programmable Interval Timer (PIT) chip (Intel 8253/8254) basically consists of an oscillator, a prescaler and 3 independent frequency dividers. Each frequency divider has an output, which is used to allow the timer to control external circuitry (for example, IRQ 0).

Constantsยง

TIMER_FREQ
The timer frequency (Hz).

Staticsยง

TIMER_IRQ ๐Ÿ”’

Functionsยง

init_ap ๐Ÿ”’
Enables timer interrupt on this AP.
init_bsp ๐Ÿ”’
Initializes the timer state and enable timer interrupts on BSP.
timer_callback ๐Ÿ”’