diff options
author | Drashna Jaelre <drashna@live.com> | 2022-11-23 22:50:11 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-24 15:50:11 +0900 |
commit | 263bc7cf21e60ecefe602d8fe3d02945201eaf77 (patch) | |
tree | 16ad661fae12185c53fe11e4c4eed5bdb1f927e9 /tmk_core/protocol/usb_descriptor.c | |
parent | 64f04b30c2f48fc0e7c49ca043443f03dc56df94 (diff) |
Remove Web USB (depreciated) (#361)
Diffstat (limited to 'tmk_core/protocol/usb_descriptor.c')
-rw-r--r-- | tmk_core/protocol/usb_descriptor.c | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/tmk_core/protocol/usb_descriptor.c b/tmk_core/protocol/usb_descriptor.c index 4905096354..21795cef60 100644 --- a/tmk_core/protocol/usb_descriptor.c +++ b/tmk_core/protocol/usb_descriptor.c @@ -39,9 +39,6 @@ #include "util.h" #include "report.h" #include "usb_descriptor.h" -#ifdef WEBUSB_ENABLE -# include "webusb_descriptor.h" -#endif #include "usb_descriptor_common.h" #ifdef JOYSTICK_ENABLE @@ -365,12 +362,6 @@ const USB_Descriptor_HIDReport_Datatype_t PROGMEM ConsoleReport[] = { }; #endif -#ifdef WEBUSB_ENABLE -const USB_Descriptor_BOS_t PROGMEM BOSDescriptor = BOS_DESCRIPTOR( - (MS_OS_20_PLATFORM_DESCRIPTOR(MS_OS_20_VENDOR_CODE, MS_OS_20_DESCRIPTOR_SET_TOTAL_LENGTH)) - (WEBUSB_PLATFORM_DESCRIPTOR(WEBUSB_VENDOR_CODE, WEBUSB_LANDING_PAGE_INDEX)) -); -#endif #ifdef JOYSTICK_ENABLE const USB_Descriptor_HIDReport_Datatype_t PROGMEM JoystickReport[] = { HID_RI_USAGE_PAGE(8, 0x01), // Generic Desktop @@ -438,11 +429,7 @@ const USB_Descriptor_Device_t PROGMEM DeviceDescriptor = { .Size = sizeof(USB_Descriptor_Device_t), .Type = DTYPE_Device }, -#if defined(WEBUSB_ENABLE) && !defined(STENO_ENABLE) - .USBSpecification = VERSION_BCD(2, 1, 0), -#else .USBSpecification = VERSION_BCD(2, 0, 0), -#endif #if VIRTSER_ENABLE .Class = USB_CSCP_IADDeviceClass, @@ -718,38 +705,6 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = { }, #endif -#ifdef WEBUSB_ENABLE - /* - * Webusb - */ - .WebUSB_Interface = {.Header = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface}, - - .InterfaceNumber = INTERFACE_ID_WebUSB, - .AlternateSetting = 0x00, - - .TotalEndpoints = 2, - - .Class = USB_CSCP_VendorSpecificClass, - .SubClass = 0x00, - .Protocol = 0x00, - - .InterfaceStrIndex = NO_DESCRIPTOR}, - - .WebUSB_DataInEndpoint = {.Header = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint}, - - .EndpointAddress = WEBUSB_IN_EPADDR, - .Attributes = (EP_TYPE_INTERRUPT | ENDPOINT_ATTR_NO_SYNC | ENDPOINT_USAGE_DATA), - .EndpointSize = WEBUSB_EPSIZE, - .PollingIntervalMS = 0x05}, - - .WebUSB_DataOutEndpoint = {.Header = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint}, - - .EndpointAddress = WEBUSB_OUT_EPADDR, - .Attributes = (EP_TYPE_INTERRUPT | ENDPOINT_ATTR_NO_SYNC | ENDPOINT_USAGE_DATA), - .EndpointSize = WEBUSB_EPSIZE, - .PollingIntervalMS = 0x05}, -#endif - #ifdef MIDI_ENABLE /* * MIDI @@ -1144,13 +1099,6 @@ uint16_t get_usb_descriptor(const uint16_t wValue, const uint16_t wIndex, const Size = sizeof(USB_Descriptor_Device_t); break; -#ifdef WEBUSB_ENABLE - case DTYPE_BOS: - Address = &BOSDescriptor; - Size = pgm_read_byte(&BOSDescriptor.TotalLength); - - break; -#endif case DTYPE_Configuration: Address = &ConfigurationDescriptor; Size = sizeof(USB_Descriptor_Configuration_t); |