博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
设备数中的interrupt
阅读量:4069 次
发布时间:2019-05-25

本文共 730 字,大约阅读时间需要 2 分钟。

设备树中有很多描述中断的地方例如

axi_timer@42800000 {
    compatible = "xlnx,axi_timer-1.03.a";
    reg = <0x42800000 0x10000>;
    interrupts = <0 37 1>;
      interrupt-parent = <&gic>;
};
一开始搞不清楚中断号37从哪里来的,根据网上资料现在整理一下思路。
先看几个缩写
IPI:inter-processer interrupt   中断号0~15
PPI:per processor interrupts    中断号16~31
SPI:shared processor interrupts  中断号 32 ~32+224
SGI:software generated interrupts (SGI).
设备树是用来描述硬件信息的,因此里面不涉及软件中断SGI,从设备树包含的头文件可以看出这一点:
在arm-gic.h文件中定义的只有SPI和PPI
#define GIC_SPI 0
#define GIC_PPI 1
一般设备树中的中断都是SPI,那么 interrupts = <0 37 1>;形式中的<X Y Z>
都是什么呢
X:GIC_SPI或者GIC_PPI
Y:物理中断号-32
Z:触发方式
  • 1 = low-to-high edge triggered
  • 2 = high-to-low edge triggered (invalid for SPIs)
  • 4 = active high level-sensitive
  • 8 = active low level-sensitive (invalid for SPIs).

转载地址:http://ogqji.baihongyu.com/

你可能感兴趣的文章
A functional example for save and load model from Tensorflow
查看>>
sparse coding稀疏表达入门
查看>>
概率论:乘法定理、全概率公式以及贝叶斯定理
查看>>
ECSHOP发送邮件显示格林尼治时间问题的解决
查看>>
tensor shape can be flexible to determined in Tensorflow
查看>>
Tensorflow中怎么使用queue读取数据的情况下,在同一个session中边训练边测试
查看>>
使用p6spy打印hibernate或者PreparedStatement的带参数值的sql语句
查看>>
流水账...12321984543
查看>>
Tied weights in Tensorflow
查看>>
spring security对用户名和密码的校验过程
查看>>
spring security对于多登陆页面多用户数据源的使用
查看>>
2017年11月
查看>>
流水账
查看>>
Mac下PDF转EPS的方法
查看>>
php中的一些好东西
查看>>
2018新年开篇
查看>>
comments on the inverse model to solve multi-objective optimization
查看>>
iphone通信录导入到e71中
查看>>
spring security自定义登陆成功后处理
查看>>
Matlab2017b在macos high Sierra下的mex
查看>>