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 21
21
22
22
#include <stdint.h>
23
23
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
+
25
30
#if MBED_APPLICATION_SUPPORT
26
31
#ifdef __cplusplus
27
32
extern "C" {
Original file line number Diff line number Diff line change 23
23
#include "platform/mbed_assert.h"
24
24
#include "platform/mbed_toolchain.h"
25
25
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
27
31
28
32
static volatile uint32_t interrupt_enable_counter = 0 ;
29
33
static volatile bool critical_interrupts_disabled = false;
You can’t perform that action at this time.
0 commit comments