only:w25q_single_spi

This commit is contained in:
Andrey 2024-07-29 10:37:06 -04:00
parent 231535eba5
commit 6e9e763026
2 changed files with 7 additions and 6 deletions

View File

@ -60,15 +60,11 @@ endif
ifeq ($(BOARD_HAS_EXT_FLASH),yes)
# MRE has optional external SPI flash that uses ChibiOS MFS driver
include $(PROJECT_DIR)/hw_layer/ports/stm32/use_higher_level_flash_api.mk
include $(PROJECT_DIR)/hw_layer/drivers/flash/w25q/w25q.mk
# Standart SPI
DDEFS += -DSNOR_BUS_DRIVER=SNOR_BUS_DRIVER_SPI
DDEFS += -DW25Q_BUS_MODE=W25Q_BUS_MODE_WSPI1L
DDEFS += -DW25Q_SWITCH_WIDTH=FALSE
include $(PROJECT_DIR)/hw_layer/drivers/flash/w25q/w25q_single_spi.mk
# Otherwise writeToFlashNow() is called from ISR context (slow timer callback)
DDEFS += -DEFI_FLASH_WRITE_THREAD=TRUE
DDEFS += -DEFI_STORAGE_MFS_EXTERNAL=TRUE
# Move persistentState out of CCM as it should be accessable by DMA
# Move persistentState out of CCM as it should be accessible by DMA
DDEFS += -DPERSISTENT_LOCATION=""
# Move LUA heap to CCM
DDEFS += -DLUA_HEAD_RAM_SECTION=CCM_OPTIONAL

View File

@ -0,0 +1,5 @@
include $(PROJECT_DIR)/hw_layer/drivers/flash/w25q/w25q.mk
# Standard SPI
DDEFS += -DSNOR_BUS_DRIVER=SNOR_BUS_DRIVER_SPI
DDEFS += -DW25Q_BUS_MODE=W25Q_BUS_MODE_WSPI1L
DDEFS += -DW25Q_SWITCH_WIDTH=FALSE