4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-21 08:07:15 +08:00

Merge pull request #1383 from uestczyh222/master

[Components][USB device] kconfig allow none class
This commit is contained in:
ZYH 2018-04-24 15:03:44 +08:00 committed by GitHub
commit 79372cc0c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"