瀏覽代碼

[Components][USB device] kconfig allow none class

zyh 7 年之前
父節點
當前提交
4f40bc80ec
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      components/drivers/Kconfig

+ 6 - 1
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"