update Hook/rtc_hook.c.

Signed-off-by: 零中断延迟的RTOS <cosyos@139.com>
This commit is contained in:
零中断延迟的RTOS
2025-08-08 06:48:27 +00:00
committed by Gitee
parent b781c01b90
commit b44bdb9dde
+4 -3
View File
@@ -5,12 +5,13 @@
* @details 当启用任务管理器并启用当前时间显示功能,如果未启用软件RTC(已经有
硬件RTC),任务管理器会通过RTC钩子来获取当前时间。
* @author 迟凯峰
* @version V2.0.0
* @date 2025.08.04
* @version V2.0.1
* @date 2025.08.08
******************************************************************************/
#include "CosyOS.H"
#if (SYSCFG_RTC_SHOW == __ENABLED__ && SYSCFG_SOFTRTC == __DISABLED__)
#if 1 /* 编译开关 *//* 如果该函数在用户文件中实现且此处的弱定义无效,可手动移除该函数(1 改为 0)*/ \
&& (SYSCFG_RTC_SHOW == __ENABLED__ && SYSCFG_SOFTRTC == __DISABLED__)
__WEAK void rtc_hook(s_rtc_ts *t)
{