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