蚂蚁S9矿板PS led驱动的四个实验-第3课 gpio子系统下的led驱动
2026/7/27 13:27:56 网站建设 项目流程

参考

蚂蚁S9矿板引脚定义.csdn

蚂蚁S9矿板PS led驱动的四个实验-第1课 字符设备驱动.csdn

蚂蚁S9矿板PS led驱动的四个实验-第2课 设备树下的led驱动.csdn

蚂蚁S9矿板PS led驱动的四个实验-第3课 gpio子系统下的led驱动.csdn

蚂蚁S9矿板PS led驱动的四个实验-第4课 设备驱动框架下的led驱动.csdn

蚂蚁S9矿板PS led驱动的三个实验-第3课 gpio子系统下的led驱动

#include <dt-bindings/gpio/gpio.h>#include <dt-bindings/input/input.h>#include <dt-bindings/media/xilinx-vip.h>#include <dt-bindings/phy/phy.h>/{model="z7 Board ant";compatible="xlnx,zynq-zc702","xlnx,zynq-7000";chosen{bootargs="console=ttyPS0,115200 earlycon=cdns,mmio,0xe0000000,115200n8 keep_bootcon earlyprintk root=/dev/mmcblk0p2 rw rootwait";stdout-path="serial0:115200n8";};leds{compatible="gpio-leds";gpio-led1{label="led2";gpios=<&gpio00GPIO_ACTIVE_HIGH>;default-state="on";};gpio-led5{label="ps_led0";gpios=<&gpio07GPIO_ACTIVE_HIGH>;default-state="on";};gpio-led6{label="ps_led1";gpios=<&gpio08GPIO_ACTIVE_HIGH>;linux,default-trigger="timer";};};};&debug_bridge_0{compatible="xlnx,xvc";};

需要专业的网站建设服务?

联系我们获取免费的网站建设咨询和方案报价,让我们帮助您实现业务目标

立即咨询