This is an automated email from the ASF dual-hosted git repository.

aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 3865960  esp32/esp32-core: Fix #ifdef warning and update MM_SECTIONS
3865960 is described below

commit 3865960b895291820a777a59757a1e09092c94bc
Author: Alan C. Assis <acas...@gmail.com>
AuthorDate: Tue Dec 1 14:15:37 2020 -0300

    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 c8c398a..618b5d0 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 a19ba54..bf050e8 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

Reply via email to