30#ifndef KERNEL_ARCH_I686_DEVICES_PIT_H
31#define KERNEL_ARCH_I686_DEVICES_PIT_H
33#include <kernel/types.h>
36#define PIT_INTERNAL_FREQUENCY (1193182)
38#define PIT_MIN_CHANNEL_FREQUENCY (19)
39#define PIT_MAX_CHANNEL_FREQUENCY (PIT_INTERNAL_FREQUENCY)
41#define PIT_CHANNELS_COUNT (3)
error_t pit_config_channel(pit_channel, u32 frequency, pit_mode)
Configure a single PIT channel.
Definition: pit.c:86
u16 pit_read_channel(pit_channel)
Read the current value inside the channel's counter.
Definition: pit.c:116
pit_channel
The different PIT channels available.
Definition: pit.h:47
pit_mode
The different programmable modes for a channel.
Definition: pit.h:57