diff options
| author | hathach <[email protected]> | 2019-08-01 10:46:27 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-08-01 10:46:27 +0700 |
| commit | bd08d0edc9067d57a6d6c3cc32438095b2de29c8 (patch) | |
| tree | ed6bdefaec29852d20b707cafdf6e43f99333e13 /src/device | |
| parent | 2c2db31b095724fc8fc914f3c07641765ee0dc90 (diff) | |
add vendor peek, change cdc peek signature, change cdc read_char() return from signed char to int32_t
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
|
