CPUcounter/software/counter_bsp/alt_sys_init.c
void alt_irq_init ( const void* base )
{
    ALTERA_NIOS2_GEN2_IRQ_INIT ( NIOS2_GEN2, nios2_gen2);
    alt_irq_cpu_enable_interrupts();
}
/*
 * Initialize the interrupt controller devices
 * and then enable interrupts in the CPU.
 * Called before alt_sys_init().
 * The "base" parameter is ignored and only
 * present for backwards-compatibility.
 */
Initialize the interrupt controller devices
and then enable interrupts in the CPU.
Initialize the interrupt controller devices and then enable interrupts in the CPU .
void alt_irq_init ( const void* base )
{
    ALTERA_NIOS2_GEN2_IRQ_INIT ( NIOS2_GEN2, nios2_gen2);
    alt_irq_cpu_enable_interrupts();
}
void alt_irq_init ( const void * base ) { ALTERA_NIOS2_GEN2_IRQ_INIT ( NIOS2_GEN2 , nios2_gen2 ) ; alt_irq_cpu_enable_interrupts ( ) ; }
Initialize the interrupt controller devices
 and then enable interrupts in the CPU.
Initialize the interrupt controller devices and then enable interrupts in the CPU .