From ec89b2f60c06c229dac66d9446e956f1679e9f71 Mon Sep 17 00:00:00 2001 From: Felix K Date: Sun, 4 Mar 2018 15:56:50 +0100 Subject: [PATCH] more microsoft stuff removed --- usb/descriptor.c | 84 ------------------------------------------------ 1 file changed, 84 deletions(-) diff --git a/usb/descriptor.c b/usb/descriptor.c index 1a73e03..4d623ac 100644 --- a/usb/descriptor.c +++ b/usb/descriptor.c @@ -8,86 +8,6 @@ #include - -// Notes: -// Fill in VID/PID in device_descriptor -// Fill in msft_extended for WCID -// WCID request ID can be changed below -// Other options in usb.h -// Additional compiler flags: -std=gnu99 -fno-strict-aliasing -Wstrict-prototypes -fno-jump-tables - -#define WCID_REQUEST_ID 0x22 -#define WCID_REQUEST_ID_STR u"\x22" - -// const USB_DeviceDescriptor PROGMEM device_descriptor = { -// .bLength = sizeof(USB_DeviceDescriptor), -// .bDescriptorType = USB_DTYPE_Device, -// -// .bcdUSB = 0x0200, -// .bDeviceClass = USB_CSCP_VendorSpecificClass, -// .bDeviceSubClass = USB_CSCP_NoDeviceSubclass, -// .bDeviceProtocol = USB_CSCP_NoDeviceProtocol, -// -// .bMaxPacketSize0 = 64, -// .idVendor = 0x8282, -// .idProduct = 0x9999, -// .bcdDevice = 0x0100, -// -// .iManufacturer = 0x01, -// .iProduct = 0x02, -// .iSerialNumber = 0, -// -// .bNumConfigurations = 1 -// }; -// -// typedef struct ConfigDesc { -// USB_ConfigurationDescriptor Config; -// USB_InterfaceDescriptor Interface0; -// USB_EndpointDescriptor DataInEndpoint; -// USB_EndpointDescriptor DataOutEndpoint; -// -// } ConfigDesc; -// -// const PROGMEM ConfigDesc configuration_descriptor = { -// .Config = { -// .bLength = sizeof(USB_ConfigurationDescriptor), -// .bDescriptorType = USB_DTYPE_Configuration, -// .wTotalLength = sizeof(ConfigDesc), -// .bNumInterfaces = 1, -// .bConfigurationValue = 1, -// .iConfiguration = 0, -// .bmAttributes = USB_CONFIG_ATTR_RESERVED, -// .bMaxPower = USB_CONFIG_POWER_MA(500) -// }, -// .Interface0 = { -// .bLength = sizeof(USB_InterfaceDescriptor), -// .bDescriptorType = USB_DTYPE_Interface, -// .bInterfaceNumber = 0, -// .bAlternateSetting = 0, -// .bNumEndpoints = 2, -// .bInterfaceClass = USB_CSCP_VendorSpecificClass, -// .bInterfaceSubClass = 0x00, -// .bInterfaceProtocol = 0x00, -// .iInterface = 0 -// }, -// .DataInEndpoint = { -// .bLength = sizeof(USB_EndpointDescriptor), -// .bDescriptorType = USB_DTYPE_Endpoint, -// .bEndpointAddress = 0x81, -// .bmAttributes = (USB_EP_TYPE_BULK | ENDPOINT_ATTR_NO_SYNC | ENDPOINT_USAGE_DATA), -// .wMaxPacketSize = 64, -// .bInterval = 0x00 -// }, -// .DataOutEndpoint = { -// .bLength = sizeof(USB_EndpointDescriptor), -// .bDescriptorType = USB_DTYPE_Endpoint, -// .bEndpointAddress = 0x2, -// .bmAttributes = (USB_EP_TYPE_BULK | ENDPOINT_ATTR_NO_SYNC | ENDPOINT_USAGE_DATA), -// .wMaxPacketSize = 64, -// .bInterval = 0x00 -// }, -// }; - const USB_DeviceDescriptor PROGMEM device_descriptor = { .bLength = sizeof(USB_DeviceDescriptor), .bDescriptorType = USB_DTYPE_Device, @@ -109,10 +29,6 @@ const USB_DeviceDescriptor PROGMEM device_descriptor = { .bNumConfigurations = 1 }; -// #ifndef F_USB -// #define __flash -// #endif - const PROGMEM ConfigDesc configuration_descriptor = {