From b44bdb9dde40bcce2155de4de4ab2012f472a143 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: Fri, 8 Aug 2025 06:48:27 +0000 Subject: [PATCH] update Hook/rtc_hook.c. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 零中断延迟的RTOS --- Hook/rtc_hook.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Hook/rtc_hook.c b/Hook/rtc_hook.c index 4718e3da..3a0c3801 100644 --- a/Hook/rtc_hook.c +++ b/Hook/rtc_hook.c @@ -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) {