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:
parent
e869fbd30f
commit
3230326652
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user