arm中断与定时器学习笔记
2016-04-21 19:47
239 查看
根据中断入口跳转方法的不同,中断可以分为向量中断和非向量中断。向量中断由硬件提供中断服务程序的入口地址,非向量中断由软件提供中断服务程序的入口地址。
Linux将中断处理程序分解为两个半部:顶半部(top half)和底半部(bottom half)。
Linux中断编程:
1.申请IRQ
int request_irq(unsigned int irq,irq_handler_t handler,unsigned long irqflags,const char*
devname,void *dev_id);
2.释放IRQ
void free_irq(unsigned int irq,void *dev_id);
3.屏蔽中断
void disable_irq_nosync(int irq);
Linux将中断处理程序分解为两个半部:顶半部(top half)和底半部(bottom half)。
Linux中断编程:
1.申请IRQ
int request_irq(unsigned int irq,irq_handler_t handler,unsigned long irqflags,const char*
devname,void *dev_id);
2.释放IRQ
void free_irq(unsigned int irq,void *dev_id);
3.屏蔽中断
void disable_irq_nosync(int irq);
相关文章推荐
- 《Django By Example》读书笔记 03
- openwrt下载路径
- uva10829 L-Gap Substrings
- POJ 1426 Find The Multiple【BFS】
- 最少硬币问题
- Oracle的综合查询练习
- 盒模型display:-webkit-box;
- SSH:Struts has detected an unhandled exception
- fck配置图片上传(php版)
- 自定义圆形ImageView
- 站立会议03(第一期)
- 抽取、转换和装载介绍(六)向呈现层交付数据(待续)
- 反相器和晶振做振荡
- c# webkit html5浏览器
- 美团外卖app可行性分析
- 网络字节码、本地字节码(大端,小端)
- 中国的 Android:尚未发掘的应用市场?
- 第8周总结
- 快速构建Spring boot项目(功能是检测访问页面的设备)
- SSH:Server Apache Tomcat atlocalhost failed to start