Exemplo n.º 1
0
/**
 * Initialize interrupts and allow them
 *  to fire.
 *
 * @return
 *  New irq mask.
 */
irqmask enable( void )
{
    //vic_init();
    vic_enable_interrupts();

    return vic_get_irqmask();
}
Exemplo n.º 2
0
void vic_set_irqmask( irqmask im )
{
    if( irqmask_interrupts_enabled( im ) )
	vic_enable_interrupts();
    else
	vic_disable_interrupts();

    im &= 0xffff;

    lpc_vic->int_enable = im;
    lpc_vic->int_en_clear = ~im;
}