File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 19
19
#include <stdarg.h>
20
20
#include "device.h"
21
21
#include "platform/mbed_application.h"
22
- #include "hal/mpu_api .h"
22
+ #include "platform/mbed_mpu_mgmt .h"
23
23
24
24
#if MBED_APPLICATION_SUPPORT
25
25
@@ -69,7 +69,7 @@ void mbed_start_application(uintptr_t address)
69
69
SysTick -> CTRL = 0x00000000 ;
70
70
powerdown_nvic ();
71
71
powerdown_scb (address );
72
- mbed_mpu_free ();
72
+ mbed_mpu_manager_deinit ();
73
73
74
74
sp = * ((void * * )address + 0 );
75
75
pc = * ((void * * )address + 1 );
Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ extern "C" {
35
35
36
36
#define mbed_mpu_manager_init () mbed_mpu_init()
37
37
38
+ #define mbed_mpu_manager_deinit () mbed_mpu_free()
39
+
38
40
/** Lock ram execute never mode off
39
41
*
40
42
* This disables the MPU's execute never ram protection and allows
@@ -87,6 +89,8 @@ void mbed_mpu_manager_unlock_rom_write(void);
87
89
88
90
#define mbed_mpu_manager_init () (void)0
89
91
92
+ #define mbed_mpu_manager_deinit () (void)0
93
+
90
94
#define mbed_mpu_manager_lock_ram_execution () (void)0
91
95
92
96
#define mbed_mpu_manager_unlock_ram_execution () (void)0
You can’t perform that action at this time.
0 commit comments