From: SnickerSun Date: Tue, 26 Mar 2024 11:54:44 +0000 (+0800) Subject: 优化3507停止流程,保证其能正常休眠。 X-Git-Tag: release_V1.2.70_20241020_135402~1257^2~5 X-Git-Url: http://git.snicker.com.cn/Users/apple/Desktop/static/gitweb.css?a=commitdiff_plain;h=259549c238179782b5ec8028ededd067b4e9f01d;p=mirrors%2FFD230.git 优化3507停止流程,保证其能正常休眠。 --- diff --git a/code/sdk/drivers/peripheral/rotary_encoder/hx3507/hx3507.c b/code/sdk/drivers/peripheral/rotary_encoder/hx3507/hx3507.c index d466c8e70..965283c47 100644 --- a/code/sdk/drivers/peripheral/rotary_encoder/hx3507/hx3507.c +++ b/code/sdk/drivers/peripheral/rotary_encoder/hx3507/hx3507.c @@ -1,4 +1,4 @@ -/** +/**,. * Copyright (c) @CompanyNameMagicTag 2023-2023. All rights reserved. \n * * Description: Button driver source file \n @@ -97,7 +97,7 @@ void crown_timer_creat(void) void crown_timer_start(void) { if(osTimerIsRunning(g_hx3507_timer)==0) - osTimerStart(g_hx3507_timer, 50); + osTimerStart(g_hx3507_timer, 40); } /** @@ -518,6 +518,7 @@ void crown_stop(void) { #ifdef MOT_NO_USE_MODE crown_timer_stop(); + LOS_Mdelay(50); crown_write_reg(Config_St,0x89); // power down, power down 后芯片功耗9uA LOS_Mdelay(20); TYHX_LOG("[tyhx_crown_stop]\r\n");