From 74ba5f3f51d15ea0bb804b1f28070e486e49b45c Mon Sep 17 00:00:00 2001 From: Deepika Date: Fri, 11 Aug 2017 11:09:57 -0500 Subject: [PATCH] Using CMSIS/RTX Exclusive access macro --- platform/mbed_critical.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/platform/mbed_critical.c b/platform/mbed_critical.c index de0f1c546e..6afb48e5a9 100644 --- a/platform/mbed_critical.c +++ b/platform/mbed_critical.c @@ -23,12 +23,6 @@ #include "platform/mbed_assert.h" #include "platform/mbed_toolchain.h" -#if !defined (__CORTEX_M0) && !defined (__CORTEX_M0PLUS) -#define EXCLUSIVE_ACCESS 1 -#else -#define EXCLUSIVE_ACCESS 0 -#endif - static volatile uint32_t interrupt_enable_counter = 0; static volatile bool critical_interrupts_disabled = false; @@ -107,7 +101,7 @@ MBED_WEAK void core_util_critical_section_exit(void) } } -#if EXCLUSIVE_ACCESS +#if __EXCLUSIVE_ACCESS /* Supress __ldrex and __strex deprecated warnings - "#3731-D: intrinsic is deprecated" */ #if defined (__CC_ARM)