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:
parent
3de55daab1
commit
39d4babf00
3 changed files with 10 additions and 0 deletions
|
@ -104,6 +104,8 @@ The stm32_min_dev board configuration supports the following hardware features:
|
||||||
+-----------+------------+----------------------+
|
+-----------+------------+----------------------+
|
||||||
| SPI | on-chip | spi |
|
| SPI | on-chip | spi |
|
||||||
+-----------+------------+----------------------+
|
+-----------+------------+----------------------+
|
||||||
|
| USB | on-chip | USB device |
|
||||||
|
+-----------+------------+----------------------+
|
||||||
|
|
||||||
Other hardware features are not supported by the Zephyr kernel.
|
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_PB14, STM32F1_PINMUX_FUNC_PB14_SPI2_MASTER_MISO},
|
||||||
{STM32_PIN_PB15, STM32F1_PINMUX_FUNC_PB15_SPI2_MASTER_MOSI},
|
{STM32_PIN_PB15, STM32F1_PINMUX_FUNC_PB15_SPI2_MASTER_MOSI},
|
||||||
#endif /* CONFIG_SPI_2 */
|
#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)
|
static int pinmux_stm32_init(struct device *port)
|
||||||
|
|
|
@ -70,3 +70,7 @@
|
||||||
status = "ok";
|
status = "ok";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&usb {
|
||||||
|
status = "ok";
|
||||||
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue