bootloader_mem.c 433 B

12345678910111213141516171819202122
  1. /*
  2. * SPDX-FileCopyrightText: 2020-2021 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #include <stdbool.h>
  7. #include "hal/cpu_hal.h"
  8. #include "hal/mpu_hal.h"
  9. #include "hal/mpu_types.h"
  10. #include "soc/soc_caps.h"
  11. #include "bootloader_mem.h"
  12. #include "soc/cpu.h"
  13. void bootloader_init_mem(void)
  14. {
  15. cpu_hal_init_hwloop();
  16. // protect memory region
  17. esp_cpu_configure_region_protection();
  18. }