From 255c51174a0571340ef470184064a5c75d261d27 Mon Sep 17 00:00:00 2001
From: WXK <287788329@qq.com>
Date: 星期三, 22 一月 2025 15:06:27 +0800
Subject: [PATCH] 加入一开始不广播升级    中断触发gpio后广播升级  10分钟自动退出

---
 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