Files
cosyos/Hook/start_hook.c
零中断延迟的RTOS b7b1276c1f update Hook/start_hook.c.
Signed-off-by: 零中断延迟的RTOS <cosyos@139.com>
2025-12-15 11:57:22 +00:00

28 lines
1.0 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**************************************************************************//**
* @item CosyOS-III Hook
* @file start_hook.c
* @brief 启动钩子
* @details 在任务启动器Starter中被调用可在此启动用户任务。
* @note 相关服务:
uStartTask(task, status); 启动任务
uStartTask_Ready(task); 启动任务并就绪
uStartTask_Block(task); 启动任务并阻塞
uStartTask_Suspend(task); 启动任务并挂起
* @author 迟凯峰
* @version V2.1.0
* @date 2025.12.15
******************************************************************************/
#include "CosyOS.H"
#if 1 /* 编译开关 *//* 如果该函数在用户文件中实现且此处的弱定义无效可手动移除该函数1 改为 0*/
__WEAK void start_hook(void)
{
// uScheduleLock();
/* 如果不想在启动任务过程中进行任务调度,可开启调度锁。*/
// uScheduleUnlock();
}
#endif