From 3bdf9350e8ac52c08ca55c8420c4c028715b4d9c Mon Sep 17 00:00:00 2001 From: zhouli <1932489836@qq.com> Date: Wed, 10 Dec 2025 15:24:02 +0800 Subject: [PATCH] fix(uac): Correcting the error in the function name esp_ptr_in_psram --- .../test_app/sdkconfig.ci.esp32p4_psram | 13 +++++++++++++ host/class/uac/usb_host_uac/uac_host.c | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 host/class/uac/usb_host_uac/test_app/sdkconfig.ci.esp32p4_psram diff --git a/host/class/uac/usb_host_uac/test_app/sdkconfig.ci.esp32p4_psram b/host/class/uac/usb_host_uac/test_app/sdkconfig.ci.esp32p4_psram new file mode 100644 index 000000000..560b9e0a5 --- /dev/null +++ b/host/class/uac/usb_host_uac/test_app/sdkconfig.ci.esp32p4_psram @@ -0,0 +1,13 @@ +CONFIG_IDF_TARGET="esp32p4" +CONFIG_ESP32P4_SELECTS_REV_LESS_V3=y + +# Enable experimental features, to set PSRAM frequency to 200 MHz +CONFIG_IDF_EXPERIMENTAL_FEATURES=y + +# Enable PSRAM and set PSRAM frequency +CONFIG_SPIRAM=y +CONFIG_SPIRAM_SPEED_200M=y +# CONFIG_SPIRAM_MEMTEST is not set + +# Allocate USB_DWC DMA capable memory in PSRAM +CONFIG_USB_HOST_DWC_DMA_CAP_MEMORY_IN_PSRAM=y diff --git a/host/class/uac/usb_host_uac/uac_host.c b/host/class/uac/usb_host_uac/uac_host.c index d727879ef..a62fee6c4 100644 --- a/host/class/uac/usb_host_uac/uac_host.c +++ b/host/class/uac/usb_host_uac/uac_host.c @@ -81,7 +81,7 @@ static inline bool ptr_is_writable(const void *ptr) { if (esp_ptr_in_dram(ptr) || esp_ptr_in_diram_dram(ptr) #if CONFIG_SPIRAM - || esp_ptr_in_psram(ptr) + || esp_ptr_external_ram(ptr) #endif ) { // If the pointer is in DRAM or PSRAM, it is writable return true;