完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
|
这是串口操作台返回的信息,注册了一个IO号为105
ok335x login: root root@ok335x:~# cd / root@ok335x:/# echo 105 > /sys/class/gpio/export root@ok335x:/# cat /sys/kernel/debug/gpio GPIOs 0-31, gpio: gpio-6 (mmc_cd ) in hi GPIOs 32-63, gpio: gpio-48 (usr0 ) out hi gpio-49 (usr1 ) out hi gpio-50 (usr2 ) out hi gpio-51 (usr3 ) out hi gpio-52 (SW1 ) in hi gpio-53 (SW2 ) in hi gpio-54 (SW3 ) in hi gpio-55 (SW4 ) in hi gpio-56 (SW5 ) in hi gpio-57 (SW6 ) in hi GPIOs 64-95, gpio: gpio-65 (gpio2_1 ) out hi GPIOs 96-127, gpio: gpio-97 (gpio3_1 ) out hi gpio-104 (heartbeat ) out lo gpio-105 (sysfs ) in lo 感觉到有问题的地方,故意改了按键的名称在串口信息里还是不变,像board-am335xevm.c没编译一样,因为删了编译也不报错 /* Configure GPIOs for GPIO Keys */ static struct gpio_keys_button am335x_evm_gpio_buttons_forlinx[] = { #if defined(CONFIG_OK335XD) { .code = BTN_0, .gpio = GPIO_TO_PIN(1, 20), .desc = "SW1", }, { .code = BTN_1, .gpio = GPIO_TO_PIN(1, 21), .desc = "SW2", }, { .code = BTN_2, .gpio = GPIO_TO_PIN(1, 22), .desc = "SW3", .wakeup = 1, }, { .code = BTN_3, .gpio = GPIO_TO_PIN(1, 23), .desc = "SW24", }, { .code = BTN_4, .gpio = GPIO_TO_PIN(1, 24), .desc = "SW5", .wakeup = 1, }, { .code = BTN_5, .gpio = GPIO_TO_PIN(1, 25), .desc = "SW12", }, { .code = BTN_10, .gpio = GPIO_TO_PIN(3, 10), .desc = "SW10", .wakeup = 1, }, { .code = BTN_9, .gpio = GPIO_TO_PIN(3, 9), .desc = "SW9", .wakeup = 1, }, { .code = BTN_14, .gpio = GPIO_TO_PIN(1, 14), .desc = "SW14", }, |
|
相关推荐
2个回答
|
|
|
|
|
|
|
|
|
|
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
谁有3566+电池+POE充电的方案,有个项目需要用该功能的主板
770 浏览 0 评论
RK3588的GMAC0与PHY的参考时钟电平匹配问题??????
4588 浏览 1 评论
请问各位大佬,如何解决,瑞芯微 RV1126B 使用 mpp 自带工具 调试时,内核直接报错崩溃!
1823 浏览 0 评论
使用rk3568开发板,核0\\1\\3运行linux,核2运行hal,在核0中怎么关闭核2
2378 浏览 0 评论
2381 浏览 0 评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-3 00:15 , Processed in 0.630673 second(s), Total 75, Slave 58 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
1522