2019-12-02 20:54:40 -08:00
|
|
|
# List of all the board related files.
|
|
|
|
BOARDSRC = $(CHIBIOS)/os/hal/boards/ST_NUCLEO144_F767ZI/board.c
|
2019-12-17 05:34:56 -08:00
|
|
|
BOARDSRC_CPP = $(PROJECT_DIR)/config/boards/proteus/board_configuration.cpp \
|
|
|
|
$(PROJECT_DIR)/config/boards/proteus/adc_hack.cpp
|
2020-08-28 18:13:50 -07:00
|
|
|
BOARDINC = $(PROJECT_DIR)/config/boards/proteus
|
2019-12-02 20:54:40 -08:00
|
|
|
|
2020-03-18 07:19:17 -07:00
|
|
|
# Target processor details
|
|
|
|
ifeq ($(PROJECT_CPU),ARCH_STM32F4)
|
|
|
|
MCU_DEFS = -DSTM32F407xx
|
|
|
|
BOARDSRC = $(CHIBIOS)/os/hal/boards/ST_STM32F4_DISCOVERY/board.c
|
|
|
|
BOARDINC += $(PROJECT_DIR)/config/stm32f4ems # For board.h
|
|
|
|
BOARDINC += $(BOARDS_DIR)/st_stm32f4
|
|
|
|
LDSCRIPT= $(BOARDS_DIR)/prometheus/STM32F405xG.ld
|
|
|
|
else
|
|
|
|
MCU_DEFS = -DSTM32F767xx
|
|
|
|
BOARDSRC = $(CHIBIOS)/os/hal/boards/ST_NUCLEO144_F767ZI/board.c
|
2020-08-28 18:13:50 -07:00
|
|
|
BOARDINC += $(BOARDS_DIR)/nucleo_f767 # For board.h
|
2020-03-18 07:19:17 -07:00
|
|
|
BOARDINC += $(PROJECT_DIR)/config/stm32f7ems # efifeatures/halconf/chconf.h
|
|
|
|
LDSCRIPT= $(BOARDS_DIR)/nucleo_f767/STM32F76xxI.ld
|
2020-04-25 09:07:57 -07:00
|
|
|
CONFDIR=config/stm32f4ems
|
2020-05-10 06:19:01 -07:00
|
|
|
PROTEUS_LEGACY=TRUE
|
2020-03-18 07:19:17 -07:00
|
|
|
endif
|
|
|
|
|
2019-12-02 20:54:40 -08:00
|
|
|
# Override DEFAULT_ENGINE_TYPE
|
2020-12-22 14:13:05 -08:00
|
|
|
DDEFS += $(MCU_DEFS) -DEFI_USE_OSC=TRUE -DLED_CRITICAL_ERROR_BRAIN_PIN=GPIOE_3 -DFIRMWARE_ID=\"proteus\" -DDEFAULT_ENGINE_TYPE=PROTEUS_DEFAULTS -DSTM32_ADC_USE_ADC3=TRUE -DEFI_INCLUDE_ENGINE_PRESETS=FALSE -DEFI_ICU_INPUTS=FALSE -DHAL_TRIGGER_USE_PAL=TRUE -DEFI_VEHICLE_SPEED=FALSE -DEFI_LOGIC_ANALYZER=FALSE -DEFI_SOFTWARE_KNOCK=TRUE -DEFI_CONSOLE_TX_BRAIN_PIN=GPIO_UNASSIGNED -DEFI_CONSOLE_RX_BRAIN_PIN=GPIO_UNASSIGNED
|
2020-05-10 06:19:01 -07:00
|
|
|
|
2020-12-17 14:12:24 -08:00
|
|
|
# We are running on Proteus hardware!
|
|
|
|
DDEFS += -DHW_PROTEUS=1
|
|
|
|
|
2020-05-10 06:19:01 -07:00
|
|
|
# Proteus <=v0.2 needs ADC hack - vbatt is on ADC3
|
|
|
|
ifeq ($(PROTEUS_LEGACY),TRUE)
|
|
|
|
DDEFS += -DUSE_ADC3_VBATT_HACK
|
|
|
|
endif
|