only:w25q_single_spi
This commit is contained in:
parent
231535eba5
commit
6e9e763026
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue