pintos/src/devices/pit.c File Reference

#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 Documentation

#define PIT_HZ   1193180

Definition at line 16 of file pit.c.

Referenced by pit_configure_channel().

#define PIT_PORT_CONTROL   0x43

Definition at line 12 of file pit.c.

Referenced by pit_configure_channel().

#define PIT_PORT_COUNTER ( CHANNEL   )     (0x40 + (CHANNEL))

Definition at line 13 of file pit.c.

Referenced by pit_configure_channel().


Function Documentation

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().


Generated on Mon Jan 10 16:43:58 2011 for Pintos by  doxygen 1.5.6