Date:2015-04-11 19:49:41 (4 years 5 months ago)
Author:Werner Almesberger
Commit:88e2bde7d699bdb91e86b6133d0892340bafe5d1
Message: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
Files: atusb/fw/usb/dfu.c (2 diffs)
atusb/fw/usb/usb.h (2 diffs)

Change Details

atusb/fw/usb/dfu.c
11/*
22 * boot/dfu.c - DFU protocol engine
33 *
4 * Written 2008-2011, 2013-2014 by Werner Almesberger
5 * Copyright 2008-2011, 2013-2014 Werner Almesberger
4 * Written 2008-2011, 2013-2015 by Werner Almesberger
5 * Copyright 2008-2011, 2013-2015 Werner Almesberger
66 *
77 * This program is free software; you can redistribute it and/or modify
88 * it under the terms of the GNU General Public License as published by
...... 
6363    18, /* bLength */
6464    USB_DT_DEVICE, /* bDescriptorType */
6565    LE(0x100), /* bcdUSB */
66    USB_CLASS_PER_INTERFACE,/* bDeviceClass */
66    USB_CLASS_APP_SPEC, /* bDeviceClass */
6767    0x00, /* bDeviceSubClass (per interface) */
6868    0x00, /* bDeviceProtocol (per interface) */
6969    EP0_SIZE, /* bMaxPacketSize */
atusb/fw/usb/usb.h
11/*
22 * fw/usb//usb.h - USB hardware setup and standard device requests
33 *
4 * Written 2008, 2009, 2011, 2013 by Werner Almesberger
5 * Copyright 2008, 2009, 2011, 2013 Werner Almesberger
4 * Written 2008, 2009, 2011, 2013, 2015 by Werner Almesberger
5 * Copyright 2008, 2009, 2011, 2013, 2015 Werner Almesberger
66 *
77 * This program is free software; you can redistribute it and/or modify
88 * it under the terms of the GNU General Public License as published by
...... 
5151 * Reuse libusb naming scheme (/usr/include/usb.h)
5252 */
5353
54#define USB_CLASS_PER_INTERFACE 0xfe
54#define USB_CLASS_PER_INTERFACE 0
55#define USB_CLASS_APP_SPEC 0xfe
5556#define USB_CLASS_VENDOR_SPEC 0xff
5657
5758/*

Archive Download the corresponding diff file



interactive