From ae079c1fc5d990ba55714d4b3a51b19f96edaec4 Mon Sep 17 00:00:00 2001 From: WXK <287788329@qq.com> Date: 星期四, 24 四月 2025 16:01:43 +0800 Subject: [PATCH] 改为中断来低电平触发发送当前扫描数据,3s内扫描不到的会退出,串口来55 AA 75 70 64 61 74 65,进入升级模式 --- 01_SDK/nimble/config/FreeRTOSConfig.h | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/01_SDK/nimble/config/FreeRTOSConfig.h b/01_SDK/nimble/config/FreeRTOSConfig.h index ac1cb4b..faddec5 100644 --- a/01_SDK/nimble/config/FreeRTOSConfig.h +++ b/01_SDK/nimble/config/FreeRTOSConfig.h @@ -56,13 +56,13 @@ /* Constants that describe the hardware and memory usage. */ #define configCPU_CLOCK_HZ (SystemCoreClock) -extern uint32_t clk_32k_count; +extern uint32_t clk_32k_freq; #if ( configUSE_TICKLESS_IDLE == 1 ) #if (CONFIG_LOW_SPEED_CLOCK_SRC == 1) - #define configTICK_RATE_HZ ((TickType_t)clk_32k_count) /*XTL*/ + #define configTICK_RATE_HZ ((TickType_t)clk_32k_freq) /*XTL*/ #else - #define configTICK_RATE_HZ ((TickType_t)clk_32k_count) /*RCL*/ + #define configTICK_RATE_HZ ((TickType_t)clk_32k_freq) /*RCL*/ #endif #define configTICK_ON_WAKING_RATE_HZ ((uint32_t)50) #else @@ -81,7 +81,9 @@ /* Constants related to the behaviour or the scheduler. */ +#ifndef configMAX_PRIORITIES #define configMAX_PRIORITIES 8 +#endif #define configUSE_PREEMPTION 1 #define configUSE_TIME_SLICING 1 #define configIDLE_SHOULD_YIELD 1 -- Gitblit v1.9.3