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)