2022-12-01 19:52:26 -08: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
|
2022-12-01 19:52:26 -08:00
|
|
|
DDEFS += -DEFI_MAIN_RELAY_CONTROL=TRUE
|
|
|
|
|
2023-06-29 14:41:27 -07:00
|
|
|
# Turn off stuff we don't have/need
|
|
|
|
DDEFS += -DBOARD_TLE8888_COUNT=0
|
2022-12-01 19:52:26 -08:00
|
|
|
|
|
|
|
# Add them all together
|
|
|
|
DDEFS += -DFIRMWARE_ID=\"AlphaX-8chan\"
|
|
|
|
DDEFS += -DEFI_SOFTWARE_KNOCK=TRUE -DSTM32_ADC_USE_ADC3=TRUE
|
|
|
|
|
2022-12-07 07:14:16 -08:00
|
|
|
DDEFS += -DADC_MUX_PIN=Gpio::B3
|
|
|
|
|
2022-12-01 19:52:26 -08:00
|
|
|
include $(BOARDS_DIR)/hellen/hellen-common144.mk
|
|
|
|
|
2023-06-20 21:35:17 -07:00
|
|
|
ifeq ($(PROJECT_CPU),ARCH_STM32F7)
|
|
|
|
# TODO: why do I struggle to fit into flash? compare with Proteus
|
|
|
|
DDEFS += -DCH_DBG_ENABLE_ASSERTS=FALSE
|
2023-06-29 14:41:27 -07:00
|
|
|
DDEFS += -DENABLE_PERF_TRACE=FALSE
|
2023-06-20 21:35:17 -07:00
|
|
|
else ifeq ($(PROJECT_CPU),ARCH_STM32F4)
|
2023-06-29 14:41:27 -07:00
|
|
|
# This board has trigger scope hardware!
|
|
|
|
DDEFS += -DTRIGGER_SCOPE
|
2023-06-20 21:35:17 -07:00
|
|
|
# serial ports only on F4
|
2023-06-20 17:09:44 -07:00
|
|
|
DDEFS += $(PRIMARY_COMMUNICATION_PORT_USART2)
|
2023-06-20 21:35:17 -07:00
|
|
|
else
|
|
|
|
$(error Unsupported PROJECT_CPU [$(PROJECT_CPU)])
|
2023-06-20 17:09:44 -07:00
|
|
|
endif
|
2022-12-01 19:52:26 -08:00
|
|
|
|
2023-08-18 15:41:17 -07:00
|
|
|
DDEFS += -DSHORT_BOARD_NAME=alphax-8chan -DSTATIC_BOARD_ID=STATIC_BOARD_ID_ALPHAX_8CHAN
|
2023-09-02 18:22:55 -07:00
|
|
|
DDEFS += -DHW_HELLEN_8CHAN=1
|