2019-12-02 20:54:40 -08:00
|
|
|
# List of all the board related files.
|
2021-01-17 06:32:06 -08:00
|
|
|
BOARDCPPSRC = $(PROJECT_DIR)/config/boards/proteus/board_configuration.cpp \
|
2019-12-17 05:34:56 -08:00
|
|
|
$(PROJECT_DIR)/config/boards/proteus/adc_hack.cpp
|
2021-02-28 13:57:57 -08:00
|
|
|
|
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
|
2021-02-28 13:57:57 -08:00
|
|
|
ifeq ($(PROJECT_CPU),ARCH_STM32F7)
|
2021-01-17 06:32:06 -08:00
|
|
|
PROTEUS_LEGACY = TRUE
|
2020-03-18 07:19:17 -07:00
|
|
|
endif
|
|
|
|
|
2021-03-13 04:26:58 -08:00
|
|
|
ifeq ($(PROJECT_CPU),ARCH_STM32F4)
|
|
|
|
IS_STM32F429 = yes
|
|
|
|
endif
|
|
|
|
|
2019-12-02 20:54:40 -08:00
|
|
|
# Override DEFAULT_ENGINE_TYPE
|
2021-02-07 23:11:44 -08:00
|
|
|
DDEFS += -DEFI_USE_OSC=TRUE
|
2020-12-22 17:50:01 -08:00
|
|
|
DDEFS += -DLED_CRITICAL_ERROR_BRAIN_PIN=GPIOE_3
|
|
|
|
DDEFS += -DFIRMWARE_ID=\"proteus\" -DDEFAULT_ENGINE_TYPE=PROTEUS_DEFAULTS
|
|
|
|
DDEFS += -DEFI_ICU_INPUTS=FALSE -DHAL_TRIGGER_USE_PAL=TRUE
|
|
|
|
DDEFS += -DEFI_LOGIC_ANALYZER=FALSE
|
2020-12-22 18:28:51 -08:00
|
|
|
# todo: refactor HAL_VSS_USE_PAL
|
|
|
|
DDEFS += -DHAL_VSS_USE_PAL=TRUE
|
2021-02-28 13:57:57 -08:00
|
|
|
|
|
|
|
# This stuff doesn't work on H7 yet
|
|
|
|
ifneq ($(PROJECT_CPU),ARCH_STM32H7)
|
|
|
|
DDEFS += -DSTM32_ADC_USE_ADC3=TRUE
|
|
|
|
DDEFS += -DEFI_SOFTWARE_KNOCK=TRUE
|
|
|
|
endif
|
|
|
|
|
2020-12-22 17:50:01 -08:00
|
|
|
DDEFS += -DEFI_CONSOLE_TX_BRAIN_PIN=GPIO_UNASSIGNED -DEFI_CONSOLE_RX_BRAIN_PIN=GPIO_UNASSIGNED
|
|
|
|
|
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
|
2021-01-17 06:32:06 -08:00
|
|
|
|
|
|
|
# Shared variables
|
|
|
|
ALLCPPSRC += $(BOARDCPPSRC)
|
|
|
|
ALLINC += $(BOARDINC)
|