Forum Discussion
Altera_Forum
Honored Contributor
12 years agoI think you can use this, change the defines for the ones you have on your system.h
alt_ic_isr_register(SYS_TIMER_IRQ_INTERRUPT_CONTROLLER_ID,SYS_TIMER_IRQ,ms_clock_isr, NULL, 0x0); alt_ic_irq_enable(SYS_TIMER_IRQ_INTERRUPT_CONTROLLER_ID,SYS_TIMER_IRQ); ms_clock_isr is the function that treat the interrupt. Don't forget you have to clean the interrupt flag when you finish.