Forum Discussion
Altera_Forum
Honored Contributor
13 years agoBasic NIOS II interrupt.
I am getting the warning. --- Quote Start --- warning: implicit declaration of function 'alt_irq_register' --- Quote End --- Call in code is alt_irq_register(CODEC_SIM...
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- I am now getting warning: alt_legacy_irq.h: No such file or directory --- Quote End --- Ok.... I included # include "priv/alt_legacy_irq.h" Now I get warning..... "passing argument 3 of 'alt_irq_register' from incompatible pointer type" Prototype for alt_irq_resgister in priv/alt_legacy_irq.h is extern int alt_irq_register (alt_u32 id, void* context, alt_isr_func handler); As I said my file calls alt_irq_register(CODEC_SIMPLE_MASTER_2_0_IRQ_INTERRUPT_CONTROLLER_ID, NULL, codec_isr); codec_isr is handler and is defined as static void codec_isr(void * context, alt_u32 id) { .... ..... ...... }