mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-19 09:41:20 +00:00
Adjust the variable name &
Add mapping support for different sizes of spi ram
This commit is contained in:

committed by
Jiang Jiang Jian

parent
93c639872b
commit
4fd6d3deae
@@ -112,7 +112,7 @@ void IRAM_ATTR esp_spiram_init_cache(void)
|
||||
}
|
||||
|
||||
static uint32_t pages_for_flash = 0;
|
||||
static uint32_t instrcution_in_spiram = 0;
|
||||
static uint32_t instruction_in_spiram = 0;
|
||||
static uint32_t rodata_in_spiram = 0;
|
||||
|
||||
#if CONFIG_SPIRAM_FETCH_INSTRUCTIONS
|
||||
@@ -134,7 +134,7 @@ static uint32_t page0_page = INVALID_PHY_PAGE;
|
||||
|
||||
uint32_t esp_spiram_instruction_access_enabled(void)
|
||||
{
|
||||
return instrcution_in_spiram;
|
||||
return instruction_in_spiram;
|
||||
}
|
||||
|
||||
uint32_t esp_spiram_rodata_access_enabled(void)
|
||||
@@ -157,7 +157,7 @@ esp_err_t esp_spiram_enable_instruction_access(void)
|
||||
instr_flash2spiram_offs = mmu_value - pages_for_flash;
|
||||
ESP_EARLY_LOGV(TAG, "Instructions from flash page%d copy to SPIRAM page%d, Offset: %d", mmu_value, pages_for_flash, instr_flash2spiram_offs);
|
||||
pages_for_flash = Cache_Flash_To_SPIRAM_Copy(CACHE_IBUS, IRAM0_CACHE_ADDRESS_LOW, pages_for_flash, &page0_page);
|
||||
instrcution_in_spiram = 1;
|
||||
instruction_in_spiram = 1;
|
||||
return ESP_OK;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user