mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
refactor(usb): Deprecate CONFIG_USB_OTG_SUPPORTED, use SOC_USB_OTG_SUPPORTED instead
Previously, USB build dependencies used the CONFIG_USB_OTG_SUPPORTED. However, they could depend on `soc_caps.h` instead.
This commit is contained in:
+9
-12
@@ -1,13 +1,7 @@
|
||||
menu "USB-OTG"
|
||||
visible if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
|
||||
|
||||
# Invisible item, enabled when USB_OTG peripheral does exist
|
||||
config USB_OTG_SUPPORTED
|
||||
bool
|
||||
default y if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
|
||||
depends on SOC_USB_OTG_SUPPORTED
|
||||
|
||||
config USB_HOST_CONTROL_TRANSFER_MAX_SIZE
|
||||
depends on USB_OTG_SUPPORTED
|
||||
int "Largest size (in bytes) of transfers to/from default endpoints"
|
||||
default 256
|
||||
help
|
||||
@@ -18,7 +12,6 @@ menu "USB-OTG"
|
||||
- Device's with configuration descriptors larger than this limit cannot be supported
|
||||
|
||||
choice USB_HOST_HW_BUFFER_BIAS
|
||||
depends on USB_OTG_SUPPORTED
|
||||
prompt "Hardware FIFO size biasing"
|
||||
default USB_HOST_HW_BUFFER_BIAS_BALANCED
|
||||
help
|
||||
@@ -56,7 +49,6 @@ menu "USB-OTG"
|
||||
menu "Root Hub configuration"
|
||||
|
||||
config USB_HOST_DEBOUNCE_DELAY_MS
|
||||
depends on USB_OTG_SUPPORTED
|
||||
int "Debounce delay in ms"
|
||||
default 250
|
||||
help
|
||||
@@ -67,7 +59,6 @@ menu "USB-OTG"
|
||||
The default value is set to 250 ms to be safe.
|
||||
|
||||
config USB_HOST_RESET_HOLD_MS
|
||||
depends on USB_OTG_SUPPORTED
|
||||
int "Reset hold in ms"
|
||||
default 30
|
||||
help
|
||||
@@ -79,7 +70,6 @@ menu "USB-OTG"
|
||||
The default value is set to 30 ms to be safe.
|
||||
|
||||
config USB_HOST_RESET_RECOVERY_MS
|
||||
depends on USB_OTG_SUPPORTED
|
||||
int "Reset recovery delay in ms"
|
||||
default 30
|
||||
help
|
||||
@@ -92,7 +82,6 @@ menu "USB-OTG"
|
||||
|
||||
|
||||
config USB_HOST_SET_ADDR_RECOVERY_MS
|
||||
depends on USB_OTG_SUPPORTED
|
||||
int "SetAddress() recovery time in ms"
|
||||
default 10
|
||||
help
|
||||
@@ -107,4 +96,12 @@ menu "USB-OTG"
|
||||
|
||||
endmenu #Root Hub configuration
|
||||
|
||||
# Hidden or compatibility options
|
||||
|
||||
config USB_OTG_SUPPORTED
|
||||
# Invisible config kept for compatibility
|
||||
# Todo: Remove in v6.0 (IDF-8936)
|
||||
bool
|
||||
default y
|
||||
|
||||
endmenu #USB-OTG
|
||||
|
||||
Reference in New Issue
Block a user