当前位置:网站首页>Nuc980 heartbeat light
Nuc980 heartbeat light
2022-06-28 17:42:00 【It student lkc】
make menuconfig Set up
1.
2.
3.
4.
file location :
arch ->arm -> Mach-nuc980 Under the dev.c
The header file :
#include <linux/leds.h>
Code :
#if defined(CONFIG_LEDS_GPIO)
static struct gpio_led nuc980_leds_gpio] = {
[0] = {
.name = "led_heartbeat",
/* Pin settings */
.gpio = NUC980_PB8,
/* Trigger level High or low by default According to the schematic diagram */
.active_low = 1,
/* Trigger mode Heartbeat triggers */
.default_trigger = "heartbeat",
},
};
static struct gpio_led_platform_data leds_data = {
.num_leds = ARRAY_SIZE(nuc980_leds_gpio),
.leds = nuc980_leds_gpio,
};
static struct platform_device nuc980_gpio_leds_device = {
/* According to this name Match drive */
.name = "leds-gpio",
.id = -1,
.dev.platform_data = &leds_data,
};
#endifDriver file ( System comes with ):
\drivers\leds\leds-gpio.c
The registration method is platform driven

边栏推荐
- Solve the problem of sqoop error manager SqlManager: Generic SqlManager. listDatabases() not implemented
- rsync 远程同步(日落尤其温柔的人间皆是浪漫)
- 硕士学位论文写作探索学习
- Visio use
- What is the reason why easycvr can't watch the device video when it is connected to the home protocol?
- [question skimming diary] and a subarray of K
- 问下 flink sql cdc. 能同步多张表然后sink到一份表中么 同步的表通过 joi
- 视比特“AI+3D视觉”产品系列 | 上料装配工作站
- MySQL High available MHA (accidentellement avec ma jeunesse)
- Time effective simulation platform based on dataworks | acquisition technology
猜你喜欢

Currency circle earthquake: earned 1million last year and lost 5million this year

CSDN博客专家

Redis persistence (les adolescents naviguent toujours rapidement, obstruent et ne tournent jamais)

AutoSAR 软件开发培训

Cross cluster deployment of helm applications using karmada

Flutter tips: mediaquery and build optimization secrets you don't know

Redis master-slave replication, sentinel, cluster cluster principle + experiment (wait, it will be later, but it will be better)

ICML 2022 | transferable imitation learning method based on decoupling gradient optimization

Redis persistence (young people always set sail with a fast horse, with obstacles and long turns)

'summary of common network protocols' summarized by Tsinghua leaders in 3 days
随机推荐
2022年山东省安全员C证考试练习题及模拟考试
Tidb v6.0.0 (DMR): initial test of cache table - tidb Book rush
全网最全360无死角编写软件测试用例模板【建议收藏】
Potplayer plays Baidu cloud disk video
How to open a futures account? Where is it safer to open a futures account?
win10用cmake3.22与vs2019编译curl库源码并调用
基于Krack的网络攻击「建议收藏」
Squid代理服务器应用(我从远方赶来,赴你一面之约)
6 - Dictionary
【刷题日记】和为 K 的子数组
阿里云服务器里装的mysql是8版本的,是因为dataworks的mysql驱动版本不支持吗?现在提
Batch modify specified character file name bat script
Exploration and practice of reinforcement learning in yellow page merchants' intelligent chat assistant
MySQL高可用之MHA(一不小心和我的青春擦肩而过)
12 SQL optimization schemes summarized by old drivers (very practical)
It's said that software testing for career change can only be self-taught. Is the training institution a pit?
[official cooperation between Shang Silicon Valley and Tencent cloud] video release of Silicon Valley classroom project
[tcapulusdb knowledge base] modify business modify cluster
11 effective ways to enhance WordPress
Squid proxy server application (I came from afar to make an appointment with you)
