Files
kern/libk/include/interrupt/pit.h
T

14 lines
273 B
C

#ifndef INTERRUPT_PIT_H
#define INTERRUPT_PIT_H
#include <stdint.h>
#define CHANNEL_0 0x40 // Offset it by 1 or 2 for ch1 and ch2
#define COMMAND 0x43
#define INPUT_CLK 1193182
void setPitPhase(uint8_t channel, uint8_t opMode, uint16_t hz);
void setupTimer();
#endif