mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +08:00
drivers/usbhost/usbhost_cdcecm.c: Added support for Host CDC-ECM
Added support for USB host to use an USB CDC-ECM device. This class is used for usb-ethernet adapters as well as many modems. Signed-off-by: daniellizewski <daniellizewski@geotab.com>
This commit is contained in:
committed by
Lup Yuen Lee
parent
761c17f1e0
commit
9b18160893
@@ -47,6 +47,10 @@ if(CONFIG_USBHOST)
|
||||
list(APPEND SRCS usbhost_cdcacm.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_USBHOST_CDCECM)
|
||||
list(APPEND SRCS usbhost_cdcecm.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_USBHOST_CDCMBIM)
|
||||
list(APPEND SRCS usbhost_cdcmbim.c)
|
||||
endif()
|
||||
|
||||
@@ -304,6 +304,25 @@ config USBHOST_CDCACM_TXBUFSIZE
|
||||
|
||||
endif # USBHOST_CDCACM
|
||||
|
||||
config USBHOST_CDCECM
|
||||
bool "CDC/ECM support"
|
||||
default n
|
||||
depends on USBHOST_HAVE_ASYNCH && !USBHOST_BULK_DISABLE && !USBHOST_INT_DISABLE
|
||||
select USBHOST_ASYNCH
|
||||
select NET_ETHERNET
|
||||
---help---
|
||||
Select this option to build in host support for CDC/ECM serial
|
||||
devices.
|
||||
|
||||
config USBHOST_CDCECM_PACKET_PRINT
|
||||
bool "Print raw CDC/ECM packets"
|
||||
default n
|
||||
depends on DEBUG_USB_INFO
|
||||
---help---
|
||||
Print all raw RX and TX packets send and received in the CDC/ECM driver.
|
||||
This can be useful for analysing with programs such as wireshark.
|
||||
|
||||
|
||||
config USBHOST_CDCMBIM
|
||||
bool "CDC/MBIM support"
|
||||
default n
|
||||
|
||||
@@ -48,6 +48,10 @@ ifeq ($(CONFIG_USBHOST_CDCACM),y)
|
||||
CSRCS += usbhost_cdcacm.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_USBHOST_CDCECM),y)
|
||||
CSRCS += usbhost_cdcecm.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_USBHOST_CDCMBIM),y)
|
||||
CSRCS += usbhost_cdcmbim.c
|
||||
endif
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user