- 积分
- 8
贡献25
飞刀0 FD
注册时间2014-12-2
在线时间2 小时

扫一扫,手机访问本帖 
|
开发板:FL2440
内核版本:2.6.12
问题:中断函数
static int but_drv_open(struct inode *inode, struct file *file)
{
request_irq (IRQ_EINT0, buttons_irq, IRQT_BOTHEDGE, "S2", 1);
return 0;
}
打开中断 exec 5</dev/but 然后按键触发不了中断,cat /proc/intterupts 中断次数也不变,见图:
大神帮忙看看~是不是内核版本的问题,导致 IRQT_BOTHEDGE 这个参数不对? |
|