提交 4f40bc80 编写于 作者: lymzzyh's avatar lymzzyh

[Components][USB device] kconfig allow none class

上级 1ed77003
...@@ -198,8 +198,11 @@ menu "Using USB" ...@@ -198,8 +198,11 @@ menu "Using USB"
default n default n
choice choice
prompt "Device type" prompt "Device type"
default _RT_USB_DEVICE_CDC default _RT_USB_DEVICE_NONE
depends on !RT_USB_DEVICE_COMPOSITE 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 config _RT_USB_DEVICE_CDC
bool "Enable to use device as CDC device" bool "Enable to use device as CDC device"
select RT_USB_DEVICE_CDC select RT_USB_DEVICE_CDC
...@@ -224,6 +227,8 @@ menu "Using USB" ...@@ -224,6 +227,8 @@ menu "Using USB"
if RT_USB_DEVICE_COMPOSITE if RT_USB_DEVICE_COMPOSITE
config RT_USB_DEVICE_CDC config RT_USB_DEVICE_CDC
bool "Enable to use device as CDC device" bool "Enable to use device as CDC device"
default n
config RT_USB_DEVICE_NONE
default y default y
config RT_USB_DEVICE_MSTORAGE config RT_USB_DEVICE_MSTORAGE
bool "Enable to use device as Mass Storage device" bool "Enable to use device as Mass Storage device"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册