esp32s2beta: fix some macro and add flash wrap size condition

This commit is contained in:
wanglei 2019-11-05 13:03:33 +08:00 committed by bot
parent 70df578752
commit 8bea8dacbc
2 changed files with 2 additions and 1 deletions

View File

@ -189,7 +189,7 @@ extern void esp_switch_rodata_to_dcache(void);
extern void esp_spiram_enable_instruction_access(void);
esp_spiram_enable_instruction_access();
#endif
#if SPIRAM_RODATA
#if CONFIG_SPIRAM_RODATA
extern void esp_spiram_enable_rodata_access(void);
esp_spiram_enable_rodata_access();
#endif

View File

@ -511,6 +511,7 @@ extern uint32_t esp_spiram_rodata_access_enabled();
spiram_wrap_sizes[0] = icache_wrap_size;
} else {
spiram_wrap_sizes[1] = dcache_wrap_size;
flash_wrap_sizes[1] = dcache_wrap_size;
}
#ifdef CONFIG_EXT_RODATA_SUPPORT
spiram_wrap_sizes[1] = dcache_wrap_size;