#include "devices/pit.h"
#include <debug.h>
#include <stdint.h>
#include "threads/interrupt.h"
#include "threads/io.h"
Go to the source code of this file.
Defines | |
#define | PIT_PORT_CONTROL 0x43 |
#define | PIT_PORT_COUNTER(CHANNEL) (0x40 + (CHANNEL)) |
#define | PIT_HZ 1193180 |
Functions | |
void | pit_configure_channel (int channel, int mode, int frequency) |
#define PIT_HZ 1193180 |
#define PIT_PORT_CONTROL 0x43 |
#define PIT_PORT_COUNTER | ( | CHANNEL | ) | (0x40 + (CHANNEL)) |
void pit_configure_channel | ( | int | channel, | |
int | mode, | |||
int | frequency | |||
) |
Definition at line 47 of file pit.c.
References ASSERT, intr_disable(), intr_set_level(), outb(), PIT_HZ, PIT_PORT_CONTROL, and PIT_PORT_COUNTER.
Referenced by speaker_on(), and timer_init().