嵌入式开发者社区

标题: 按键时间消抖问题 [打印本页]

作者: 梁淑怡-Tronlong    时间: 2018-10-10 17:13
标题: 按键时间消抖问题
       按键说明文档位于:内核源码\Documentation\devicetree\bindings\gpio\gpio_keys.txt
      在内核源码\Documentation\devicetree\bindings\gpio\gpio_keys.txt文件中,“debounce-interval”属性即为配置去抖动时间间隔,在节点中按照下面添加属性即可:debounce-interval = <15>;
       GPMC节点配置中,需将debounce-interval配置为0,如果将该属性注释掉,系统将为其配置一个默认的值,会导致ARM读取GPMC数据丢帧。








欢迎光临 嵌入式开发者社区 (https://www.51ele.net/) Powered by Discuz! X3.4