From 18971eb572b7c99518833a1c32305df3068c41b3 Mon Sep 17 00:00:00 2001 From: zhangbo <zhangbo@qq.com> Date: 星期四, 15 五月 2025 16:28:58 +0800 Subject: [PATCH] 一直抢占 --- keil/include/components/wsf/sources/platform/pal_sys.c | 23 ++++------------------- 1 files changed, 4 insertions(+), 19 deletions(-) diff --git a/keil/include/components/wsf/sources/platform/pal_sys.c b/keil/include/components/wsf/sources/platform/pal_sys.c index 0fd555e..145baa2 100644 --- a/keil/include/components/wsf/sources/platform/pal_sys.c +++ b/keil/include/components/wsf/sources/platform/pal_sys.c @@ -51,7 +51,7 @@ /*! \brief Trap enabled flag. */ static volatile bool_t PalSysAssertTrapEnable; -static volatile uint32_t palSysBusyCount; +/// static volatile uint32_t palSysBusyCount; /************************************************************************************************** Functions @@ -86,7 +86,7 @@ { palSysAssertCount = 0; PalSysAssertTrapEnable = TRUE; - palSysBusyCount = 0; + /// palSysBusyCount = 0; #ifdef DEBUG /* Reset free memory. */ @@ -156,6 +156,7 @@ __WFI(); } +#if 0 /*************************************************************************************************/ /*! * \brief Check if system is busy. @@ -200,20 +201,4 @@ } PalExitCs(lock); } - -/*************************************************************************************************/ -/*! - * \brief Get the Systick elapse time in current tick period. - * - * \return Elapse time in current tick period. - */ -/*************************************************************************************************/ -uint32_t PalSysTickElapse(void) -{ - return sys_tick_elapse_ms(); -} - -uint32_t PalSysTickGet(void) -{ - return sys_tick_get(); -} +#endif -- Gitblit v1.9.3