From 597981dd3f49a51e1f521ebcbe286cd17be2f61a Mon Sep 17 00:00:00 2001 From: rusefillc Date: Tue, 11 Apr 2023 10:59:17 -0400 Subject: [PATCH] huh? only:mre_f7 --- firmware/config/boards/microrusefi/board.mk | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/firmware/config/boards/microrusefi/board.mk b/firmware/config/boards/microrusefi/board.mk index 1c83f3aa99..c3d0df0e2e 100644 --- a/firmware/config/boards/microrusefi/board.mk +++ b/firmware/config/boards/microrusefi/board.mk @@ -28,11 +28,15 @@ DDEFS += -DFIRMWARE_ID=\"microRusEFI\" DDEFS += -DEFI_SOFTWARE_KNOCK=TRUE -DSTM32_ADC_USE_ADC3=TRUE DDEFS += $(VAR_DEF_ENGINE_TYPE) -# This board can capture SENT -DDEFS += -DEFI_SENT_SUPPORT=TRUE +# F7 we are running out of flash?! only package goodies into F4 +ifeq ($(PROJECT_CPU),ARCH_STM32F4) + # This board can capture SENT + DDEFS += -DEFI_SENT_SUPPORT=TRUE + + # This board has LIN/K-line interface + DDEFS += -DEFI_KLINE=TRUE +endif -# 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