only: better file name
This commit is contained in:
parent
42d0951492
commit
af913ef788
|
@ -22,7 +22,7 @@ CONFDIR = $(PROJECT_DIR)/hw_layer/ports/at32/at32f4/cfg
|
||||||
|
|
||||||
# This board uses ChibiOS MFS driver on internal flash
|
# This board uses ChibiOS MFS driver on internal flash
|
||||||
DDEFS += -DHAL_USE_EFL=TRUE
|
DDEFS += -DHAL_USE_EFL=TRUE
|
||||||
include $(PROJECT_DIR)/hw_layer/ports/stm32/calibrations_on_flash.mk
|
include $(PROJECT_DIR)/hw_layer/ports/stm32/use_higher_level_flash_api.mk
|
||||||
# This board has chip with dual-bank flash, bank 2 can be flashed in background
|
# This board has chip with dual-bank flash, bank 2 can be flashed in background
|
||||||
DDEFS += -DEFI_FLASH_WRITE_THREAD=TRUE
|
DDEFS += -DEFI_FLASH_WRITE_THREAD=TRUE
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ CONFDIR = $(PROJECT_DIR)/hw_layer/ports/at32/at32f4/cfg
|
||||||
|
|
||||||
# This board uses ChibiOS MFS driver on internal flash
|
# This board uses ChibiOS MFS driver on internal flash
|
||||||
DDEFS += -DHAL_USE_EFL=TRUE
|
DDEFS += -DHAL_USE_EFL=TRUE
|
||||||
include $(PROJECT_DIR)/hw_layer/ports/stm32/calibrations_on_flash.mk
|
include $(PROJECT_DIR)/hw_layer/ports/stm32/use_higher_level_flash_api.mk
|
||||||
# This board has chip with dual-bank flash, bank 2 can be flashed in background
|
# This board has chip with dual-bank flash, bank 2 can be flashed in background
|
||||||
DDEFS += -DEFI_FLASH_WRITE_THREAD=TRUE
|
DDEFS += -DEFI_FLASH_WRITE_THREAD=TRUE
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ DDEFS += -DSNOR_SHARED_BUS=FALSE
|
||||||
DDEFS += -DWSPI_USE_MUTUAL_EXCLUSION=FALSE
|
DDEFS += -DWSPI_USE_MUTUAL_EXCLUSION=FALSE
|
||||||
|
|
||||||
# This board uses ChibiOS MFS driver on internal flash
|
# This board uses ChibiOS MFS driver on internal flash
|
||||||
include $(PROJECT_DIR)/hw_layer/ports/stm32/calibrations_on_flash.mk
|
include $(PROJECT_DIR)/hw_layer/ports/stm32/use_higher_level_flash_api.mk
|
||||||
|
|
||||||
#Serial flash driver
|
#Serial flash driver
|
||||||
include $(PROJECT_DIR)/hw_layer/drivers/flash/sst26f_jedec.mk
|
include $(PROJECT_DIR)/hw_layer/drivers/flash/sst26f_jedec.mk
|
||||||
|
|
|
@ -174,10 +174,13 @@
|
||||||
#define TRIGGER_EXTREME_LOGGING FALSE
|
#define TRIGGER_EXTREME_LOGGING FALSE
|
||||||
|
|
||||||
#ifndef EFI_STORAGE_INT_FLASH
|
#ifndef EFI_STORAGE_INT_FLASH
|
||||||
|
// historically we've started with low-level flash access with our own redundancy logic
|
||||||
|
// todo: migrate to EFI_STORAGE_MFS which provides same functionality and more!
|
||||||
#define EFI_STORAGE_INT_FLASH TRUE
|
#define EFI_STORAGE_INT_FLASH TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef EFI_STORAGE_MFS
|
#ifndef EFI_STORAGE_MFS
|
||||||
|
// todo: this higher level API should replace EFI_STORAGE_INT_FLASH legacy implementation
|
||||||
#define EFI_STORAGE_MFS FALSE
|
#define EFI_STORAGE_MFS FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
# see also 'HAL_USE_EFL' in case of internal flash
|
|
||||||
|
|
||||||
DDEFS += -DEFI_STORAGE_INT_FLASH=FALSE -DEFI_STORAGE_MFS=TRUE
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
# this header is relevant both for modern driver to access internal flash, and for external flash persistence
|
||||||
|
# see also 'HAL_USE_EFL' in case of internal flash
|
||||||
|
|
||||||
|
# do not use legacy implementation to persist calibrations
|
||||||
|
DDEFS += -DEFI_STORAGE_INT_FLASH=FALSE
|
||||||
|
# use higher level API instead
|
||||||
|
DDEFS += -DEFI_STORAGE_MFS=TRUE
|
Loading…
Reference in New Issue