This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LINUX驱动下,注册了中断号,无法进入中断函数.

Other Parts Discussed in Thread: OMAP-L138

你好,最近在写一个按键中断驱动. 芯片是TI的 OMAP-L138  我用cat  /proc/interrupt  查看中断号已经成功注册了.但是实际无法进入中断函数..按键引脚是gpio1[8].查看datasheet对应是中断号43,那么用下面的申请注册内核中断号正确吗?.中断号实际是101+43 =144

  err=request_irq(gpio_to_irq(43),button_irq_han,0 ,"button_interrupt",(void *)&buttons_irq);

另外我用ioremap 配置了 BINTEN  DIR   PINMUX3   边缘选择. 等GPIO.寄存器

还配置了开启 system interrupt  enable   和 global  interrupt   enable  等中断使能寄存器..

这些是必要的吗?..

谢谢,初次学习Linux驱动,..希望得到回答。