17 lines
517 B
C
17 lines
517 B
C
#ifndef __PIT_H
|
|
#define __PIT_H
|
|
|
|
#include<regs.h>
|
|
extern volatile unsigned int _pit_ticks;
|
|
extern volatile unsigned int _pit_frequency;
|
|
extern volatile TIME _internal_clock;
|
|
|
|
extern void i86_pit_handler(ISR_stack_regs *r);
|
|
extern void i86_pit_set_frequency(int frequency);
|
|
extern unsigned int i86_pit_set_tick_count(unsigned int i);
|
|
extern unsigned int i86_pit_get_tick_count();
|
|
extern unsigned int i86_pit_get_frequency();
|
|
extern void i86_pit_install(int freq);
|
|
extern unsigned char i86_pit_is_initialized();
|
|
|
|
#endif |