Skip to content
Permalink
Browse files

boards/arm/olimex_stm32_e407: enable USB

Tested with samples/subsys/usb/cdc_acm.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
  • Loading branch information...
frantony authored and MaureenHelm committed May 16, 2019
1 parent 6b46d38 commit 925183cbccbacf22c14c053ab05a3b23926d2e94
@@ -31,18 +31,22 @@ Supported Features
The olimex_stm32_e407 board configuration supports the following
hardware features:

+-----------+------------+----------------------+
| Interface | Controller | Driver/Component |
+===========+============+======================+
| NVIC | on-chip | nested vectored |
| | | interrupt controller |
+-----------+------------+----------------------+
| SYSTICK | on-chip | system clock |
+-----------+------------+----------------------+
| UART | on-chip | serial port |
+-----------+------------+----------------------+
| GPIO | on-chip | gpio |
+-----------+------------+----------------------+
+------------+------------+----------------------+
| Interface | Controller | Driver/Component |
+============+============+======================+
| NVIC | on-chip | nested vectored |
| | | interrupt controller |
+------------+------------+----------------------+
| SYSTICK | on-chip | system clock |
+------------+------------+----------------------+
| UART | on-chip | serial port |
+------------+------------+----------------------+
| GPIO | on-chip | gpio |
+------------+------------+----------------------+
| USB OTG FS | on-chip | USB device |
+------------+------------+----------------------+
| USB OTG HS | on-chip | USB device |
+------------+------------+----------------------+

Other hardware features are not supported by the Zephyr kernel.

@@ -65,3 +65,12 @@
&rtc {
status = "ok";
};

/* Only one interface should be enabled at a time: usbotg_fs or usbotg_hs */
usb_otg1: &usbotg_fs {
status = "disabled";
};

usb_otg2: &usbotg_hs {
status = "ok";
};
@@ -11,3 +11,4 @@ flash: 1024
supported:
- rtc
- counter
- usb_device
@@ -41,8 +41,14 @@ static const struct pin_config pinconf[] = {
{STM32_PIN_PG14, STM32F4_PINMUX_FUNC_PG14_ETH},
#endif /* CONFIG_ETH_STM32_HAL */
#ifdef CONFIG_USB_DC_STM32
#ifdef DT_USB_BASE_ADDRESS
{STM32_PIN_PA11, STM32F4_PINMUX_FUNC_PA11_OTG_FS_DM},
{STM32_PIN_PA12, STM32F4_PINMUX_FUNC_PA12_OTG_FS_DP},
#endif /* DT_USB_BASE_ADDRESS */
#ifdef DT_USB_HS_BASE_ADDRESS
{STM32_PIN_PB14, STM32F4_PINMUX_FUNC_PB14_OTG_HS_DM},
{STM32_PIN_PB15, STM32F4_PINMUX_FUNC_PB15_OTG_HS_DP},
#endif /* DT_USB_HS_BASE_ADDRESS */
#endif /* CONFIG_USB_DC_STM32 */
};

0 comments on commit 925183c

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