2019-11-03 05:41:14 -08:00
|
|
|
# Combine the related files for a specific platform and MCU.
|
2019-08-01 19:27:23 -07:00
|
|
|
|
2019-11-03 05:41:14 -08:00
|
|
|
# Target ECU board design
|
2023-02-01 11:41:27 -08:00
|
|
|
BOARDCPPSRC = $(BOARD_DIR)/board_configuration.cpp
|
2019-11-03 05:41:14 -08:00
|
|
|
|
2023-02-01 11:41:27 -08:00
|
|
|
BOARDINC = $(BOARD_DIR)
|
2019-08-01 19:27:23 -07:00
|
|
|
|
2022-05-24 13:05:07 -07:00
|
|
|
# see also openblt/board.mk STATUS_LED
|
2022-07-10 21:15:46 -07:00
|
|
|
DDEFS += -DLED_CRITICAL_ERROR_BRAIN_PIN=Gpio::E3
|
2019-11-19 18:56:25 -08:00
|
|
|
|
2020-05-14 16:10:01 -07:00
|
|
|
# *TEMPORARY* breaking TTL thus breaking Bluetooth for microRusEFI in order to enable SPI3 for SD card
|
|
|
|
# *TODO* need to give people the horrible choice between Bluetooth via TTL or SD card via SPI :( horrible choice
|
2022-07-17 23:08:30 -07:00
|
|
|
# PB10/PB11 uses UART3 peripheral and J12/J13 on MRE
|
|
|
|
# we also have PC10/PC11 exposed on J4 but that's same UART3
|
2022-07-10 21:15:46 -07:00
|
|
|
DDEFS += -DEFI_CONSOLE_TX_BRAIN_PIN=Gpio::B10 -DEFI_CONSOLE_RX_BRAIN_PIN=Gpio::B11
|
2020-05-13 21:02:10 -07:00
|
|
|
|
2022-05-02 13:10:19 -07:00
|
|
|
# on MRE 0.6.0 we have SD card on SPI2 which shared channel 3 with USART3
|
|
|
|
# todo: enable serial which would not DMA thus not conflict?
|
2022-05-02 13:37:00 -07:00
|
|
|
DDEFS += -DSTM32_UART_USE_USART3=FALSE -DHAL_USE_UART=FALSE
|
2023-01-23 05:10:23 -08:00
|
|
|
DDEFS += -DEFI_USE_UART_DMA=FALSE
|
2022-05-02 13:10:19 -07:00
|
|
|
|
2022-07-17 23:15:31 -07:00
|
|
|
# maybe a way to disable SPI2 privately
|
|
|
|
#DDEFS += -DSTM32_SPI_USE_SPI2=FALSE
|
|
|
|
|
2022-08-10 21:36:00 -07:00
|
|
|
DDEFS += -DEFI_CJ125=FALSE -DBOARD_L9779_COUNT=0 -DEFI_HD44780_LCD=FALSE -DEFI_LCD=FALSE
|
2020-05-13 21:02:10 -07:00
|
|
|
|
2022-07-10 21:15:46 -07:00
|
|
|
DDEFS += -DFIRMWARE_ID=\"microRusEFI\"
|
|
|
|
DDEFS += -DEFI_SOFTWARE_KNOCK=TRUE -DSTM32_ADC_USE_ADC3=TRUE
|
2022-04-09 15:48:33 -07:00
|
|
|
DDEFS += $(VAR_DEF_ENGINE_TYPE)
|
2020-05-13 21:02:10 -07:00
|
|
|
|
2022-10-19 14:08:15 -07:00
|
|
|
# This board can capture SENT
|
|
|
|
DDEFS += -DEFI_SENT_SUPPORT=TRUE
|
|
|
|
|
2023-03-09 14:25:03 -08:00
|
|
|
# This board has LIN/K-line interface
|
|
|
|
DDEFS += -DEFI_KLINE=TRUE
|
|
|
|
DDEFS += -DKLINE_SERIAL_DEVICE_RX=Gpio::D9 -DKLINE_SERIAL_DEVICE_TX=Gpio::D8
|
|
|
|
DDEFS += -DKLINE_SERIAL_DEVICE=SD3
|
|
|
|
DDEFS += -DSTM32_SERIAL_USE_USART3=TRUE
|
|
|
|
|
2020-12-17 14:12:24 -08:00
|
|
|
# We are running on microRusEFI hardware!
|
|
|
|
DDEFS += -DHW_MICRO_RUSEFI=1
|
2021-01-17 06:32:06 -08:00
|
|
|
|
2022-04-18 11:22:05 -07:00
|
|
|
ifeq ($(PROJECT_CPU),ARCH_STM32F7)
|
|
|
|
DDEFS += -DSHORT_BOARD_NAME=mre_f7
|
|
|
|
else ifeq ($(PROJECT_CPU),ARCH_STM32F4)
|
|
|
|
DDEFS += -DSHORT_BOARD_NAME=mre_f4
|
|
|
|
else
|
|
|
|
$(error Unsupported PROJECT_CPU for microRusEFI: [$(PROJECT_CPU)])
|
|
|
|
endif
|