修改心跳灯的闪烁方式,本次以更换为秒闪为例: 1.修改设备树
设备树路径:packages/linux/linux/arch/arm64/boot/dts/freescale/OK1028A-C.dts
leds {
compatible = "gpio-leds"; pinctrl-names = "default"; user { label = "heartbeat"; gpios = <&gpio2 6 0>; default-state = "on"; linux,default-trigger = "Timer"; }; }; 2.在内核中打开对应的触发器
3.重新编译生成新的设备树和内核,重新烧写即可。 |
|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )
GMT+8, 2024-11-22 11:38
Powered by Discuz! X3.4
© 2001-2013 Comsenz Inc.