From f1bc9af67f8986f38f0efe3bc079054a93d23a36 Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Sun, 9 Oct 2022 17:06:04 +0200 Subject: [PATCH] board/stm32f723e-dsico: enable internal UMTI USB HS PHY feature --- boards/stm32f723e-disco/Kconfig | 1 + boards/stm32f723e-disco/Makefile.features | 1 + boards/stm32f723e-disco/doc.txt | 6 ++++++ boards/stm32f723e-disco/include/periph_conf.h | 4 ++++ 4 files changed, 12 insertions(+) diff --git a/boards/stm32f723e-disco/Kconfig b/boards/stm32f723e-disco/Kconfig index 5e3a794970..b987eff9de 100644 --- a/boards/stm32f723e-disco/Kconfig +++ b/boards/stm32f723e-disco/Kconfig @@ -22,6 +22,7 @@ config BOARD_STM32F723E_DISCO select HAS_PERIPH_UART select HAS_PERIPH_UART_HW_FC select HAS_PERIPH_USBDEV + select HAS_PERIPH_USBDEV_HS_UTMI # Put other features for this board (in alphabetical order) select HAS_TINYUSB_DEVICE diff --git a/boards/stm32f723e-disco/Makefile.features b/boards/stm32f723e-disco/Makefile.features index 1e87f7b710..983f775e2b 100644 --- a/boards/stm32f723e-disco/Makefile.features +++ b/boards/stm32f723e-disco/Makefile.features @@ -11,6 +11,7 @@ FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart FEATURES_PROVIDED += periph_uart_hw_fc FEATURES_PROVIDED += periph_usbdev +FEATURES_PROVIDED += periph_usbdev_hs_utmi # Put other features for this board (in alphabetical order) FEATURES_PROVIDED += tinyusb_device diff --git a/boards/stm32f723e-disco/doc.txt b/boards/stm32f723e-disco/doc.txt index f44c4124b2..3916d15642 100644 --- a/boards/stm32f723e-disco/doc.txt +++ b/boards/stm32f723e-disco/doc.txt @@ -28,4 +28,10 @@ Use the `term` target to open a terminal: make BOARD=stm32f723e-disco -C examples/hello-world term +### USB OTG Peripheral Device Driver + +By default, the USB OTG FS port is used. To use the USB OTG HS port with the +internal UTMI+ HS PHY, enable the module `periph_usbdev_hs_utmi`: + + make BOARD=stm32f723e-disco USEMODULE=periph_usbdev_hs_utmi -C examples/usbus_minimal */ diff --git a/boards/stm32f723e-disco/include/periph_conf.h b/boards/stm32f723e-disco/include/periph_conf.h index 28e4e7b5ed..7a2213b8c1 100644 --- a/boards/stm32f723e-disco/include/periph_conf.h +++ b/boards/stm32f723e-disco/include/periph_conf.h @@ -35,7 +35,11 @@ #include "periph_cpu.h" #include "clk_conf.h" #include "cfg_rtt_default.h" +#if defined(MODULE_PERIPH_USBDEV_HS_UTMI) +#include "cfg_usb_otg_hs_phy_utmi.h" +#else #include "cfg_usb_otg_fs.h" +#endif #ifdef __cplusplus extern "C" {