esp32s2beta: Fix heap memory regions when SPIRAM is disabled

This commit is contained in:
Angus Gratton
2019-06-07 18:01:28 +10:00
committed by suda-morris
parent b2e8d30414
commit 047aca97e8
2 changed files with 2 additions and 2 deletions

View File

@@ -67,7 +67,7 @@ Because of requirements in the coalescing code which merges adjacent regions, th
from low to high start address.
*/
const soc_memory_region_t soc_memory_regions[] = {
#ifdef CONFIG_SPIRAM_SUPPORT
#ifdef CONFIG_ESP32S2_SPIRAM_SUPPORT
{ SOC_EXTRAM_DATA_LOW, SOC_EXTRAM_DATA_HIGH - SOC_EXTRAM_DATA_LOW, 4, 0}, //SPI SRAM, if available
#if CONFIG_USE_AHB_DBUS3_ACCESS_SPIRAM
{ SOC_SLOW_EXTRAM_DATA_LOW, SOC_SLOW_EXTRAM_DATA_HIGH - SOC_SLOW_EXTRAM_DATA_LOW, 5, 0}, //SPI SRAM, if available