2023-09-21 08:53:32 -07:00
|
|
|
# hellen-common.mk
|
|
|
|
|
2022-02-03 08:24:31 -08:00
|
|
|
# Combine the related files for a specific platform and MCU.
|
|
|
|
|
|
|
|
# Target ECU board design
|
2024-02-01 04:08:27 -08:00
|
|
|
BOARDCPPSRC += $(BOARDS_DIR)/hellen/hellen_common.cpp
|
2024-02-01 04:46:16 -08:00
|
|
|
|
|
|
|
ifeq (,$(findstring EFI_BOOTLOADER,$(DDEFS)))
|
2024-02-01 04:08:27 -08:00
|
|
|
BOARDCPPSRC += $(BOARDS_DIR)/hellen/hellen_board_id.cpp
|
|
|
|
endif
|
2022-02-03 08:24:31 -08:00
|
|
|
|
2023-06-05 00:06:08 -07:00
|
|
|
BOARDINC += $(BOARDS_DIR)/hellen
|
|
|
|
|
2023-06-04 23:32:14 -07:00
|
|
|
DDEFS += -DLED_PIN_MODE=OM_INVERTED
|
2022-02-03 08:24:31 -08:00
|
|
|
|
|
|
|
# We are running on Hellen-One hardware!
|
|
|
|
DDEFS += -DHW_HELLEN=1
|
2023-12-05 11:33:41 -08:00
|
|
|
|
|
|
|
ifeq ($(RAM_UNUSED_SIZE),)
|
|
|
|
DDEFS += -DRAM_UNUSED_SIZE=100
|
|
|
|
endif
|
2023-12-16 20:41:46 -08:00
|
|
|
|
|
|
|
ifeq ($(ONBOARD_MEMS_TYPE),LIS2DH12)
|
|
|
|
# Same spi is used for SD and Accelerometer
|
|
|
|
DDEFS += -DMMC_USE_MUTUAL_EXCLUSION=TRUE
|
|
|
|
|
|
|
|
# This board has some Accelerometer onboard
|
|
|
|
DDEFS += -DEFI_ONBOARD_MEMS=TRUE
|
|
|
|
EFI_ONBOARD_MEMS_LIS2DH12 = yes
|
|
|
|
DDEFS += -DLSM303AGR_USE_SPI=TRUE -DLSM303AGR_USE_I2C=FALSE -DLSM303AGR_SHARED_SPI=TRUE
|
|
|
|
endif
|