From 2099658d094c3517eb1ded3ff710497042fbc8eb Mon Sep 17 00:00:00 2001 From: Antony Pavlov Date: Sat, 11 May 2019 00:02:50 +0300 Subject: [PATCH] boards/arm/*stm32*: fix USB pinmux USB_DC_STM32 comes from Kconfig. We have to add the CONFIG_ prefix to use USB_DC_STM32 in C code. Signed-off-by: Antony Pavlov --- boards/arm/olimexino_stm32/pinmux.c | 4 ++-- boards/arm/stm32_min_dev/pinmux.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/boards/arm/olimexino_stm32/pinmux.c b/boards/arm/olimexino_stm32/pinmux.c index be5282a1a06432..8736bb6339350a 100644 --- a/boards/arm/olimexino_stm32/pinmux.c +++ b/boards/arm/olimexino_stm32/pinmux.c @@ -45,10 +45,10 @@ static const struct pin_config pinconf[] = { #ifdef CONFIG_PWM_STM32_1 {STM32_PIN_PA8, STM32F1_PINMUX_FUNC_PA8_PWM1_CH1}, #endif /* CONFIG_PWM_STM32_1 */ -#ifdef USB_DC_STM32 +#ifdef CONFIG_USB_DC_STM32 {STM32_PIN_PA11, STM32F1_PINMUX_FUNC_PA11_USB_DM}, {STM32_PIN_PA12, STM32F1_PINMUX_FUNC_PA12_USB_DP}, -#endif /* USB_DC_STM32 */ +#endif /* CONFIG_USB_DC_STM32 */ }; static int pinmux_stm32_init(struct device *port) diff --git a/boards/arm/stm32_min_dev/pinmux.c b/boards/arm/stm32_min_dev/pinmux.c index e375f7edee29d5..cfab65d0d2369d 100644 --- a/boards/arm/stm32_min_dev/pinmux.c +++ b/boards/arm/stm32_min_dev/pinmux.c @@ -45,10 +45,10 @@ static const struct pin_config pinconf[] = { {STM32_PIN_PB14, STM32F1_PINMUX_FUNC_PB14_SPI2_MASTER_MISO}, {STM32_PIN_PB15, STM32F1_PINMUX_FUNC_PB15_SPI2_MASTER_MOSI}, #endif /* CONFIG_SPI_2 */ -#ifdef USB_DC_STM32 +#ifdef CONFIG_USB_DC_STM32 {STM32_PIN_PA11, STM32F1_PINMUX_FUNC_PA11_USB_DM}, {STM32_PIN_PA12, STM32F1_PINMUX_FUNC_PA12_USB_DP}, -#endif /* USB_DC_STM32 */ +#endif /* CONFIG_USB_DC_STM32 */ }; static int pinmux_stm32_init(struct device *port)