"); //-->
zynq 在linux下进入中断最简单的方式还是在工程中增加一个gpio,设置gpio位全输入 ;这样dtc工具就会生成中断相关的devicetree ,如下 跟bare-metal下的操作有点类似~
pcie_cdma_subsystem_axi_gpio_0: gpio@41010000 {
#gpio-cells = <2>;
//compatible = "xlnx,xps-gpio-1.00.a";
compatible = "generic-uio";
gpio-controller ;
interrupt-parent = <&intc>;
interrupts = <0 29 4>;
reg = <0x41010000 0x10000>;
xlnx,all-inputs = <0x0>;
xlnx,all-inputs-2 = <0x1>;
xlnx,all-outputs = <0x1>;
xlnx,all-outputs-2 = <0x0>;
xlnx,dout-default = <0x00000000>;
xlnx,dout-default-2 = <0x00000000>;
xlnx,gpio-width = <0x1>;
xlnx,gpio2-width = <0x1>;
xlnx,interrupt-present = <0x1>;
xlnx,is-dual = <0x1>;
xlnx,tri-default = <0xFFFFFFFF>;
xlnx,tri-default-2 = <0xFFFFFFFF>;
};
*博客内容为网友个人发布,仅代表博主个人观点,如有侵权请联系工作人员删除。