You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/01/18 09:41:18 UTC

[nuttx] 03/03: xtensa/esp32: Fix ESP32_SPIRAM_USER_HEAP under Protected mode

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

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

commit a4c9da92806b543f9072003c59193b81f53026f9
Author: Gustavo Henrique Nihei <gu...@espressif.com>
AuthorDate: Tue Jan 17 14:29:52 2023 -0300

    xtensa/esp32: Fix ESP32_SPIRAM_USER_HEAP under Protected mode
    
    Signed-off-by: Gustavo Henrique Nihei <gu...@espressif.com>
---
 arch/xtensa/src/esp32/esp32_psram.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/xtensa/src/esp32/esp32_psram.c b/arch/xtensa/src/esp32/esp32_psram.c
index 16e42b01aa..fb87e0ed8e 100644
--- a/arch/xtensa/src/esp32/esp32_psram.c
+++ b/arch/xtensa/src/esp32/esp32_psram.c
@@ -715,7 +715,7 @@ psram_cmd_recv_start(psram_spi_num_t spi_num,
 
   while (getreg32(SPI_EXT2_REG(0)) != 0);
 
-#ifndef CONFIG_ESP32_USER_DATA_EXTMEM
+#ifndef CONFIG_ESP32_PID
   modifyreg32(DPORT_HOST_INF_SEL_REG, 0, 1 << 14);
 #endif
 
@@ -725,7 +725,7 @@ psram_cmd_recv_start(psram_spi_num_t spi_num,
 
   while ((getreg32(SPI_CMD_REG(spi_num)) & SPI_USR));
 
-#ifndef CONFIG_ESP32_USER_DATA_EXTMEM
+#ifndef CONFIG_ESP32_PID
   modifyreg32(DPORT_HOST_INF_SEL_REG, 1 << 14, 0);
 #endif