From 4f15fc61797e52f06f1f2f7505a6fca88395c897 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Wed, 2 Mar 2022 18:52:00 -0500 Subject: [PATCH] https://github.com/rusefi/rusefi/pull/3976 maybe probably help --- .../hw_layer/ports/stm32/mcuconf_common_f4_f7.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/firmware/hw_layer/ports/stm32/mcuconf_common_f4_f7.h b/firmware/hw_layer/ports/stm32/mcuconf_common_f4_f7.h index 8d4465de97..f3a57f85ce 100644 --- a/firmware/hw_layer/ports/stm32/mcuconf_common_f4_f7.h +++ b/firmware/hw_layer/ports/stm32/mcuconf_common_f4_f7.h @@ -225,12 +225,25 @@ /* * SERIAL driver system settings. */ +#ifndef STM32_SERIAL_USE_USART1 #define STM32_SERIAL_USE_USART1 TRUE +#endif + +#ifndef STM32_SERIAL_USE_USART2 #define STM32_SERIAL_USE_USART2 FALSE +#endif + +#ifndef STM32_SERIAL_USE_USART3 #define STM32_SERIAL_USE_USART3 FALSE +#endif + #define STM32_SERIAL_USE_UART4 FALSE #define STM32_SERIAL_USE_UART5 FALSE + +#ifndef STM32_SERIAL_USE_USART6 #define STM32_SERIAL_USE_USART6 TRUE +#endif + #define STM32_SERIAL_USE_UART7 FALSE #define STM32_SERIAL_USE_UART8 FALSE #define STM32_IRQ_USART1_PRIORITY (PRECISE_SCHEDULING_TIMER_PRIORITY + 2)