Skip to content
Permalink
Browse files

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 <antonynpavlov@gmail.com>
  • Loading branch information...
frantony authored and nashif committed May 10, 2019
1 parent 7b3dc92 commit 2099658d094c3517eb1ded3ff710497042fbc8eb
Showing with 4 additions and 4 deletions.
  1. +2 −2 boards/arm/olimexino_stm32/pinmux.c
  2. +2 −2 boards/arm/stm32_min_dev/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)
@@ -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)

0 comments on commit 2099658

Please sign in to comment.
You can’t perform that action at this time.