mirror of
https://github.com/espressif/esp-idf
synced 2025-04-12 01:30:11 -04:00
This commit makes changes to cpu_ll.h, cpu_hal.h, and interrupt_controller_hal.h: - Moved to esp_hw_support in order to be deprecated in the future - HAL/LL API now route their calls to esp_cpu.h functions instead Also updated soc_hal.h as follows: - Removed __SOC_HAL_..._OTHER_CORES() macros as they dependend on cpu_hal.h - Made soc_hal.h and soc_ll.h interfaces always inline, and removed soc_hal.c. This commit also updates the XCHAL_ERRATUM_572 workaround by - Removing it's HAL function and invoking the workaround it directly the bootloader - Added missing workaround for the ESP32-S3
23 lines
462 B
C
23 lines
462 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)
|
|
{
|
|
#ifdef CONFIG_BOOTLOADER_REGION_PROTECTION_ENABLE
|
|
// protect memory region
|
|
esp_cpu_configure_region_protection();
|
|
#endif
|
|
}
|