Altera_Forum
Honored Contributor
12 years agoquestions for interrupt register function:alt_irq_register
hi everyone:
the interrupt register function in nios: int alt_ic_isr_register (alt_u32 ic_id, alt_u32 irq, alt_isr_func isr, void* isr_context, void* flags) isr_context is the input argument to isr . isr_context points to a data structure associated with the device driver instance. i do not understand what is "isr_context " , so i find some codes from internet: some people write base_addr to the void* isr_context; some people write NULLto the void* isr_context; and nois examples write others. in my project, i write base_addr, and the interrupt works what is the meaning of isr_context ? is it right to write base_addr to it? thanks,qd0090.