Skip to content

Commit 2dc4bef

Browse files
Merge pull request #4902 from deepikabhavnani/macro_fix
Using CMSIS/RTX Exclusive access macro
2 parents 99a8467 + 74ba5f3 commit 2dc4bef

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

platform/mbed_critical.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@
2323
#include "platform/mbed_assert.h"
2424
#include "platform/mbed_toolchain.h"
2525

26-
#if !defined (__CORTEX_M0) && !defined (__CORTEX_M0PLUS)
27-
#define EXCLUSIVE_ACCESS 1
28-
#else
29-
#define EXCLUSIVE_ACCESS 0
30-
#endif
31-
3226
static volatile uint32_t interrupt_enable_counter = 0;
3327
static volatile bool critical_interrupts_disabled = false;
3428

@@ -107,7 +101,7 @@ MBED_WEAK void core_util_critical_section_exit(void)
107101
}
108102
}
109103

110-
#if EXCLUSIVE_ACCESS
104+
#if __EXCLUSIVE_ACCESS
111105

112106
/* Supress __ldrex and __strex deprecated warnings - "#3731-D: intrinsic is deprecated" */
113107
#if defined (__CC_ARM)

0 commit comments

Comments
 (0)