mirror of
https://gitee.com/cosyos/cosyos.git
synced 2026-02-05 19:39:42 +08:00
24 lines
907 B
C
24 lines
907 B
C
/**************************************************************************//**
|
||
* @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
|