Skip to content

Commit

Permalink
boards/arm/*stm32*: fix USB pinmux
Browse files Browse the repository at this point in the history
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 27, 2019
1 parent 7b3dc92 commit 2099658
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions boards/arm/olimexino_stm32/pinmux.c
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions boards/arm/stm32_min_dev/pinmux.c
Expand Up @@ -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)
Expand Down

0 comments on commit 2099658

Please sign in to comment.