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.

关于GPIO中断号的疑问



最近有给项目用AM335X,其中有设备用了GPIO3_21作为中断,am335x的SDK环境为linux3.2.0 

#define GPIO_TO_PIN(bank, gpio) (32 * (bank) + (gpio))

#define  IRQ_PIN   GPIO_TO_PIN(3,21)

irq = OMAP_GPIO_IRQ(IRQ_PIN);   // irq  =  gpio_to_irq(IRQ_PIN);//  

printk("irq number is :%d\n",irq);  ///此处打印irq 号为  277//  OMAP_GPIO_IRQ   /gpio_to_irq 得到的irq号都是277,

但查看技术手册,GPIO3的IRQ为  :62 ,63,通过跟踪内核,发现在  arch/arm/plat-omap/include/plat/gpio.h里面 OMAP_GPIO_IRQ  有相关的代码,按照此操作的确是277,哪里出错了?求大侠解答。