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