Altera_Forum
Honored Contributor
10 years agoHow to get rid of warning: implicit declaration of function 'alt_irq_register'?
Hi all,
I'm working with a nios application and it works but I can't find a way to get rid of this warning. I try to follow the# include files but I keep getting lost. I have a fixed timer (100ms) set up in qsys... called TIMER_0. I've included the following files in main.c: # include "alt_types.h"# include "io.h"# include "system.h"# include "altera_avalon_timer_regs.h" //for timer# include "sys/alt_irq.h" //for irq ? The line giving me the error is: alt_irq_register(TIMER_0_IRQ, 0, timer_isr); Thanks