1.向内核注册中断:request_irq

2.确定中断号(BSP包提供)

  tq2440中直接使用IRQ_EINT4

  tiny4412中使用gpio_to_irq(EXYNOS4_GPX3(2))

3.编写中断服务程序:注意其返回值类型irqreturn_t