File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 2121
2222#include <stdint.h>
2323
24- #define MBED_APPLICATION_SUPPORT defined(__CORTEX_M3) || defined(__CORTEX_M4) || defined(__CORTEX_M7)
24+ #if defined(__CORTEX_M3 ) || defined(__CORTEX_M4 ) || defined(__CORTEX_M7 )
25+ #define MBED_APPLICATION_SUPPORT 1
26+ #else
27+ #define MBED_APPLICATION_SUPPORT 0
28+ #endif
29+
2530#if MBED_APPLICATION_SUPPORT
2631#ifdef __cplusplus
2732extern "C" {
Original file line number Diff line number Diff line change 2323#include "platform/mbed_assert.h"
2424#include "platform/mbed_toolchain.h"
2525
26- #define EXCLUSIVE_ACCESS (!defined (__CORTEX_M0) && !defined (__CORTEX_M0PLUS))
26+ #if !defined (__CORTEX_M0 ) && !defined (__CORTEX_M0PLUS )
27+ #define EXCLUSIVE_ACCESS 1
28+ #else
29+ #define EXCLUSIVE_ACCESS 0
30+ #endif
2731
2832static volatile uint32_t interrupt_enable_counter = 0 ;
2933static volatile bool critical_interrupts_disabled = false;
You can’t perform that action at this time.
0 commit comments