File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 20
20
#include "hal/mpu_api.h"
21
21
#include <limits.h>
22
22
23
+ #if DEVICE_MPU
24
+
23
25
static uint16_t mem_xn_lock ;
24
26
static uint16_t mem_wn_lock ;
25
27
@@ -78,3 +80,5 @@ void mbed_mpu_manager_unlock_rom_write()
78
80
}
79
81
core_util_critical_section_exit ();
80
82
}
83
+
84
+ #endif
Original file line number Diff line number Diff line change 32
32
extern "C" {
33
33
#endif
34
34
35
+ #if DEVICE_MPU
36
+
35
37
/** Lock ram execute never mode off
36
38
*
37
39
* This disables the MPU's execute never ram protection and allows
@@ -80,6 +82,18 @@ void mbed_mpu_manager_lock_rom_write(void);
80
82
*/
81
83
void mbed_mpu_manager_unlock_rom_write (void );
82
84
85
+ #else
86
+
87
+ #define mbed_mpu_manager_lock_ram_execution () (void)0
88
+
89
+ #define mbed_mpu_manager_unlock_ram_execution () (void)0
90
+
91
+ #define mbed_mpu_manager_lock_rom_write () (void)0
92
+
93
+ #define mbed_mpu_manager_unlock_rom_write () (void)0
94
+
95
+ #endif
96
+
83
97
#ifdef __cplusplus
84
98
}
85
99
#endif
You can’t perform that action at this time.
0 commit comments