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.

omap4460 gpio用作外部中断的问题



尝试将omap4460的一个gpio引脚用作外部中断。虽然可以申请到中断号,但总是进不了中断服务程序。配置过程如下:gpio_request(MY_IRQ_GPIO, "my_irq");

...

gpio_direction_input(MY_IRQ_GPIO);

...

irq = gpio_to_irq(MY_IRQ_GPIO);

if (irq < 0)

{

printk("request irq %d failed !\n", irq);

goto err_detect_irq_num_failed;

}

ret = request_irq(irq, my_interrupt, IRQF_TRIGGER_HIGH, client->dev.driver->name, client);

if (ret )

{

printk(KERN_ERR "request irq failed,ret is %d\n",ret);

goto err_request_irq;

}