|
|
|
@ -33,6 +33,17 @@ const struct webusb_platform_descriptor webusb_platform_capability_descriptor =
|
|
|
|
|
.iLandingPage = 1
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const struct webusb_platform_descriptor webusb_platform_capability_descriptor_no_landing_page = {
|
|
|
|
|
.bLength = WEBUSB_PLATFORM_DESCRIPTOR_SIZE,
|
|
|
|
|
.bDescriptorType = USB_DT_DEVICE_CAPABILITY,
|
|
|
|
|
.bDevCapabilityType = USB_DC_PLATFORM,
|
|
|
|
|
.bReserved = 0,
|
|
|
|
|
.platformCapabilityUUID = WEBUSB_UUID,
|
|
|
|
|
.bcdVersion = 0x0100,
|
|
|
|
|
.bVendorCode = WEBUSB_VENDOR_CODE,
|
|
|
|
|
.iLandingPage = 0
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const char* webusb_https_url;
|
|
|
|
|
|
|
|
|
|
static int webusb_control_vendor_request(usbd_device *usbd_dev,
|
|
|
|
|