mirror of
https://gitee.com/cosyos/cosyos.git
synced 2026-08-17 16:52:27 +08:00
+5
-4
@@ -2,14 +2,15 @@
|
||||
* @item CosyOS-III Hook
|
||||
* @file pendsv_hook.c
|
||||
* @brief 挂起服务钩子
|
||||
* @details 用于处理标志队列中的中断挂起服务。
|
||||
* @details 当需要在中断中完成特定的服务功能时,可先设置一个标志位,再触发 PendSV;
|
||||
而后在 pendsv_hook 中查询该标志位,为真就清除标志位,而后调用相应服务。
|
||||
* @author 迟凯峰
|
||||
* @version V1.2.0
|
||||
* @date 2025.03.30
|
||||
* @version V1.2.1
|
||||
* @date 2025.07.30
|
||||
******************************************************************************/
|
||||
|
||||
#include "CosyOS.H"
|
||||
#if SYSCFG_PENDSVHOOK == __ENABLED__
|
||||
#if (SYSCFG_PENDSVHOOK == __ENABLED__)
|
||||
|
||||
__WEAK void pendsv_hook(void) MCUCFG_C51USING
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user