#include <linux/interrupt.h>
linux系统针对底层的中断处理过程做了封装,使用linux提供函数,可以实现中断的响应和处理。
1.申请中断
int __must_check
request_irq(unsigned int irq, irq_handler_t handler, unsigned long flags,
const char *name, void *dev)
#include <linux/interrupt.h>
linux系统针对底层的中断处理过程做了封装,使用linux提供函数,可以实现中断的响应和处理。
1.申请中断
int __must_check
request_irq(unsigned int irq, irq_handler_t handler, unsigned long flags,
const char *name, void *dev)