专家好:
现在我们使用FPGA向DM368gio0发出中断信息。但是368总是读不到中断信息。
以下是设置,
//disable all interrupt
davinci_writel(0x0,0x01C48000+0x18);//INTC_EINT0 = 0
davinci_writel(0x0,0x01C48000+0x1c);//INTC_EINT1 = 0
//interrupt disable immediately
davinci_writel(0x0,0x01C48000+0x20);//INTC_INTCTL = 0
//set interrupt44 prioritization(FIQ)
davinci_writel(0x0,0x01C48000+0x44);//INTC_INTPRI5 = 0
//clear interrupt davinci_writel(0xffffffff,0x01C48000+0x0);//INTC_FIQ0
davinci_writel(0xffffffff,0x01C48000+0x4);//INTC_FIQ1
davinci_writel(0xffffffff,0x01C48000+0x8);//INTC_IRQ0
davinci_writel(0xffffffff,0x01C48000+0xc);//INTC_IRQ1
//enablse all interrupt
davinci_writel(0xffffffff,0x01C48000+0x18);//INTC_EINT0 = 0
davinci_writel(0xffffffff,0x01C48000+0x1c);//INTC_EINT1 = 0
//read FIQ/IRQ
davinci_readl(0x01C48000+0x0);
davinci_readl(0x01C48000+0x4);
davinci_readl(0x01C48000+0x8);
davinci_readl(0x01C48000+0xC);
结果:
INTC_FIQ0:0xffffffff
INTC_FIQ1:0xffffffff
INTC_IRQ0:0xffffffff
INTC_IRQ1:0xffffffff
请专家分析下,谢谢!
kooking:
没有看到pinmux的相关设置,是不是要先设置pinmux