-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Description
__EXCLUSIVE_ACCESS Macro is set in "core_cm.h" file considering the ARM architecture.
#ifndef __EXCLUSIVE_ACCESS
#if ((__ARM_ARCH_7M__ == 1U) || \
(__ARM_ARCH_7EM__ == 1U) || \
(__ARM_ARCH_8M_MAIN__ == 1U))
#define __EXCLUSIVE_ACCESS 1U
#else
#define __EXCLUSIVE_ACCESS 0U
#endif
#endif
EXCLUSIVE_ACCESS macro is set in "mbed_critical.c" file.
#define EXCLUSIVE_ACCESS (!defined (__CORTEX_M0) && !defined (__CORTEX_M0PLUS))
Shouldn't we use single macro, as it looks both of them are for same purpose. Or any specific reason to have this redefined in *.c file?
Metadata
Metadata
Assignees
Labels
No labels