Commit e03b9581 by malcolm

Installed PIT interrupt handler in IDT

parent 46c608f0
Showing with 2 additions and 0 deletions
#include "pit.h"
#include "pic.h"
#include "idt.h"
static volatile uint32_t _pit_ticks = 0;
static bool _pit_is_init = false;
......@@ -67,6 +68,7 @@ void pit_start_counter(uint32_t frequency, uint8_t counter, uint8_t mode)
void pit_init();
{
//TODO: NEED TO SET INT 32 TO PIT IRQ HANDLER
install_ir(32, IDT_PR|IDT_32, 0x8, pit_irq);
_pit_is_init = true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment