Skip to content

Commit 14d1e57

Browse files
committed
cpu/esp32/esp-idf/spi_ram: migration to ESP-IDF v5.4
1 parent bb350ad commit 14d1e57

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

cpu/esp32/esp-idf/spi_ram/Makefile

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,31 @@
11
MODULE = esp_idf_spi_ram
22

33
# source files to be compiled for this module
4-
ESP32_SDK_SRC = \
5-
components/esp_hw_support/port/$(CPU_FAM)/spiram.c \
6-
components/esp_hw_support/port/$(CPU_FAM)/spiram_psram.c \
7-
#
4+
ESP32_SDK_SRC += components/esp_psram/esp_psram.c
85

96
ifeq (esp32,$(CPU_FAM))
107
ESP32_SDK_SRC += components/esp_hw_support/port/$(CPU_FAM)/cache_sram_mmu.c
8+
ESP32_SDK_SRC += components/esp_psram/$(CPU_FAM)/esp_psram_extram_cache.c
9+
ESP32_SDK_SRC += components/esp_psram/$(CPU_FAM)/esp_psram_impl_quad.c
1110
endif
1211

13-
ifneq (,$(filter esp_spi_oct,$(USEMODULE)))
14-
ESP32_SDK_SRC += components/esp_hw_support/port/$(CPU_FAM)/opiram_psram.c
12+
ifeq (esp32s2,$(CPU_FAM))
13+
ESP32_SDK_SRC += components/esp_psram/$(CPU_FAM)/esp_psram_impl_quad.c
1514
endif
1615

16+
ifeq (esp32s3,$(CPU_FAM))
17+
ifneq (,$(filter esp_spi_oct,$(USEMODULE)))
18+
ESP32_SDK_SRC += components/esp_psram/$(CPU_FAM)/esp_psram_impl_octal.c
19+
else
20+
ESP32_SDK_SRC += components/esp_psram/device/esp_psram_impl_ap_quad.c
21+
endif
22+
endif
23+
24+
CFLAGS += -Wno-unused-but-set-variable
25+
1726
# additional include pathes required by this module
27+
INCLUDES += -I$(ESP32_SDK_DIR)/components/esp_driver_spi/include
28+
INCLUDES += -I$(ESP32_SDK_DIR)/components/esp_psram/include
1829
INCLUDES += -I$(ESP32_SDK_DIR)/components/soc/$(CPU_FAM)/include
1930

2031
include $(RIOTBASE)/Makefile.base

0 commit comments

Comments
 (0)