summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorZYH <[email protected]>2018-04-24 15:03:44 +0800
committerGitHub <[email protected]>2018-04-24 15:03:44 +0800
commit79372cc0c0faf83b837976fb649ffad58d1cd924 (patch)
treeb8b0f68d3d326d56e29653c0a303307dc22bd700 /components
parent2bd7a0e8641856fd44be8a994af23e37b9082e8c (diff)
parent4f40bc80ecb9498247d958fcdd3211646cd5d8b8 (diff)
Merge pull request #1383 from uestczyh222/master
[Components][USB device] kconfig allow none class
Diffstat (limited to 'components')
-rwxr-xr-xcomponents/drivers/Kconfig7
1 files changed, 6 insertions, 1 deletions
diff --git a/components/drivers/Kconfig b/components/drivers/Kconfig
index cec1b72cdf..fac3d8ef47 100755
--- a/components/drivers/Kconfig
+++ b/components/drivers/Kconfig
@@ -198,8 +198,11 @@ menu "Using USB"
default n
choice
prompt "Device type"
- default _RT_USB_DEVICE_CDC
+ default _RT_USB_DEVICE_NONE
depends on !RT_USB_DEVICE_COMPOSITE
+ config _RT_USB_DEVICE_NONE
+ bool "Using custom class by register interface"
+ select RT_USB_DEVICE_NONE
config _RT_USB_DEVICE_CDC
bool "Enable to use device as CDC device"
select RT_USB_DEVICE_CDC
@@ -224,6 +227,8 @@ menu "Using USB"
if RT_USB_DEVICE_COMPOSITE
config RT_USB_DEVICE_CDC
bool "Enable to use device as CDC device"
+ default n
+ config RT_USB_DEVICE_NONE
default y
config RT_USB_DEVICE_MSTORAGE
bool "Enable to use device as Mass Storage device"