diff options
Diffstat (limited to 'src/machine/usb/usb.go')
-rw-r--r-- | src/machine/usb/usb.go | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/src/machine/usb/usb.go b/src/machine/usb/usb.go index 97efbbfa4..47a8a3456 100644 --- a/src/machine/usb/usb.go +++ b/src/machine/usb/usb.go @@ -23,16 +23,6 @@ const ( ENDPOINT_TYPE_BULK = 0x02 ENDPOINT_TYPE_INTERRUPT = 0x03 - DEVICE_DESCRIPTOR_TYPE = 1 - CONFIGURATION_DESCRIPTOR_TYPE = 2 - STRING_DESCRIPTOR_TYPE = 3 - INTERFACE_DESCRIPTOR_TYPE = 4 - ENDPOINT_DESCRIPTOR_TYPE = 5 - DEVICE_QUALIFIER = 6 - OTHER_SPEED_CONFIGURATION = 7 - SET_REPORT_TYPE = 33 - HID_REPORT_TYPE = 34 - EndpointOut = 0x00 EndpointIn = 0x80 @@ -51,12 +41,13 @@ const ( SET_INTERFACE = 11 // non standard requests - GET_REPORT = 1 - GET_IDLE = 2 - GET_PROTOCOL = 3 - SET_REPORT = 9 - SET_IDLE = 10 - SET_PROTOCOL = 11 + GET_REPORT = 1 + GET_IDLE = 2 + GET_PROTOCOL = 3 + SET_REPORT = 9 + SET_IDLE = 10 + SET_PROTOCOL = 11 + SET_REPORT_TYPE = 33 DEVICE_CLASS_COMMUNICATIONS = 0x02 DEVICE_CLASS_HUMAN_INTERFACE = 0x03 |