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
|
2021-04-28 17:25:33 -07:00
|
|
|
DDEFS += -DLED_CRITICAL_ERROR_BRAIN_PIN=GPIOG_7
|
2021-02-06 10:50:34 -08:00
|
|
|
|
|
|
|
# We are running on Subaru EG33 hardware!
|
|
|
|
DDEFS += -DHW_SUBARU_EG33=1
|
|
|
|
|
|
|
|
# Override DEFAULT_ENGINE_TYPE
|
2021-04-28 17:25:33 -07:00
|
|
|
DDEFS += -DDEFAULT_ENGINE_TYPE=SUBARUEG33_DEFAULTS
|
2021-02-06 10:50:34 -08:00
|
|
|
|
2021-02-18 15:18:13 -08:00
|
|
|
#Some options override
|
2021-08-14 05:45:30 -07:00
|
|
|
#ICU vs PAL/EXTI
|
2021-02-18 15:18:13 -08:00
|
|
|
DDEFS += -DHAL_TRIGGER_USE_PAL=TRUE
|
2021-08-14 05:45:30 -07:00
|
|
|
DDEFS += -DEFI_ICU_INPUTS=FALSE
|
|
|
|
DDEFS += -DEFI_LOGIC_ANALYZER=FALSE
|
|
|
|
DDEFS += -DHAL_VSS_USE_PAL=TRUE
|
|
|
|
|
2021-02-18 15:18:13 -08:00
|
|
|
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)
|