阅读:3433回复:1

长按power键开机

楼主#
更多 发布于:2020-12-17 12:16



index 16f96f7..01a6484 100755
--- a/uboot-repo/bl33/board/amlogic/tl1_x301_v1/firmware/scp_task/pwr_ctrl.c
+++ b/uboot-repo/bl33/board/amlogic/tl1_x301_v1/firmware/scp_task/pwr_ctrl.c
@@ -236,7 +236,7 @@ static unsigned int detect_key(unsigned int suspend_from)
                        if (check_adc_key_resume()) {
                                adc_key_cnt++;
                                /*using variable 'adc_key_cnt' to eliminate the dithering of the key*/
-                               if (2 == adc_key_cnt)
+                               if (250 == adc_key_cnt)
                                        exit_reason = POWER_KEY_WAKEUP;
                        } else {
                                adc_key_cnt = 0;


感谢@VastStarGames提示

基本原理:在while循环中采样计数,如果达到计数就进入开机。

最新喜欢:

PazivalPaziva... zhaoyf13zhaoyf...
沙发#
发布于:2020-12-30 09:35
[url]http://190.lsal.cn/195/1329.gif?0728100424873[/url]
游客

返回顶部