We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a1c7fa commit 74ba5f3Copy full SHA for 74ba5f3
platform/mbed_critical.c
@@ -23,12 +23,6 @@
23
#include "platform/mbed_assert.h"
24
#include "platform/mbed_toolchain.h"
25
26
-#if !defined (__CORTEX_M0) && !defined (__CORTEX_M0PLUS)
27
-#define EXCLUSIVE_ACCESS 1
28
-#else
29
-#define EXCLUSIVE_ACCESS 0
30
-#endif
31
-
32
static volatile uint32_t interrupt_enable_counter = 0;
33
static volatile bool critical_interrupts_disabled = false;
34
@@ -107,7 +101,7 @@ MBED_WEAK void core_util_critical_section_exit(void)
107
101
}
108
102
109
103
110
-#if EXCLUSIVE_ACCESS
104
+#if __EXCLUSIVE_ACCESS
111
105
112
106
/* Supress __ldrex and __strex deprecated warnings - "#3731-D: intrinsic is deprecated" */
113
#if defined (__CC_ARM)
0 commit comments