现在用bbb的板子,tps65217的int信号接在am335x的nmi脚上,请问如何在tps65217产生int中断信号后去唤醒mcu或者让mcu进休眠状态。
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.
现在用bbb的板子,tps65217的int信号接在am335x的nmi脚上,请问如何在tps65217产生int中断信号后去唤醒mcu或者让mcu进休眠状态。
hi, Jian Zhou,
请问一下这个nmi的中断号是多少,我看datasheet上写是7,但是我用7来注册irq时,会注册不成功,谢谢。贴上代码:
irq = 7;
ret = request_irq(irq, nnmi_irq_handler,IRQF_TRIGGER_FALLING | IRQF_SHARED, "nnmi_irq", tps);
if (ret < 0){
printk("nnmi request irq err\n");
}
如果用irq = gpio_to_irq(7); 就可以注册成功,但是按下按键的时候,不能进中断,麻烦你帮忙分析一下,谢谢。