Forum Discussion
Altera_Forum
Honored Contributor
15 years agoYou shouldn't cast your function pointer to the interrupt handler and it should be with the correct prototype:
void simpler_interrupts(void *context, alt_u32 id); As flyinghigh says, you should also include the alt_irq.h file to get the correct declaration for the register function. Check also the code returned by alt_irq_register()