Periodic Interrupt Timer (PIT)
Example #1
0
 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
 }
Example #2
0
        public static void Delay(uint milliseconds)
        {
            // resolution is only 10 milliseconds
            uint end = PIT.GetTickCount() + (milliseconds / 10);

            while (PIT.GetTickCount() < end)
            {
                ;
            }
        }
Example #3
0
 public static EventRegisterStatus UnregisterTimerEvent(uint func)
 {
     return(PIT.UnregisterTimerEvent(func));
 }