board: stm32_min_dev: Add USB support

Add support USB to stm32_min_dev board

Signed-off-by: Harry Jiang <explora26@gmail.com>
This commit is contained in:
Harry Jiang 2018-12-04 11:34:31 +08:00 committed by Kumar Gala
commit 39d4babf00
3 changed files with 10 additions and 0 deletions

View file

@ -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.

View file

@ -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)

View file

@ -70,3 +70,7 @@
status = "ok";
};
};
&usb {
status = "ok";
};