os/timer.h

19 lines
406 B
C
Raw Permalink Normal View History

2024-05-21 18:41:16 +03:00
#ifndef TIMER_H
#define TIMER_H
#include <stdint.h>
2024-05-23 20:59:18 +03:00
#define PIT_FREQUENCY 1193182
#define PIT_CHANNEL_0 0x40
#define PIT_COMMAND 0x43
extern void pit_handler_asm(); // defined in pit_handler.s remove this
2024-05-21 18:41:16 +03:00
void pit_handler();
void delay(uint32_t milliseconds);
void pit_set_frequency(uint32_t frequency);
2024-05-23 20:59:18 +03:00
void pic_remap(int offset1, int offset2); // moved to irq_remap
2024-05-21 18:41:16 +03:00
void timer_install(void);
2024-05-23 20:59:18 +03:00
#endif