Forum Discussion
Altera_Forum
Honored Contributor
15 years agoIRQ not detected from C program.
Hello I wrote a simple program to start learning IRQ programming. I created a simple SOPC custom component (called simper_irq). This is the HDL: pastebin.com/9fyfZQtL Also, I create...
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()