Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-dev by
Diff: platform/mbed_critical.c
- Revision:
- 172:7d866c31b3c5
- Parent:
- 170:19eb464bc2be
- Child:
- 180:96ed750bd169
--- a/platform/mbed_critical.c Wed Aug 16 18:27:13 2017 +0100 +++ b/platform/mbed_critical.c Thu Aug 31 17:27:04 2017 +0100 @@ -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 @@ } } -#if EXCLUSIVE_ACCESS +#if __EXCLUSIVE_ACCESS /* Supress __ldrex and __strex deprecated warnings - "#3731-D: intrinsic is deprecated" */ #if defined (__CC_ARM)