关于device tree中的interrupts选项
来源:互联网 发布:vps搭建虚拟专用网络 编辑:程序博客网 时间:2024/06/10 02:35
随着Linux的发展,dts技术是大势所趋。里面的interrupts = < >这个里面的是1个数,有的是2个数,有的是3个数。这里啰嗦两句,笔记一下。
这个数目,是由这个属性来定的。#interrupt-cells ,如果当前节点找不到,就是跟随父节点的。至于含义,说明如下。
一个cell的情况:
当前interrupt 位于他的中断控制器的索引,比如:
vic: intc@10140000 {
compatible = "arm,versatile-vic";
interrupt-controller;
#interrupt-cells = <1>;
reg = <0x10140000 0x1000>;
};
sic: intc@10003000 {
compatible = "arm,versatile-sic";
interrupt-controller;
#interrupt-cells = <1>;
reg = <0x10003000 0x1000>;
interrupt-parent = <&vic>;
interrupts = <31>; /* Cascaded to vic */
};
二个cell的情况
第一个值: 该中断位于他的中断控制器的索引;
第二个值:触发的type
固定的取值如下:
1 = low-to-high edge triggered
2 = high-to-low edge triggered
4 = active high level-sensitive
8 = active low level-sensitive
三个cell的情况
第一个值:中断号
第二个值:触发的类型
第三个值:优先级,0级是最高的,7级是最低的;其中0级的中断系统当做 FIQ处理。
- 关于device tree中的interrupts选项
- 关于Device tree的问题
- Device Tree
- Device tree
- Device Tree
- Device Tree
- Device Tree
- Device Tree
- Device Tree
- device tree
- device tree
- Device Tree
- Device Tree
- device tree
- Device Tree
- device tree在触屏中的实际应用
- Device Tree中的.dts和dtsi文件介绍
- 关于Sequence中的Order选项 【基础】
- java基础 - 多线程定时器定时任务
- redis使用内存方式
- Content Provider Basics
- 2016 上架流程
- 题目273 字母小游戏
- 关于device tree中的interrupts选项
- 136. Single Number [medium] (Python)
- spring-boot下热部署热启动方案测试汇总
- 盘点android中的dialog
- 【刷题之路】不使用四则运算做加法
- 欢迎使用CSDN-markdown编辑器
- 训练自己的数据
- AngularJS 服务
- SVN问题:previous operation has not finished;run 'cleanup' if it was interrupted