luxos/SysCore/drivers/clock/clock.h

20 lines
493 B
C
Raw Normal View History

2021-09-14 15:46:50 +00:00
#ifndef __PIT_H
#define __PIT_H
#include <regs.h>
#include <time.h>
extern void i86_PitHandler(ISR_stack_regs *r);
extern void i86_PitInitialize(int freq);
extern unsigned char PitIsInitialized();
extern void PitSetFrequency(int frequency);
extern unsigned int PitGetFrequency();
extern TIME ClockGetTime();
extern unsigned int ClockSetTickCount(unsigned int i);
extern unsigned int ClockGetTickCount();
extern void i86_SetRTC (const TIME* time);
extern void i86_GetRTC(TIME* tim);
#endif