feat(spiram): refactor for spiram device driver for s3/c5

This commit is contained in:
C.S.M
2024-08-09 11:43:04 +08:00
parent d1571c144b
commit c431e9b830
9 changed files with 922 additions and 826 deletions
+6 -1
View File
@@ -36,7 +36,12 @@ if(CONFIG_SPIRAM)
endif()
if(CONFIG_SPIRAM_MODE_QUAD)
list(APPEND srcs "${target}/esp_psram_impl_quad.c")
if(${target} STREQUAL "esp32" OR ${target} STREQUAL "esp32s2")
list(APPEND srcs "${target}/esp_psram_impl_quad.c")
else()
list(APPEND srcs "device/esp_psram_impl_ap_quad.c")
endif()
elseif(CONFIG_SPIRAM_MODE_OCT)
list(APPEND srcs "${target}/esp_psram_impl_octal.c")
endif()