减小3508的定时器频率
authorCaisking <Casiking@zhihuishixun.com>
Mon, 19 Jan 2026 02:05:50 +0000 (10:05 +0800)
committerCaisking <Casiking@zhihuishixun.com>
Mon, 19 Jan 2026 02:05:50 +0000 (10:05 +0800)
code/sdk/zhihui/drivers/rotary_encoder/hx3508/hx3508.c

index 7c5f084..958e9f5 100644 (file)
@@ -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)
 {