From 919bbeb90529ced8bf5ceeffab52f1ed1daf73bd 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: Tue, 25 Feb 2025 04:22:19 +0000 Subject: [PATCH] update Port/Cortex-M/port_cmx.h. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 零中断延迟的RTOS --- Port/Cortex-M/port_cmx.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Port/Cortex-M/port_cmx.h b/Port/Cortex-M/port_cmx.h index e3226e8e..4389a41c 100644 --- a/Port/Cortex-M/port_cmx.h +++ b/Port/Cortex-M/port_cmx.h @@ -3,8 +3,8 @@ * @file port_cmx.h * @brief CMSIS Cortex-M Core Port File * @author 迟凯峰 - * @version V1.0.3 - * @date 2025.02.24 + * @version V1.0.4 + * @date 2025.02.25 ******************************************************************************/ #ifndef __PORT_CMX_H @@ -295,7 +295,7 @@ do{ \ #if !MCUCFG_SYSINT -__STATIC_INLINE void __mu_disable_sysirq(void) +__STATIC_FORCEINLINE void __mu_disable_sysirq(void) { __set_BASEPRI(m_basepri); __ASM("dsb"); @@ -304,14 +304,14 @@ __STATIC_INLINE void __mu_disable_sysirq(void) #else -__STATIC_INLINE void __mu_disable_sysirq(void) +__STATIC_FORCEINLINE void __mu_disable_sysirq(void) { mSysINT_Disable; __ASM("dsb"); __ASM("isb"); } -__STATIC_INLINE void __mu_enable_sysirq(void) +__STATIC_FORCEINLINE void __mu_enable_sysirq(void) { mSysINT_Enable; }