|
tape-kernel 1.0
a modular modern independent kernel
|

Go to the source code of this file.
Macros | |
| #define | PIT_PORT 0x40 |
| #define | PIT_CMD_PORT 0x43 |
| #define | PIT_FREQUENCY 1193182 |
Functions | |
| void | __pinit (void) |
| pinit initializes the programmable interval timer | |
| void | __delay (uint32_t ms) |
| delay pauses execution for a number of milliseconds | |
| #define PIT_CMD_PORT 0x43 |
| void __delay | ( | uint32_t | ms | ) |
delay pauses execution for a number of milliseconds
delay is a function that busy-waits on the pit counter for the specified number of milliseconds
| ms,the | number of milliseconds to wait |
using delay is done with
Definition at line 46 of file pit.c.
References inb, outb, PIT_CMD_PORT, and PIT_PORT.
| void __pinit | ( | void | ) |
pinit initializes the programmable interval timer
pinit is a function that configures the pit to fire at 1000 hz providing 1ms resolution for timing purposes
using pinit is done with
Definition at line 22 of file pit.c.
References outb, PIT_CMD_PORT, PIT_FREQUENCY, and PIT_PORT.