diff options
Diffstat (limited to 'src/device')
| -rw-r--r-- | src/device/usbd.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/device/usbd.h b/src/device/usbd.h index 6e781f18d..3979dcb1e 100644 --- a/src/device/usbd.h +++ b/src/device/usbd.h @@ -133,7 +133,6 @@ TU_ATTR_WEAK bool tud_vendor_control_complete_cb(uint8_t rhport, tusb_control_re 0x8B, 0xFD, 0xA0, 0x76, 0x88, 0x15, 0xB6, 0x65
//------------- Microsoft OS 2.0 Platform -------------//
-
#define TUD_BOS_MICROSOFT_OS_DESC_LEN 28
// Total Length of descriptor set, vendor code
@@ -144,6 +143,10 @@ TU_ATTR_WEAK bool tud_vendor_control_complete_cb(uint8_t rhport, tusb_control_re 0xDF, 0x60, 0xDD, 0xD8, 0x89, 0x45, 0xC7, 0x4C, \
0x9C, 0xD2, 0x65, 0x9D, 0x9E, 0x64, 0x8A, 0x9F
+//------------- WebUSB URL -------------//
+// used to init tusb_desc_webusb_url_t
+#define TUD_WEBUSB_URL_DESCRIPTOR(_scheme, _url) \
+ { 3 + sizeof(_url) - 1, 3, _scheme, _url }
//--------------------------------------------------------------------+
// Configuration & Interface Descriptor Templates
|
