Skip to content
Permalink
Browse files

board: stm32_min_dev: Add USB support

Add support USB to stm32_min_dev board

Signed-off-by: Harry Jiang <explora26@gmail.com>
  • Loading branch information...
explora26 authored and galak committed Dec 4, 2018
1 parent 3de55da commit 39d4babf0092bce872b204a7e66eee9bdf48f67d
@@ -104,6 +104,8 @@ The stm32_min_dev board configuration supports the following hardware features:
+-----------+------------+----------------------+
| SPI | on-chip | spi |
+-----------+------------+----------------------+
| USB | on-chip | USB device |
+-----------+------------+----------------------+

Other hardware features are not supported by the Zephyr kernel.

@@ -45,6 +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
{STM32_PIN_PA11, STM32F1_PINMUX_FUNC_PA11_USB_DM},
{STM32_PIN_PA12, STM32F1_PINMUX_FUNC_PA12_USB_DP},
#endif /* USB_DC_STM32 */
};

static int pinmux_stm32_init(struct device *port)
@@ -70,3 +70,7 @@
status = "ok";
};
};

&usb {
status = "ok";
};

0 comments on commit 39d4bab

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