Files
cosyos/Hook/idle_hook.c
零中断延迟的RTOS 295bcbaee2 update Hook/idle_hook.c.
Signed-off-by: 零中断延迟的RTOS <cosyos@139.com>
2025-08-09 04:46:54 +00:00

22 lines
706 B
C
Raw Permalink 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 idle_hook.c
* @brief 空闲钩子
* @details 在系统空闲任务Sysidle中被调用用户可添加自己的代码做一些没有实时性要求的工作。
* @author 迟凯峰
* @version V2.0.1
* @date 2025.08.08
******************************************************************************/
#include "CosyOS.H"
#if 1 /* 编译开关 *//* 如果该函数在用户文件中实现且此处的弱定义无效可手动移除该函数1 改为 0*/ \
&& (SYSCFG_IDLEHOOK == __ENABLED__)
__WEAK void idle_hook(void)
{
}
#endif