summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-07-16 18:43:06 +0700
committerhathach <[email protected]>2019-07-16 18:43:06 +0700
commit83f7aacbb1f3335b968da02c1e3b554bb9f35c86 (patch)
treefc24c0c611fd526e09a6e2d50f26a9d2ce82d4bf /src
parent036e858543dce1c19ff789b69907680500e28ca6 (diff)
clean up
Diffstat (limited to 'src')
-rw-r--r--src/common/tusb_types.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/common/tusb_types.h b/src/common/tusb_types.h
index 7270ec58b..2776eaa87 100644
--- a/src/common/tusb_types.h
+++ b/src/common/tusb_types.h
@@ -228,7 +228,7 @@ enum
};
//--------------------------------------------------------------------+
-// USB Standard Descriptors
+// USB Descriptors
//--------------------------------------------------------------------+
/// USB Device Descriptor
@@ -360,13 +360,7 @@ typedef struct TU_ATTR_PACKED
uint8_t iFunction ; ///< Index of the string descriptor describing the interface association.
} tusb_desc_interface_assoc_t;
-/// USB Header Descriptor
-typedef struct TU_ATTR_PACKED
-{
- uint8_t bLength ; ///< Size of this descriptor in bytes
- uint8_t bDescriptorType ; ///< Descriptor Type
-} tusb_desc_header_t;
-
+// USB String Descriptor
typedef struct TU_ATTR_PACKED
{
uint8_t bLength ; ///< Size of this descriptor in bytes
@@ -374,6 +368,7 @@ typedef struct TU_ATTR_PACKED
uint16_t unicode_string[];
} tusb_desc_string_t;
+// USB Binary Device Object Store (BOS)
typedef struct TU_ATTR_PACKED
{
uint8_t bLength;
@@ -384,6 +379,15 @@ typedef struct TU_ATTR_PACKED
uint8_t CapabilityData[];
} tusb_desc_bos_platform_t;
+// USB WebuSB URL Descriptor
+typedef struct TU_ATTR_PACKED
+{
+ uint8_t bLength;
+ uint8_t bDescriptorType;
+ uint8_t bScheme;
+ char url[];
+} tusb_desc_webusb_url_t;
+
/*------------------------------------------------------------------*/
/* Types
*------------------------------------------------------------------*/