anlogic 共享中断驱动和应用层读取
📅 2026/7/3 21:34:59
👁️ 阅读次数
📝 编程学习
PL端
设备树端配置
/ { plint1 { compatible = "subomb,plint"; interrupt-parent = <&gic>; interrupts = <0 85 4>; // 1 = IRQ_TYPE_EDGE_RISING(上升沿触发) }; plint2 { compatible = "subomb,plint"; interrupt-parent = <&gic>; interrupts = <0 86 4>; }; plint3 { compatible = "subomb,plint"; interrupt-parent = <&gic>; interrupts = <0 87 4>; }; };内核驱动代码配置
#include <linux/module.h> #include <linux/interrupt.h> #include <linux/of_platform.h> #include <linux/of_irq.h> #include <linux/ui
编程学习
技术分享
实战经验