2021-05-01 16:15:23 -07:00
|
|
|
# Combine the related files for a specific platform and MCU.
|
|
|
|
|
|
|
|
# Target ECU board design
|
2021-05-01 16:45:09 -07:00
|
|
|
BOARDCPPSRC = $(BOARDS_DIR)/hellen/hellen121vag/board_configuration.cpp
|
|
|
|
BOARDINC = $(BOARDS_DIR)/hellen/hellen121vag
|
2021-05-01 16:15:23 -07:00
|
|
|
|
2021-05-01 16:45:09 -07:00
|
|
|
# Set this if you want a default engine type other than normal hellen121vag
|
2021-05-01 16:15:23 -07:00
|
|
|
ifeq ($(DEFAULT_ENGINE_TYPE),)
|
2021-10-24 12:09:17 -07:00
|
|
|
DEFAULT_ENGINE_TYPE = -DDEFAULT_ENGINE_TYPE=HELLEN_121_VAG_4_CYL
|
2021-05-01 16:15:23 -07:00
|
|
|
endif
|
|
|
|
|
2021-09-27 18:45:31 -07:00
|
|
|
# 176 package MCU
|
2021-05-01 16:15:23 -07:00
|
|
|
ifeq ($(LED_CRITICAL_ERROR_BRAIN_PIN),)
|
|
|
|
LED_CRITICAL_ERROR_BRAIN_PIN = -DLED_CRITICAL_ERROR_BRAIN_PIN=GPIOH_8
|
|
|
|
endif
|
|
|
|
|
|
|
|
DDEFS += -DEFI_MAIN_RELAY_CONTROL=TRUE
|
|
|
|
|
|
|
|
DDEFS += -DLED_ERROR_BRAIN_PIN_MODE=INVERTED_OUTPUT
|
|
|
|
DDEFS += -DLED_RUNING_BRAIN_PIN_MODE=INVERTED_OUTPUT
|
|
|
|
DDEFS += -DLED_WARNING_BRAIN_PIN_MODE=INVERTED_OUTPUT
|
|
|
|
DDEFS += -DLED_COMMUNICATION_BRAIN_PIN_MODE=INVERTED_OUTPUT
|
|
|
|
|
|
|
|
# Disable serial ports on this board as UART3 causes a DMA conflict with the SD card
|
2021-11-19 21:39:08 -08:00
|
|
|
DDEFS += -DTS_NO_PRIMARY=1 -DTS_NO_SECONDARY=1
|
2021-05-01 16:15:23 -07:00
|
|
|
|
|
|
|
# Add them all together
|
2021-05-01 16:45:09 -07:00
|
|
|
DDEFS += -DEFI_USE_OSC=TRUE -DFIRMWARE_ID=\"hellen121vag\" $(DEFAULT_ENGINE_TYPE) $(LED_CRITICAL_ERROR_BRAIN_PIN) $(LED_COMMUNICATION_BRAIN_PIN)
|
2021-05-01 16:15:23 -07:00
|
|
|
DDEFS += -DEFI_SOFTWARE_KNOCK=TRUE -DSTM32_ADC_USE_ADC3=TRUE
|
2021-11-07 11:36:46 -08:00
|
|
|
DDEFS += -DEFI_ICU_INPUTS=FALSE -DHAL_TRIGGER_USE_PAL=TRUE
|
2021-05-01 16:15:23 -07:00
|
|
|
# todo: is it broken?
|
|
|
|
DDEFS += -DEFI_LOGIC_ANALYZER=FALSE
|
|
|
|
|
|
|
|
# We are running on Hellen-One hardware!
|
|
|
|
DDEFS += -DHW_HELLEN=1
|
|
|
|
|