From dee1c31f6c5ceda51e9cdf152a64dc2812969045 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B6=E4=B8=AD=E6=96=AD=E5=BB=B6=E8=BF=9F=E7=9A=84RTOS?= Date: Sat, 4 Jul 2026 11:53:12 +0000 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20System/s?= =?UTF-8?q?v=5Ftick.c?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/sv_tick.c | 68 ------------------------------------------------ 1 file changed, 68 deletions(-) delete mode 100644 System/sv_tick.c diff --git a/System/sv_tick.c b/System/sv_tick.c deleted file mode 100644 index f02d7bb6..00000000 --- a/System/sv_tick.c +++ /dev/null @@ -1,68 +0,0 @@ -/**************************************************************************//** - * @item CosyOS-III Kernel - * @file sv_tick.c - * @brief 滴答服务 - * @details 仅在 SysTick中断 中调用并执行。 - * @author 迟凯峰 - * @version V2.4.1 - * @date 2026.06.24 - ******************************************************************************/ - -#include "os_var.h" -#include "sv_com.h" - -/** - @addtogroup 滴答服务 - @{ - */ - -#if (SYSCFG_SEMAPHORE == __ENABLED__) -/** - \brief 获取计数信号量 - \param[in] hsem 计数信号量句柄 - \return 结果 - \retval false 失败 - \retval true 成功 - */ -bool st_take_semaph(s_semaph_tsp hsem) MCUCFG_OSIT_ATTRIBUTE -{ - s_semaph_t counter = hsem->counter; - if(counter){ - hsem->counter = counter - 1; - return true; - } - return false; -} -#endif - -#if (SYSCFG_MSGQUEUE == __ENABLED__) -/** - \brief 接收消息 - \param[in] hque 队列句柄 - \return 消息指针 - \retval NULL 无消息 - */ -void *st_recv_msg(s_msgque_tsp hque) MCUCFG_OSIT_ATTRIBUTE -{ - void *msg = OS_NULL; - #if (SYSCFG_MSGQUEUE_INTRECV == __ENABLED__) - hque->mutex = false; - #endif - - if(hque->counter){ - if(hque->type == __DYNAMIC__){ - msg = sc_recv_msg_dynque((s_dynque_tsp)hque); - } - else{ - msg = sc_recv_msg_staque((s_staque_tsp)hque); - } - } - - #if (SYSCFG_MSGQUEUE_INTRECV == __ENABLED__) - hque->mutex = true; - #endif - return msg; -} -#endif - -/** @} */