mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
31 lines
794 B
Plaintext
31 lines
794 B
Plaintext
/*
|
|
* SPDX-FileCopyrightText: 2021 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include "sdkconfig.h"
|
|
|
|
/* CPU instruction prefetch padding size for flash mmap scenario */
|
|
_esp_flash_mmap_prefetch_pad_size = 16;
|
|
|
|
/* CPU instruction prefetch padding size for memory protection scenario */
|
|
#ifdef CONFIG_SOC_MEMPROT_CPU_PREFETCH_PAD_SIZE
|
|
_esp_memprot_prefetch_pad_size = CONFIG_SOC_MEMPROT_CPU_PREFETCH_PAD_SIZE;
|
|
#else
|
|
_esp_memprot_prefetch_pad_size = 0;
|
|
#endif
|
|
|
|
/* Memory alignment size for PMS */
|
|
#ifdef CONFIG_SOC_MEMPROT_MEM_ALIGN_SIZE
|
|
_esp_memprot_align_size = CONFIG_SOC_MEMPROT_MEM_ALIGN_SIZE;
|
|
#else
|
|
_esp_memprot_align_size = 0;
|
|
#endif
|
|
|
|
#if CONFIG_APP_BUILD_TYPE_RAM
|
|
_esp_mmu_block_size = 0;
|
|
#else
|
|
_esp_mmu_block_size = (CONFIG_MMU_PAGE_SIZE);
|
|
#endif
|