微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 手机设计讨论 > MTK手机平台交流 > mt2523 How to configure the customization parameters about long press...

mt2523 How to configure the customization parameters about long press...

时间:10-02 整理:3721RD 点击:
[keypad]How to configure the customization parameters about long press and repeat time?
You can modify the file driver\board\mt25x3_HDK\keypad\inc\keypad_custom_config.h
/*Set the keypad detection debounce time, the maximum value is 4095, the unit is millisecond.*/
#define HAL_KEYPAD_DEBOUNCE_TIME 16
/*Set normal keypad longpress time, the unit is millisecond.*/
#define HAL_KEYPAD_LONGPRESS_TIME 2000
/*Set normal keypad repeat time, the unit is millisecond.*/
#define HAL_KEYPAD_REPEAT_TIME 1000
/*Set powerkey longpress time, the unit is millisecond.*/
#define HAL_POWERKEY_LONGPRESS_TIME 2000
/*Set powerkey repeat time, the unit is millisecond.*/
#define HAL_POWERKEY_REPEAT_TIME 1000
You can modify the time asyou want. The unit is millisecond.

路过!

顶顶顶

顶顶顶

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top