calibrations_on_flash.mk

This commit is contained in:
rusEFI LLC 2024-04-28 10:27:38 -04:00
parent bdc1a62883
commit b729d85e83
6 changed files with 18 additions and 18 deletions

View File

@ -21,7 +21,8 @@ BOARDINC = $(CHIBIOS)/os/hal/boards/AT_START_F435/
CONFDIR = $(PROJECT_DIR)/hw_layer/ports/at32/at32f4/cfg
# This board uses ChibiOS MFS driver on internal flash
DDEFS += -DEFI_STORAGE_INT_FLASH=FLASE -DHAL_USE_EFL=TRUE -DEFI_STORAGE_MFS=TRUE
DDEFS += -DHAL_USE_EFL=TRUE
include $(PROJECT_DIR)/hw_layer/ports/stm32/calibrations_on_flash.mk
# This board has chip with dual-bank flash, bank 2 can be flashed in background
DDEFS += -DEFI_FLASH_WRITE_THREAD=TRUE

View File

@ -25,7 +25,8 @@ USE_FATFS = no
CONFDIR = $(PROJECT_DIR)/hw_layer/ports/at32/at32f4/cfg
# This board uses ChibiOS MFS driver on internal flash
DDEFS += -DEFI_STORAGE_INT_FLASH=FLASE -DHAL_USE_EFL=TRUE -DEFI_STORAGE_MFS=TRUE
DDEFS += -DHAL_USE_EFL=TRUE
include $(PROJECT_DIR)/hw_layer/ports/stm32/calibrations_on_flash.mk
# This board has chip with dual-bank flash, bank 2 can be flashed in background
DDEFS += -DEFI_FLASH_WRITE_THREAD=TRUE

View File

@ -30,5 +30,15 @@ DDEFS += -DEFI_EMBED_INI_MSD=TRUE
# Shared variables
ALLINC += $(BOARDINC)
#Serial flash support
# this board has external QSPI NOR flash
# see also *STM32_WSPI*
DDEFS += -DHAL_USE_WSPI=TRUE
DDEFS += -DSNOR_SHARED_BUS=FALSE
DDEFS += -DWSPI_USE_MUTUAL_EXCLUSION=FALSE
# This board uses ChibiOS MFS driver on internal flash
include $(PROJECT_DIR)/hw_layer/ports/stm32/calibrations_on_flash.mk
#Serial flash driver
include $(PROJECT_DIR)/hw_layer/drivers/flash/sst26f_jedec.mk

View File

@ -99,12 +99,3 @@
#define RPM_LOW_THRESHOLD 8 // RPM=8 is an empirical lower sensitivity threshold of MAX9926 for 60-2
#define NO_RPM_EVENTS_TIMEOUT_SECS 5 // (RPM < 12)
#ifndef EFI_BOOTLOADER // bootloader needs INT_FLASH and doesn't have MFS
/* this board has external QSPI NOR flash */
#undef EFI_STORAGE_MFS
#define EFI_STORAGE_MFS TRUE
#undef EFI_STORAGE_INT_FLASH
#define EFI_STORAGE_INT_FLASH FALSE
#endif // EFI_BOOTLOADER

View File

@ -13,12 +13,6 @@
/* this file is exist just to include mcuconf.h from THIS directory */
#include "mcuconf.h"
#define HAL_USE_WSPI TRUE
#define SNOR_SHARED_BUS FALSE
#define WSPI_USE_MUTUAL_EXCLUSION FALSE
#include "../../../hw_layer/ports/stm32/stm32f7/cfg/halconf.h"
#endif /* _HALCONF_SUBARUEG33_H_ */

View File

@ -0,0 +1,3 @@
# see also 'HAL_USE_EFL' in case of internal flash
DDEFS += -DEFI_STORAGE_INT_FLASH=FLASE -DEFI_STORAGE_MFS=TRUE