2021-05-09 22:35:07 -04:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2020-2021 Espressif Systems (Shanghai) CO LTD
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
2020-02-03 05:12:32 -05:00
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
#include "hal/cpu_hal.h"
|
|
|
|
#include "hal/mpu_hal.h"
|
|
|
|
#include "hal/mpu_types.h"
|
2020-09-09 22:37:58 -04:00
|
|
|
#include "soc/soc_caps.h"
|
2020-02-03 05:12:32 -05:00
|
|
|
#include "bootloader_mem.h"
|
2021-12-13 23:38:15 -05:00
|
|
|
#include "esp_cpu.h"
|
2020-02-03 05:12:32 -05:00
|
|
|
|
|
|
|
void bootloader_init_mem(void)
|
|
|
|
{
|
|
|
|
cpu_hal_init_hwloop();
|
|
|
|
|
|
|
|
// protect memory region
|
2020-11-05 23:00:07 -05:00
|
|
|
esp_cpu_configure_region_protection();
|
2020-11-10 02:40:01 -05:00
|
|
|
}
|