mirror of
https://github.com/espressif/esp-idf
synced 2025-04-07 23:30:11 -04:00
25 lines
490 B
C
25 lines
490 B
C
/*
|
|
* SPDX-FileCopyrightText: 2020-2021 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include "hal/cpu_hal.h"
|
|
#include "hal/mpu_hal.h"
|
|
#include "hal/mpu_types.h"
|
|
#include "soc/soc_caps.h"
|
|
#include "bootloader_mem.h"
|
|
#include "esp_cpu.h"
|
|
|
|
void bootloader_init_mem(void)
|
|
{
|
|
cpu_hal_init_hwloop();
|
|
|
|
#ifdef CONFIG_BOOTLOADER_REGION_PROTECTION_ENABLE
|
|
// protect memory region
|
|
esp_cpu_configure_region_protection();
|
|
#endif
|
|
}
|