未验证 提交 93387d3a 编写于 作者: lymzzyh's avatar lymzzyh 提交者: GitHub

Merge pull request #1268 from uestczyh222/master

[Components][WINUSB]Add Guid config to Kconfig Add VID PID config
......@@ -181,6 +181,13 @@ menu "Using USB"
default n
if RT_USING_USB_DEVICE
config CONFIG_USB_VENDOR_ID
hex "USB Vendor ID"
default 0x0FFE
config CONFIG_USB_PRODUCT_ID
hex "USB Product ID"
default 0x0001
config RT_USB_DEVICE_COMPOSITE
bool "Enable composite device"
default n
......@@ -231,6 +238,11 @@ menu "Using USB"
bool "Enable to use device as winusb device"
default n
endif
if RT_USB_DEVICE_WINUSB
config RT_WINUSB_GUID
string "Guid for winusb"
default "{6860DC3C-C05F-4807-8807-1CA861CC1D66}"
endif
if RT_USB_DEVICE_MSTORAGE
config RT_USB_MSTORAGE_DISK_NAME
string "msc class disk name"
......
......@@ -105,7 +105,7 @@ const static char* _ustring[] =
};
struct usb_os_proerty winusb_proerty[] =
{
USB_OS_PROERTY_DESC(USB_OS_PROERTY_TYPE_REG_SZ,"DeviceInterfaceGUID","{6860DC3C-C05F-4807-8807-1CA861CC1D66}"),
USB_OS_PROERTY_DESC(USB_OS_PROERTY_TYPE_REG_SZ,"DeviceInterfaceGUID",RT_WINUSB_GUID),
};
struct usb_os_function_comp_id_descriptor winusb_func_comp_id_desc =
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册