ArvernOS
Loading...
Searching...
No Matches
pit.h File Reference
#include <stdint.h>
Include dependency graph for pit.h:

Macros

#define PIT_FREQUENCY_HZ   100
 The timer frequency.
 

Functions

void pit_init ()
 
uint64_t pit_uptime ()
 
uint64_t pit_tick ()
 

Detailed Description

Function Documentation

◆ pit_init()

void pit_init ( )

Initializes the PIT.

◆ pit_tick()

uint64_t pit_tick ( )

Returns the number of ticks since the timer has been initialized.

Returns
the number of ticks since the timer has been initialized

◆ pit_uptime()

uint64_t pit_uptime ( )

Returns the number of seconds since the timer has been initialized.

Returns
the number of seconds since the timer has been initialized