bootloader: Create option for enabling memory region protection

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
Gustavo Henrique Nihei
2022-05-02 10:37:19 -03:00
parent 2f7935666d
commit 8ffb157791
2 changed files with 10 additions and 0 deletions

View File

@@ -17,6 +17,8 @@ void bootloader_init_mem(void)
{
cpu_hal_init_hwloop();
#ifdef CONFIG_BOOTLOADER_REGION_PROTECTION_ENABLE
// protect memory region
esp_cpu_configure_region_protection();
#endif
}