rusefi/firmware/config/boards/f407-discovery/board.mk

29 lines
769 B
Makefile
Raw Normal View History

# List of all the board related files.
2022-02-06 18:47:13 -08:00
BOARDCPPSRC = $(PROJECT_DIR)/config/boards/f407-discovery/board_extra.cpp
# MCU defines
DDEFS += -DSTM32F407xx
ifeq ($(VAR_DEF_ENGINE_TYPE),)
VAR_DEF_ENGINE_TYPE = -DDEFAULT_ENGINE_TYPE=DEFAULT_FRANKENSO
2022-02-09 17:59:55 -08:00
endif
2022-02-26 19:23:49 -08:00
# here we use different names for env variable and macro name in order to reduce confusion. overall this is about Frankenso builds defining FIRMWARE_ID
ifeq ($(FW_ID_ENV),)
DDEFS += -DFIRMWARE_ID=\"stm32f407vg\"
else
DDEFS += -D$(FW_ID_ENV)
endif
# See also ts_show_critical_led
DDEFS += -DFLEXIBLE_CRITICAL_LED=1
# We are running on Frankenso hardware!
DDEFS += -DHW_FRANKENSO=1
2022-02-09 18:08:50 -08:00
DDEFS += $(DEFAULT_ENGINE_TYPE)
2022-02-09 16:49:41 -08:00
2022-02-06 14:23:07 -08:00
DDEFS += -DSTM32_I2C_USE_I2C3=TRUE
ifndef IS_RE_BOOTLOADER
DDEFS += -DHAL_USE_EEPROM=TRUE
endif