From 44b17d82031ca111fbbee2b5cc64667177db8407 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: Sun, 1 Feb 2026 18:18:51 +0000 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20System/o?= =?UTF-8?q?s=5Fmain.c?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/os_main.c | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 System/os_main.c diff --git a/System/os_main.c b/System/os_main.c deleted file mode 100644 index 7717445..0000000 --- a/System/os_main.c +++ /dev/null @@ -1,33 +0,0 @@ -/**************************************************************************//** - * @item CosyOS-III Kernel - * @file os_main.c - * @brief 启动-CosyOS - * @author 迟凯峰 - * @version V2.1.0 - * @date 2025.12.15 - ******************************************************************************/ - -#include "os_var.h" -#include "os_api.h" -#include "sv_create.h" -#include "sv_task.h" -#include "ur_api.h" - -/** - \brief 启动-CosyOS - \param 无 - \return 错误码 - \note 用户应自主创建main函数,并在其末尾处调用该函数来启动-CosyOS; - 在正常情况下,该函数并不会返回,而是直接调度至 Starter 运行; - 只有当 Starter 启动失败时,才会返回错误码提示用户。 - */ -s_ecode_t uStartCosyOS(void) -{ - sCat2Str(SYSCFG_STARTERCREATE, ExtTask(Starter)); - #if (OS_TIMINTTOTAL > 0 || OS_TIMQRYTOTAL > 0) - void os_init_timing(void); - os_init_timing(); - #endif - mCosyOS_INIT(); - return uStartTask_Ready(Starter); -}