Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions drivers/usb/uhc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ zephyr_library()

zephyr_library_sources(uhc_common.c)
zephyr_library_sources_ifdef(CONFIG_UHC_MAX3421E uhc_max3421e.c)
zephyr_library_sources_ifdef(CONFIG_UHC_STM32 uhc_stm32.c)
zephyr_library_sources_ifdef(CONFIG_UHC_VIRTUAL uhc_virtual.c)
1 change: 1 addition & 0 deletions drivers/usb/uhc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ module-str = uhc drv
source "subsys/logging/Kconfig.template.log_config"

source "drivers/usb/uhc/Kconfig.max3421e"
source "drivers/usb/uhc/Kconfig.stm32"
source "drivers/usb/uhc/Kconfig.virtual"

endif # UHC_DRIVER
23 changes: 23 additions & 0 deletions drivers/usb/uhc/Kconfig.stm32
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright (c) 2024 Syslinbit SCOP SAS
# SPDX-License-Identifier: Apache-2.0

config UHC_STM32
bool "STM32 USB host controller driver"
default y
depends on DT_HAS_ST_STM32_OTGFS_ENABLED \
|| DT_HAS_ST_STM32_OTGHS_ENABLED \
|| DT_HAS_ST_STM32_USB_ENABLED
select USE_STM32_LL_USB
select USE_STM32_HAL_HCD
help
STM32 USB host controller driver.

if UHC_STM32

config UHC_STM32_DRV_THREAD_STACK_SIZE
int "Driver internal thread stack size"
default 512
help
Size of the stack used in the STM32 USB host driver

endif #UHC_STM32
Loading
Loading