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.
2 parents 8d54243 + 9eafc81 commit fe8bd7dCopy full SHA for fe8bd7d
hal/common/mbed_critical.c
@@ -86,6 +86,11 @@ void core_util_critical_section_exit(void)
86
87
#if EXCLUSIVE_ACCESS
88
89
+/* Supress __ldrex and __strex deprecated warnings - "#3731-D: intrinsic is deprecated" */
90
+#if defined (__CC_ARM)
91
+#pragma diag_suppress 3731
92
+#endif
93
+
94
bool core_util_atomic_cas_u8(uint8_t *ptr, uint8_t *expectedCurrentValue, uint8_t desiredValue)
95
{
96
uint8_t currentValue = __LDREXB((volatile uint8_t*)ptr);
0 commit comments