1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-25 17:43:09 +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:
Werner Almesberger 2015-04-11 14:49:41 -03:00
parent b51d442c31
commit 88e2bde7d6
2 changed files with 7 additions and 6 deletions

View File

@ -1,8 +1,8 @@
/* /*
* boot/dfu.c - DFU protocol engine * boot/dfu.c - DFU protocol engine
* *
* Written 2008-2011, 2013-2014 by Werner Almesberger * Written 2008-2011, 2013-2015 by Werner Almesberger
* Copyright 2008-2011, 2013-2014 Werner Almesberger * Copyright 2008-2011, 2013-2015 Werner Almesberger
* *
* This program is free software; you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by
@ -63,7 +63,7 @@ const uint8_t device_descriptor[] = {
18, /* bLength */ 18, /* bLength */
USB_DT_DEVICE, /* bDescriptorType */ USB_DT_DEVICE, /* bDescriptorType */
LE(0x100), /* bcdUSB */ LE(0x100), /* bcdUSB */
USB_CLASS_PER_INTERFACE,/* bDeviceClass */ USB_CLASS_APP_SPEC, /* bDeviceClass */
0x00, /* bDeviceSubClass (per interface) */ 0x00, /* bDeviceSubClass (per interface) */
0x00, /* bDeviceProtocol (per interface) */ 0x00, /* bDeviceProtocol (per interface) */
EP0_SIZE, /* bMaxPacketSize */ EP0_SIZE, /* bMaxPacketSize */

View File

@ -1,8 +1,8 @@
/* /*
* fw/usb//usb.h - USB hardware setup and standard device requests * fw/usb//usb.h - USB hardware setup and standard device requests
* *
* Written 2008, 2009, 2011, 2013 by Werner Almesberger * Written 2008, 2009, 2011, 2013, 2015 by Werner Almesberger
* Copyright 2008, 2009, 2011, 2013 Werner Almesberger * Copyright 2008, 2009, 2011, 2013, 2015 Werner Almesberger
* *
* This program is free software; you can redistribute it and/or modify * 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 * 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) * 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 #define USB_CLASS_VENDOR_SPEC 0xff
/* /*