From 5c38fafee4da9d2702cc58a4af6050b1d4d9cc1b Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Sun, 4 Dec 2022 16:06:14 +0100 Subject: [PATCH] boards/stm32f723e-disco: fix periph_uart_hw_fc use Enabling module `periph_uart_hw_fc` makes only sense if module `periph_uart` is used. --- boards/stm32f723e-disco/Kconfig | 2 +- boards/stm32f723e-disco/Makefile.dep | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/boards/stm32f723e-disco/Kconfig b/boards/stm32f723e-disco/Kconfig index 86b6923c01..1fc13de566 100644 --- a/boards/stm32f723e-disco/Kconfig +++ b/boards/stm32f723e-disco/Kconfig @@ -33,7 +33,7 @@ config BOARD_STM32F723E_DISCO select HAVE_SAUL_GPIO select HAVE_FT5X06 - select MODULE_PERIPH_UART_HW_FC if TEST_KCONFIG && HAS_PERIPH_UART_HW_FC + select MODULE_PERIPH_UART_HW_FC if TEST_KCONFIG && HAS_PERIPH_UART_HW_FC && MODULE_PERIPH_UART # Workaround due to stdout only working with stdin enabled select MODULE_STDIN if TEST_KCONFIG diff --git a/boards/stm32f723e-disco/Makefile.dep b/boards/stm32f723e-disco/Makefile.dep index e7a10d4824..c58bbadcdb 100644 --- a/boards/stm32f723e-disco/Makefile.dep +++ b/boards/stm32f723e-disco/Makefile.dep @@ -1,4 +1,6 @@ -USEMODULE += periph_uart_hw_fc +ifneq (,$(filter periph_uart,$(USEMODULE))) + USEMODULE += periph_uart_hw_fc +endif ifneq (,$(filter saul_default,$(USEMODULE))) USEMODULE += saul_gpio