mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-12-22 19:01:10 +02:00
atusb/fw/usb/: fix incorrect code point for USB_CLASS_PER_INTERFACE
The code of USB_CLASS_PER_INTERFACE is 0 and not 0xfe. USB_CLASS_APP_SPEC is 0xfe. Also corrected the use in dfu.c
This commit is contained in:
parent
b51d442c31
commit
88e2bde7d6
@ -1,8 +1,8 @@
|
||||
/*
|
||||
* boot/dfu.c - DFU protocol engine
|
||||
*
|
||||
* Written 2008-2011, 2013-2014 by Werner Almesberger
|
||||
* Copyright 2008-2011, 2013-2014 Werner Almesberger
|
||||
* Written 2008-2011, 2013-2015 by Werner Almesberger
|
||||
* Copyright 2008-2011, 2013-2015 Werner Almesberger
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -63,7 +63,7 @@ const uint8_t device_descriptor[] = {
|
||||
18, /* bLength */
|
||||
USB_DT_DEVICE, /* bDescriptorType */
|
||||
LE(0x100), /* bcdUSB */
|
||||
USB_CLASS_PER_INTERFACE,/* bDeviceClass */
|
||||
USB_CLASS_APP_SPEC, /* bDeviceClass */
|
||||
0x00, /* bDeviceSubClass (per interface) */
|
||||
0x00, /* bDeviceProtocol (per interface) */
|
||||
EP0_SIZE, /* bMaxPacketSize */
|
||||
|
@ -1,8 +1,8 @@
|
||||
/*
|
||||
* fw/usb//usb.h - USB hardware setup and standard device requests
|
||||
*
|
||||
* Written 2008, 2009, 2011, 2013 by Werner Almesberger
|
||||
* Copyright 2008, 2009, 2011, 2013 Werner Almesberger
|
||||
* Written 2008, 2009, 2011, 2013, 2015 by Werner Almesberger
|
||||
* Copyright 2008, 2009, 2011, 2013, 2015 Werner Almesberger
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -51,7 +51,8 @@
|
||||
* Reuse libusb naming scheme (/usr/include/usb.h)
|
||||
*/
|
||||
|
||||
#define USB_CLASS_PER_INTERFACE 0xfe
|
||||
#define USB_CLASS_PER_INTERFACE 0
|
||||
#define USB_CLASS_APP_SPEC 0xfe
|
||||
#define USB_CLASS_VENDOR_SPEC 0xff
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user