1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2026-01-01 01:41:18 +01:00

cpu/esp32: fix esp_spi_ram dependency and flash mode setting

This commit is contained in:
Gunar Schorcht 2020-02-21 10:14:03 +01:00
parent e869fbd30f
commit 3230326652
2 changed files with 6 additions and 1 deletions

View File

@ -63,6 +63,11 @@ ifneq (,$(filter esp_spi_ram,$(DISABLE_MODULE)))
USEMODULE := $(filter-out esp_spi_ram,$(USEMODULE))
endif
ifneq (,$(filter esp_now esp_wifi esp_spi_ram,$(USEMODULE)))
# the ESP-IDF heap has to be used if SPI RAM is used
USEMODULE += esp_idf_heap
endif
ifneq (,$(filter mtd,$(USEMODULE)))
USEMODULE += esp_idf_spi_flash
endif

View File

@ -116,7 +116,7 @@ endif
# if SPI RAM is enabled, the qout flash mode has to be used
ifneq (,$(filter esp_spi_ram,$(USEMODULE)))
export FLASH_MODE = qout
FLASH_MODE = qout
CFLAGS += -DFLASH_MODE_QOUT=1
else
ifeq ($(FLASH_MODE), qio)