From: Caisking Date: Mon, 19 Jan 2026 02:05:50 +0000 (+0800) Subject: 减小3508的定时器频率 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=28985f24ac2bba0861fec6978f9a2f207353ad27;p=mirrors%2FFD230.git 减小3508的定时器频率 --- diff --git a/code/sdk/zhihui/drivers/rotary_encoder/hx3508/hx3508.c b/code/sdk/zhihui/drivers/rotary_encoder/hx3508/hx3508.c index 7c5f08459..958e9f59f 100644 --- a/code/sdk/zhihui/drivers/rotary_encoder/hx3508/hx3508.c +++ b/code/sdk/zhihui/drivers/rotary_encoder/hx3508/hx3508.c @@ -176,7 +176,7 @@ void ots_timer_start(void) if(ots_timer_running == false && g_hx3508_timer) { // app_timer_start(g_hx3508_timer, APP_TIMER_TICKS(50), NULL);//定义为50ms定时器间隔 - int ret = osTimerStart(g_hx3508_timer,20); + int ret = osTimerStart(g_hx3508_timer,50); // printf("ret:%d\n",ret); ots_timer_running = true; } @@ -184,7 +184,7 @@ void ots_timer_start(void) /** * 定时器stop函数 - * @param timerid 是对应的定时器; + * @param timerid 是对应的定时器; */ void ots_timer_stop(void) {