Ejemplo n.º 1
0
void timer_handler(void)
{
    /* Run through the list of tick tasks */
    call_tick_tasks();

    TIMER0.clr = 0;
}
Ejemplo n.º 2
0
static __attribute__((interrupt("IRQ"))) void EPIT1_HANDLER(void)
{
    EPITSR1 = EPITSR_OCIF; /* Clear the pending status */

    /* Run through the list of tick tasks */
    call_tick_tasks();
}
Ejemplo n.º 3
0
void TIMER0(void)
{
    /* Run through the list of tick tasks */
    call_tick_tasks();

    TER0 = 0xff; /* Clear all events */
}
Ejemplo n.º 4
0
void INT_TIMERB(void)
{
    /* clear interrupt */
    TBCON = TBCON;

    call_tick_tasks();  /* Run through the list of tick tasks */
}
Ejemplo n.º 5
0
void TIMER4(void)
{
    /* Run through the list of tick tasks */
    call_tick_tasks();

    SRCPND = TIMER4_MASK;
    INTPND = TIMER4_MASK;
}
Ejemplo n.º 6
0
void TIMER1(void)
{
    /* Run through the list of tick tasks (using main core) */
    TIMER1_VAL; /* Read value to ack IRQ */

    /* Run through the list of tick tasks using main CPU core - 
       wake up the COP through its control interface to provide pulse */
    call_tick_tasks();

#if NUM_CORES > 1
    /* Pulse the COP */
    core_wake(COP);
#endif /* NUM_CORES */
}
Ejemplo n.º 7
0
void INT_TIMER2(void)
{
    if (!poll_scrollwheel)
        call_tick_tasks();      /* Run through the list of tick tasks
                                 * (that includes reading the scrollwheel) */
    else
    {
        if (!button_hold())
            button_read_dbop(); /* Read the scrollwheel */
    }

    poll_scrollwheel ^= 1;
    TIMER2_INTCLR = 0;  /* clear interrupt */
}
Uint32 tick_timer(Uint32 interval, void *param)
{
    long new_tick;

    (void) interval;
    (void) param;
    
    new_tick = (SDL_GetTicks() - start_tick) / (1000/HZ);
        
    while(new_tick != current_tick)
    {
        sim_enter_irq_handler();

        /* Run through the list of tick tasks - increments tick
         * on each iteration. */
        call_tick_tasks();

        sim_exit_irq_handler();
    }
    
    return interval;
}
Ejemplo n.º 9
0
static void tick_timer(void)
{
    /* Run through the list of tick tasks */
    call_tick_tasks();
}
Ejemplo n.º 10
0
/*
 * call tick tasks and wake the scheduler up */
void timer_signal(union sigval arg)
{
    (void)arg;
    call_tick_tasks();
    interrupt();
}
Ejemplo n.º 11
0
void INT_TIMER2(void)
{
    call_tick_tasks();  /* Run through the list of tick tasks */

    TIMER2_INTCLR = 0;  /* clear interrupt */
}