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 b37f24a commit 4118542Copy full SHA for 4118542
platform/mbed_critical.c
@@ -25,17 +25,21 @@
25
#include "platform/mbed_toolchain.h"
26
27
// if __EXCLUSIVE_ACCESS rtx macro not defined, we need to get this via own-set architecture macros
28
-#ifndef __EXCLUSIVE_ACCESS
29
#ifndef MBED_EXCLUSIVE_ACCESS
+#ifndef __EXCLUSIVE_ACCESS
30
#if ((__ARM_ARCH_7M__ == 1U) || \
31
(__ARM_ARCH_7EM__ == 1U) || \
32
(__ARM_ARCH_8M_BASE__ == 1U) || \
33
(__ARM_ARCH_8M_MAIN__ == 1U)) || \
34
(__ARM_ARCH_7A__ == 1U)
35
#define MBED_EXCLUSIVE_ACCESS 1U
36
-#else
+#elif (__ARM_ARCH_6M__ == 1U)
37
#define MBED_EXCLUSIVE_ACCESS 0U
38
+#else
39
+#error "Unknown architecture for exclusive access"
40
#endif
41
42
+#define MBED_EXCLUSIVE_ACCESS __EXCLUSIVE_ACCESS
43
44
45
0 commit comments