Home About us GitHub Contact us Docs

FoxOS

Welcome to the FoxOS website!

pit_timer::pit_timer

Signature: pit_timer::pit_timer() : init(0x43), channel_0(0x40), interrupt_handler(0x20)
Attributes: undefined
Description: Constructor for the pit timer class

pit_timer::set_divisor

Signature: void pit_timer::set_divisor(uint16_t new_divisor)
Description: Sets the divisor of the pit timer

Parameters:

Return: void

pit_timer::handle

Signature: void pit_timer::handle()
Description: Handles the timer interrupt for the pit timer

Return: void

pit_timer::sleep

Signature: void pit_timer::sleep(uint32_t ms)
Description: Sleeps for a certain amount of time

Parameters:

Return: void

pit_timer::get_ticks_per_second

Signature: uint64_t pit_timer::get_ticks_per_second()
Description: Gets the number ticks per second of the pit timer

Return: uint64_t

pit_timer::get_ticks

Signature: uint64_t pit_timer::get_ticks()
Description: Gets the current number of ticks of the pit timer since initialized

Return: uint64_t

pit_timer::get_ticks_ms

Signature: uint64_t pit_timer::get_ticks_ms()
Description: No description

Return: uint64_t

Show file on GitHub