public static void Setup() { GDT.Setup(); // Global Descriptor Table PIC.Setup(); // Programmable Interrupt Controller IDT.Setup(); // Interrupt Descriptor table PIT.Setup(); // Periodic Interrupt Timer // Disabled because it needs MemoryManager [cedrou] //Serial.Setup (); // Setup serial I/O }
public static void Delay(uint milliseconds) { // resolution is only 10 milliseconds uint end = PIT.GetTickCount() + (milliseconds / 10); while (PIT.GetTickCount() < end) { ; } }
public static EventRegisterStatus UnregisterTimerEvent(uint func) { return(PIT.UnregisterTimerEvent(func)); }