From 3865960b895291820a777a59757a1e09092c94bc Mon Sep 17 00:00:00 2001 From: "Alan C. Assis" Date: Tue, 1 Dec 2020 14:15:37 -0300 Subject: [PATCH] esp32/esp32-core: Fix #ifdef warning and update MM_SECTIONS --- arch/xtensa/src/esp32/esp32_himem.c | 2 +- boards/xtensa/esp32/esp32-core/configs/psram/defconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/xtensa/src/esp32/esp32_himem.c b/arch/xtensa/src/esp32/esp32_himem.c index c8c398a048..618b5d0020 100644 --- a/arch/xtensa/src/esp32/esp32_himem.c +++ b/arch/xtensa/src/esp32/esp32_himem.c @@ -70,7 +70,7 @@ /* How many 32KB pages will be reserved for bank switch */ -#if CONFIG_ESP32_SPIRAM_BANKSWITCH_ENABLE +#ifdef CONFIG_ESP32_SPIRAM_BANKSWITCH_ENABLE # define SPIRAM_BANKSWITCH_RESERVE CONFIG_SPIRAM_BANKSWITCH_RESERVE #else # define SPIRAM_BANKSWITCH_RESERVE 0 diff --git a/boards/xtensa/esp32/esp32-core/configs/psram/defconfig b/boards/xtensa/esp32/esp32-core/configs/psram/defconfig index a19ba54570..bf050e8b51 100644 --- a/boards/xtensa/esp32/esp32-core/configs/psram/defconfig +++ b/boards/xtensa/esp32/esp32-core/configs/psram/defconfig @@ -35,7 +35,7 @@ CONFIG_HEAP2_SIZE=4194304 CONFIG_IDLETHREAD_STACKSIZE=3072 CONFIG_INTELHEX_BINARY=y CONFIG_MAX_TASKS=16 -CONFIG_MM_REGIONS=2 +CONFIG_MM_REGIONS=3 CONFIG_NETDB_DNSCLIENT=y CONFIG_NETDB_DNSSERVER_IPv4ADDR=0x08080808 CONFIG_NETDB_HOSTFILE=y