From 38c3f119b1200bce09002349169710ad690ca126 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sun, 21 Jun 2020 23:22:45 -0400 Subject: [PATCH] UART DMA for "primary" connector #1528 --- firmware/bootloader/bootloader.mk | 4 ++++ firmware/bootloader/src/Makefile | 2 ++ firmware/config/stm32f4ems/efifeatures.h | 3 +++ 3 files changed, 9 insertions(+) diff --git a/firmware/bootloader/bootloader.mk b/firmware/bootloader/bootloader.mk index 843d5abf75..8befdc235c 100644 --- a/firmware/bootloader/bootloader.mk +++ b/firmware/bootloader/bootloader.mk @@ -1,3 +1,7 @@ +# +# TODO: is this file used at all? +# + # Added if USE_BOOTLOADER=yes in Makefile BOOTLOADERSRC= $(PROJECT_DIR)/bootloader/bootloader_storage.c diff --git a/firmware/bootloader/src/Makefile b/firmware/bootloader/src/Makefile index d465949857..6e5a232229 100644 --- a/firmware/bootloader/src/Makefile +++ b/firmware/bootloader/src/Makefile @@ -21,6 +21,8 @@ DDEFS += -DHAL_USE_ADC=FALSE -DHAL_USE_CAN=FALSE -DHAL_USE_EXT=FALSE -DHAL_USE_G #disable ChibiOS flsah driver and prevent header from include DDEFS += -DHAL_USE_FLASH=FALSE +DDEFS += -DPRIMARY_UART_DMA_MODE=FALSE + # disable USB (The bootloader has currently UART support only) DDEFS += -DEFI_USB_SERIAL=FALSE -DHAL_USE_SERIAL_USB=FALSE -DHAL_USE_USB=FALSE -DHAL_USE_USB_MSD=FALSE # disable CAN diff --git a/firmware/config/stm32f4ems/efifeatures.h b/firmware/config/stm32f4ems/efifeatures.h index 49561ce165..f64abbb8b5 100644 --- a/firmware/config/stm32f4ems/efifeatures.h +++ b/firmware/config/stm32f4ems/efifeatures.h @@ -346,7 +346,10 @@ * in mcuconf.h */ #define TS_UART_DMA_MODE FALSE + +#ifndef PRIMARY_UART_DMA_MODE #define PRIMARY_UART_DMA_MODE TRUE +#endif //#define TS_UART_DEVICE (&UARTD3) //#define TS_SERIAL_DEVICE (&SD3)