2021-08-06 23:46:35 -07:00
|
|
|
# Combine the related files for a specific platform and MCU.
|
|
|
|
|
|
|
|
# Target ECU board design
|
2022-02-03 08:24:31 -08:00
|
|
|
BOARDCPPSRC = $(BOARDS_DIR)/hellen/hellen-nb1/board_configuration.cpp
|
2021-09-27 18:45:31 -07:00
|
|
|
BOARDINC = $(BOARDS_DIR)/hellen/hellen-nb1
|
2021-08-06 23:46:35 -07:00
|
|
|
|
2021-09-27 18:45:31 -07:00
|
|
|
# Set this if you want a default engine type other than normal hellen-nb1
|
2021-08-06 23:46:35 -07:00
|
|
|
ifeq ($(DEFAULT_ENGINE_TYPE),)
|
2021-09-27 19:02:43 -07:00
|
|
|
DEFAULT_ENGINE_TYPE = -DDEFAULT_ENGINE_TYPE=HELLEN_NB1
|
2021-08-06 23:46:35 -07:00
|
|
|
endif
|
|
|
|
|
|
|
|
DDEFS += -DEFI_MAIN_RELAY_CONTROL=TRUE
|
|
|
|
|
|
|
|
# Add them all together
|
2022-02-12 09:35:00 -08:00
|
|
|
DDEFS += -DFIRMWARE_ID=\"hellenNB1\" $(DEFAULT_ENGINE_TYPE)
|
2021-08-06 23:46:35 -07:00
|
|
|
DDEFS += -DEFI_SOFTWARE_KNOCK=TRUE -DSTM32_ADC_USE_ADC3=TRUE
|
2022-02-09 19:47:54 -08:00
|
|
|
DDEFS += -DHAL_TRIGGER_USE_PAL=TRUE
|
2022-02-09 19:46:13 -08:00
|
|
|
|
2022-03-03 18:06:17 -08:00
|
|
|
include $(BOARDS_DIR)/hellen/hellen-common144.mk
|
2021-08-06 23:46:35 -07:00
|
|
|
|
2021-11-14 13:07:56 -08:00
|
|
|
# Enable serial pins on expansion header
|
2022-03-03 18:06:17 -08:00
|
|
|
DDEFS += $(PRIMARY_COMMUNICATION_PORT_USART2)
|