rusefi/firmware/config/boards/hellen/alphax-8chan/board.mk

33 lines
1006 B
Makefile
Raw Normal View History

# Combine the related files for a specific platform and MCU.
# Target ECU board design
BOARDCPPSRC = $(BOARD_DIR)/board_configuration.cpp
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
# 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
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
DDEFS += -DSHORT_BOARD_NAME=alphax-8chan -DSTATIC_BOARD_ID=STATIC_BOARD_ID_ALPHAX_8CHAN
DDEFS += -DHW_HELLEN_8CHAN=1