Skip to content

Using CMSIS/RTX Exclusive access macro #4902

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 17, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions platform/mbed_critical.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -107,7 +101,7 @@ MBED_WEAK void core_util_critical_section_exit(void)
}
}

#if EXCLUSIVE_ACCESS
#if __EXCLUSIVE_ACCESS

/* Supress __ldrex and __strex deprecated warnings - "#3731-D: intrinsic is deprecated" */
#if defined (__CC_ARM)
Expand Down