From f2e6cd0d84b563e5d19c39a9841d483655182399 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B6=E4=B8=AD=E6=96=AD=E5=BB=B6=E8=BF=9F=E7=9A=84RTOS?= Date: Thu, 6 Aug 2026 14:50:06 +0000 Subject: [PATCH] update System/os_main.c. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 零中断延迟的RTOS --- System/os_main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/System/os_main.c b/System/os_main.c index 5faa95c4..c3c6d14b 100644 --- a/System/os_main.c +++ b/System/os_main.c @@ -3,8 +3,8 @@ * @file os_main.c * @brief 启动-CosyOS * @author 迟凯峰 - * @version v3.0.0 - * @date 2026.07.21 + * @version v3.0.4 + * @date 2026.08.06 ******************************************************************************/ #include "os_var.h" @@ -23,11 +23,13 @@ */ s_ecode_t uStartCosyOS(void) { + uExternTask(Sysidle); sCat2Str(SYSCFG_STARTERCREATE, ExtTask(Starter)); #if (OS_TIMINTTOTAL > 0 || OS_TIMQRYTOTAL > 0) void os_init_timing(void); os_init_timing(); #endif mCosyOS_INIT(); + s_task_current = Sysidle; return uStartTask_Ready(Starter); }