2021-02-06 10:50:34 -08:00
|
|
|
BOARD_DIR = $(PROJECT_DIR)/config/boards/$(PROJECT_BOARD)
|
|
|
|
|
|
|
|
# List of all the board related files.
|
|
|
|
BOARDCPPSRC = $(BOARD_DIR)/board_configuration.cpp
|
|
|
|
|
|
|
|
# Required include directories
|
|
|
|
BOARDINC = $(BOARD_DIR)
|
|
|
|
BOARDINC += $(BOARD_DIR)/config/controllers/algo
|
|
|
|
|
|
|
|
# Override LD script
|
|
|
|
ifeq ($(USE_BOOTLOADER),yes)
|
|
|
|
# include Prometheus bootloader code
|
|
|
|
BOOTLOADERINC = $(PROJECT_DIR)/bootloader/subaru_eg33
|
|
|
|
endif
|
|
|
|
|
|
|
|
#LED
|
|
|
|
LED_CRITICAL_ERROR_BRAIN_PIN = -DLED_CRITICAL_ERROR_BRAIN_PIN=GPIOG_7
|
|
|
|
|
|
|
|
# We are running on Subaru EG33 hardware!
|
|
|
|
DDEFS += -DHW_SUBARU_EG33=1
|
|
|
|
|
|
|
|
# Override DEFAULT_ENGINE_TYPE
|
|
|
|
# Fix
|
|
|
|
DDEFS += -DDEFAULT_ENGINE_TYPE=SUBARUEG33_DEFAULTS -DSTM32F765xx $(LED_CRITICAL_ERROR_BRAIN_PIN)
|
|
|
|
|
2021-02-18 15:18:13 -08:00
|
|
|
#Some options override
|
|
|
|
DDEFS += -DHAL_TRIGGER_USE_PAL=TRUE
|
|
|
|
DDEFS += -DHAL_USE_UART=FALSE
|
|
|
|
DDEFS += -DUART_USE_WAIT=FALSE
|
|
|
|
|
2021-02-06 10:50:34 -08:00
|
|
|
# Shared variables
|
2021-02-10 16:38:24 -08:00
|
|
|
ALLCSRC += $(BOARDSRC)
|
2021-02-06 10:50:34 -08:00
|
|
|
ALLCPPSRC += $(BOARDCPPSRC)
|
|
|
|
ALLINC += $(BOARDINC)
|