2021-04-18 07:15:06 -07:00
|
|
|
# Combine the related files for a specific platform and MCU.
|
|
|
|
|
|
|
|
# Target ECU board design
|
2023-02-01 11:41:27 -08:00
|
|
|
BOARDCPPSRC = $(BOARD_DIR)/board_configuration.cpp
|
2021-04-18 19:03:43 -07:00
|
|
|
# Set this if you want a default engine type other than normal hellen64_miataNA6_94
|
2022-04-09 15:48:33 -07:00
|
|
|
ifeq ($(VAR_DEF_ENGINE_TYPE),)
|
2023-06-18 08:05:44 -07:00
|
|
|
VAR_DEF_ENGINE_TYPE = -DDEFAULT_ENGINE_TYPE=engine_type_e::HELLEN_NA6
|
2021-04-18 07:15:06 -07:00
|
|
|
endif
|
|
|
|
|
|
|
|
DDEFS += -DEFI_MAIN_RELAY_CONTROL=TRUE
|
|
|
|
|
|
|
|
# Add them all together
|
2022-04-09 15:48:33 -07:00
|
|
|
DDEFS += -DFIRMWARE_ID=\"hellenNA6\" $(VAR_DEF_ENGINE_TYPE)
|
2021-04-20 19:07:09 -07:00
|
|
|
DDEFS += -DEFI_SOFTWARE_KNOCK=TRUE -DSTM32_ADC_USE_ADC3=TRUE
|
2022-02-09 19:46:13 -08:00
|
|
|
|
2022-11-09 11:41:21 -08:00
|
|
|
# https://github.com/rusefi/hellenNA6_issues/issues/35 hack :(
|
|
|
|
DDEFS += -DDISABLE_PIN_STATE_VALIDATION=TRUE
|
|
|
|
|
2023-08-18 15:41:17 -07:00
|
|
|
DDEFS += -DSHORT_BOARD_NAME=hellenNA6 -DSTATIC_BOARD_ID=STATIC_BOARD_ID_HELLEN_NA6
|
2021-04-18 07:15:06 -07:00
|
|
|
|
2022-02-09 20:12:10 -08:00
|
|
|
include $(BOARDS_DIR)/hellen/hellen-common176.mk
|