2021-01-08 09:50:13 -08:00
|
|
|
# Combine the related files for a specific platform and MCU.
|
|
|
|
|
|
|
|
# Target ECU board design
|
2021-01-17 06:32:06 -08:00
|
|
|
BOARDCPPSRC = $(BOARDS_DIR)/hellen/hellen72/board_configuration.cpp
|
2021-01-08 09:50:13 -08:00
|
|
|
BOARDINC = $(BOARDS_DIR)/hellen/hellen72
|
|
|
|
|
|
|
|
# Set this if you want a default engine type other than normal Hellen72
|
|
|
|
ifeq ($(DEFAULT_ENGINE_TYPE),)
|
|
|
|
DEFAULT_ENGINE_TYPE = -DDEFAULT_ENGINE_TYPE=HELLEN_NB2
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(LED_CRITICAL_ERROR_BRAIN_PIN),)
|
|
|
|
LED_CRITICAL_ERROR_BRAIN_PIN = -DLED_CRITICAL_ERROR_BRAIN_PIN=GPIOH_8
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(LED_COMMUNICATION_BRAIN_PIN),)
|
|
|
|
LED_COMMUNICATION_BRAIN_PIN = -DEFI_COMMUNICATION_PIN=GPIOH_10
|
|
|
|
endif
|
|
|
|
|
2021-02-17 06:50:28 -08:00
|
|
|
DDEFS += -DEFI_MAIN_RELAY_CONTROL=TRUE
|
|
|
|
|
2021-02-17 07:16:21 -08:00
|
|
|
DDEFS += -DLED_ERROR_BRAIN_PIN_MODE=INVERTED_OUTPUT
|
|
|
|
DDEFS += -DLED_RUNING_BRAIN_PIN_MODE=INVERTED_OUTPUT
|
|
|
|
DDEFS += -DLED_WARNING_BRAIN_PIN_MODE=INVERTED_OUTPUT
|
2021-02-17 07:18:46 -08:00
|
|
|
DDEFS += -DLED_COMMUNICATION_BRAIN_PIN_MODE=INVERTED_OUTPUT
|
2021-02-17 07:16:21 -08:00
|
|
|
|
2021-02-18 13:16:45 -08:00
|
|
|
DDEFS += -DSTM32_UART_USE_USART3=FALSE
|
2021-02-18 14:04:51 -08:00
|
|
|
DDEFS += -DPRIMARY_UART_DMA_MODE=FALSE
|
2021-02-18 13:16:45 -08:00
|
|
|
|
2021-01-08 09:50:13 -08:00
|
|
|
# Add them all together
|
2021-02-07 23:11:44 -08:00
|
|
|
DDEFS += -DEFI_USE_OSC=TRUE -DFIRMWARE_ID=\"hellen72\" $(DEFAULT_ENGINE_TYPE) $(LED_CRITICAL_ERROR_BRAIN_PIN) $(LED_COMMUNICATION_BRAIN_PIN)
|
2021-01-08 09:50:13 -08:00
|
|
|
# -DEFI_SOFTWARE_KNOCK=TRUE -DSTM32_ADC_USE_ADC3=TRUE
|
2021-01-21 07:22:29 -08:00
|
|
|
DDEFS += -DEFI_ICU_INPUTS=FALSE -DHAL_TRIGGER_USE_PAL=TRUE -DHAL_VSS_USE_PAL=TRUE
|
|
|
|
# todo: is it broken?
|
|
|
|
DDEFS += -DEFI_LOGIC_ANALYZER=FALSE
|
2021-01-08 09:50:13 -08:00
|
|
|
|
|
|
|
# We are running on Hellen-One hardware!
|
|
|
|
DDEFS += -DHW_HELLEN=1
|
2021-01-17 06:32:06 -08:00
|
|
|
|
|
|
|
# Shared variables
|
|
|
|
ALLCPPSRC += $(BOARDCPPSRC)
|
|
|
|
ALLINC += $(BOARDINC)
|