kopia lustrzana https://github.com/espressif/esp-idf
feat(usb_host): Added KConfig parameter for External HUB support enable
rodzic
8d93d18451
commit
029c286a21
|
@ -93,7 +93,6 @@ menu "USB-OTG"
|
||||||
|
|
||||||
The default value is set to 10 ms to be safe.
|
The default value is set to 10 ms to be safe.
|
||||||
|
|
||||||
|
|
||||||
endmenu #Root Hub configuration
|
endmenu #Root Hub configuration
|
||||||
|
|
||||||
config USB_HOST_ENABLE_ENUM_FILTER_CALLBACK
|
config USB_HOST_ENABLE_ENUM_FILTER_CALLBACK
|
||||||
|
@ -107,8 +106,14 @@ menu "USB-OTG"
|
||||||
If enabled, the enumeration filter callback can be set via 'usb_host_config_t' when calling
|
If enabled, the enumeration filter callback can be set via 'usb_host_config_t' when calling
|
||||||
'usb_host_install()'.
|
'usb_host_install()'.
|
||||||
|
|
||||||
# Hidden or compatibility options
|
config USB_HOST_EXT_HUB_SUPPORT
|
||||||
|
depends on IDF_EXPERIMENTAL_FEATURES
|
||||||
|
bool "Support USB HUB (Experimental)"
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
Feature is under development.
|
||||||
|
|
||||||
|
# Hidden or compatibility options
|
||||||
config USB_OTG_SUPPORTED
|
config USB_OTG_SUPPORTED
|
||||||
# Invisible config kept for compatibility
|
# Invisible config kept for compatibility
|
||||||
# Todo: Remove in v6.0 (IDF-8936)
|
# Todo: Remove in v6.0 (IDF-8936)
|
||||||
|
|
|
@ -12,9 +12,12 @@ Warning: The USB Host Library API is still a beta version and may be subject to
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "esp_err.h"
|
#include "esp_err.h"
|
||||||
|
#include "sdkconfig.h"
|
||||||
#include "usb/usb_types_stack.h"
|
#include "usb/usb_types_stack.h"
|
||||||
#include "usb/usb_types_ch9.h"
|
#include "usb/usb_types_ch9.h"
|
||||||
|
#if (CONFIG_USB_HOST_EXT_HUB_SUPPORT)
|
||||||
#include "usb/usb_types_ch11.h"
|
#include "usb/usb_types_ch11.h"
|
||||||
|
#endif // CONFIG_USB_HOST_EXT_HUB_SUPPORT
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
Ładowanie…
Reference in New Issue