Skip to content
Open
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
10 changes: 7 additions & 3 deletions subsys/usb/host/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ zephyr_library()
zephyr_library_include_directories(${CMAKE_CURRENT_SOURCE_DIR})

zephyr_library_sources(
usbh_api.c
usbh_ch9.c
usbh_class.c
usbh_core.c
usbh_api.c
usbh_device.c
usbh_desc.c
usbh_class.c
usbh_device.c
)

zephyr_library_sources_ifdef(
Expand All @@ -24,6 +23,11 @@ zephyr_library_sources_ifdef(
class/usbh_uvc.c
)

zephyr_library_sources_ifdef(
CONFIG_USBH_CDC_ECM
class/usbh_cdc_ecm.c
)

zephyr_library_sources_ifdef(
CONFIG_USBIP
usbip.c
Expand Down
1 change: 1 addition & 0 deletions subsys/usb/host/class/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
# SPDX-License-Identifier: Apache-2.0

rsource "Kconfig.uvc"
rsource "Kconfig.cdc_ecm_host"
25 changes: 25 additions & 0 deletions subsys/usb/host/class/Kconfig.cdc_ecm_host
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright (c) 2026 Linumiz
# SPDX-License-Identifier: Apache-2.0

config USBH_CDC_ECM
bool "USB host CDC ECM class driver"
depends on USB_HOST_STACK
depends on NET_L2_ETHERNET
help
USB host class driver for CDC Ethernet Control Model (ECM) devices.

if USBH_CDC_ECM

config USBH_CDC_ECM_INSTANCES_COUNT
int "Number of CDC ECM class instances"
default 1
range 1 $(UINT8_MAX)
help
Number of USB host CDC ECM class driver instances.
Each instance can bind to one connected ECM device.

module = USBH_CDC_ECM
module-str = usbh_cdc_ecm
source "subsys/logging/Kconfig.template.log_config"

endif # USBH_CDC_ECM
Loading
Loading