经过一天的测试,你这样改下就应该可以的:
把源文件nios_isr_handler.c中定义的
static int irq_context[NIOS2_NIRQ];
static nios_isrhandlerproc2 irq_handler [NIOS2_NIRQ];
初始化下,改为
//static
int irq_context[NIOS2_NIRQ]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
//static
nios_isrhandlerproc2 irq_handler [NIOS2_NIRQ]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
试试看吧,祝你好运! |