1
6
7
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
38
39
/* ... */
#include <stdbool.h>
#include "hal/mpu_hal.h"
#include "hal/mpu_types.h"
#include "soc/soc_caps.h"
#include "bootloader_mem.h"
#include "esp_cpu.h"6 includes
#if SOC_APM_SUPPORTED
#include "hal/apm_hal.h"
#endif
void bootloader_init_mem(void)
{
#if !defined(BOOTLOADER_BUILD) && defined(SOC_APM_SUPPORTED)
/* ... */
#ifdef SOC_APM_CTRL_FILTER_SUPPORTED
apm_hal_apm_ctrl_filter_enable_all(false);
#endif/* ... */
#endif
#ifdef CONFIG_BOOTLOADER_REGION_PROTECTION_ENABLE
esp_cpu_configure_region_protection();/* ... */
#endif
}{ ... }