From 0744e39d38e4faeddc1a6a5e525a7eae8a68317e 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: Tue, 10 Mar 2026 09:56:50 +0000 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20System/o?= =?UTF-8?q?s=5Fstarter.c?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/os_starter.c | 66 --------------------------------------------- 1 file changed, 66 deletions(-) delete mode 100644 System/os_starter.c diff --git a/System/os_starter.c b/System/os_starter.c deleted file mode 100644 index 46b1742b..00000000 --- a/System/os_starter.c +++ /dev/null @@ -1,66 +0,0 @@ -/**************************************************************************//** - * @item CosyOS-III Kernel - * @file os_starter.c - * @brief 任务启动器(Starter) - * @author 迟凯峰 - * @version V2.3.0 - * @date 2026.02.01 - ******************************************************************************/ - -#include "os_var.h" -#include "os_api.h" -#include "sv_com.h" -#include "sv_create.h" -#include "sv_task.h" -#include "ur_api.h" - -/** - \brief 任务启动器 - \param[in] 任务名称 Starter - \param[in] 任务优先级 SYSCFG_TASKPRIORITY - (SYSCFG_DEBUGGING ? 3 : 1) - \param[in] 任务栈大小 SYSCFG_STACKSIZE_STARTER - \param[in] 安全运行时 0 - \param[in] 任务名称文本 遗产模式:"Starter",标准/兼容模式:"任务启动器" - \return 无 - */ -#define _taskname "\xC8\xCE\xCE\xF1\xC6\xF4\xB6\xAF\xC6\xF7" /*!< "任务启动器" */ -sCat2Str -( - SYSCFG_STARTERCREATE, - CreateTask(Starter, SYSCFG_TASKPRIORITY - (SYSCFG_DEBUGGING ? 3 : 1), SYSCFG_STACKSIZE_STARTER, 0, _taskname) -) -{ -// uScheduleLock(); - if(true){ - uExtTask(Sysidle); - uStartTask_Ready(Sysidle); - } - #if (OS_TIMINTTOTAL > 0 || OS_TIMQRYTOTAL > 0) - if(true){ - s_u8_t i; - #if (OS_TIMINTTOTAL > 0) - i = OS_TIMINTTOTAL; - while(i--){ - if(s_timint_handle[i]->hookortask){ - sStartTask_TimInt(i); - } - } - #endif - #if (OS_TIMQRYTOTAL > 0) - i = OS_TIMQRYTOTAL; - while(i--){ - if(s_timqry_handle[i]->hookortask){ - sStartTask_TimQry(i); - } - } - #endif - } - #endif -// uScheduleUnlock(); - if(true){ - void start_hook(void); - start_hook(); - } - uDeleteTasking(); -} -#undef _taskname