Periodic Interrupt Timer (PIT)
예제 #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
 }
예제 #2
0
파일: Timer.cs 프로젝트: willvin313/SharpOS
        public static void Delay(uint milliseconds)
        {
            // resolution is only 10 milliseconds
            uint end = PIT.GetTickCount() + (milliseconds / 10);

            while (PIT.GetTickCount() < end)
            {
                ;
            }
        }
예제 #3
0
파일: Timer.cs 프로젝트: willvin313/SharpOS
 public static EventRegisterStatus UnregisterTimerEvent(uint func)
 {
     return(PIT.UnregisterTimerEvent(func));
 }