Ejemplo n.º 1
0
void timer_init()
{
//Install timer handler
    irq_install_handler(0,timer_handler);

//Set ticks per seccond to 1000
    timer_phase(1000);
}
Ejemplo n.º 2
0
/* Sets up the system clock by installing the timer handler
*  into IRQ0 */
void timer_install()
{
    /* Installs 'timer_handler' to IRQ0 */
    irq_install_handler(0, timer_handler);

    /* Configure timer to 100 Hz */
    timer_phase(PIT_CLOCK_HZ); /* Sys clock is 1193190 Hz */
}
Ejemplo n.º 3
0
// start timer
void timer_install()
{
    handler_func = 0;
    handler_msec_passed = 0;
    handler_counter = 0;
    irq_install_handler(0, timer_handler);
    timer_phase(1000); // set to ticks 1000times per second

}
Ejemplo n.º 4
0
void timer_install()
{
    /* Installs 'timer_handler' to IRQ0 */
    irq_install_handler(0, timer_handler);
    timer_phase(TIMER_HZ);
}
Ejemplo n.º 5
0
Archivo: timer.c Proyecto: psamora/DiOS
// Sets up the system clock
void timer_install() {
  register_interrupt_handler(TIMER_IDT_INDEX, timer_handler);
  timer_phase(TICKS_PER_SECOND);
  printf("Timer installed.\n");
}
Ejemplo n.º 6
0
void timer_install(void) {
	timer_phase(100); // o intrerupere la a suta parte din secunda
	irq_install_handler(0, timer_handler); // seteaza timerul pe intreruperea 0
}