Files
cosyos/Hook/pendsv_hook.c
零中断延迟的RTOS 23ff357117 update Hook/pendsv_hook.c.
Signed-off-by: 零中断延迟的RTOS <cosyos@139.com>
2025-08-09 05:15:03 +00:00

24 lines
907 B
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 pendsv_hook.c
* @brief 挂起服务钩子
* @details 当需要在中断中完成特定的服务功能时,可先设置一个标志位,再触发 PendSV
而后在 pendsv_hook 中查询该标志位,为真就清除标志位,而后调用相应服务。
* @note 此处应调用前缀为“p”的中断挂起服务。
* @author 迟凯峰
* @version V2.0.1
* @date 2025.08.08
******************************************************************************/
#include "CosyOS.H"
#if 1 /* 编译开关 *//* 如果该函数在用户文件中实现且此处的弱定义无效可手动移除该函数1 改为 0*/ \
&& (SYSCFG_PENDSVHOOK == __ENABLED__)
__WEAK void pendsv_hook(void) MCUCFG_OSIT_ATTRIBUTE
{
}
#endif