t
Fork of mbed-dev by
Diff: platform/mbed_critical.c
- Revision:
- 171:19eb464bc2be
- Parent:
- 168:e84263d55307
- Child:
- 173:7d866c31b3c5
--- a/platform/mbed_critical.c Wed Jul 19 17:31:21 2017 +0100 +++ b/platform/mbed_critical.c Thu Aug 03 13:13:39 2017 +0100 @@ -23,7 +23,11 @@ #include "platform/mbed_assert.h" #include "platform/mbed_toolchain.h" -#define EXCLUSIVE_ACCESS (!defined (__CORTEX_M0) && !defined (__CORTEX_M0PLUS)) +#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;