From 8a795bd375a6632ed86ba55017f542f1d13e5583 Mon Sep 17 00:00:00 2001 From: Richard Barry Date: Wed, 25 Jun 2008 07:15:35 +0000 Subject: [PATCH] Update the bInterfaceProtocol member of the descriptors to allow comms with Linux. --- Demo/ARM7_AT91SAM7S64_IAR/USB/USBSample.c | 2 +- Demo/lwIP_Demo_Rowley_ARM7/USB/descriptors.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Demo/ARM7_AT91SAM7S64_IAR/USB/USBSample.c b/Demo/ARM7_AT91SAM7S64_IAR/USB/USBSample.c index 5ee982e9a..06b4b5357 100644 --- a/Demo/ARM7_AT91SAM7S64_IAR/USB/USBSample.c +++ b/Demo/ARM7_AT91SAM7S64_IAR/USB/USBSample.c @@ -491,7 +491,7 @@ const char pxConfigDescriptor[] = { 0x01, /* bNumEndpoints */ 0x03, /* bInterfaceClass: HID code */ 0x00, /* bInterfaceSubclass */ - 0x00, /* bInterfaceProtocol */ + 0x01, /* bInterfaceProtocol */ usbINTERFACE_STRING,/* iInterface */ /* HID Descriptor */ diff --git a/Demo/lwIP_Demo_Rowley_ARM7/USB/descriptors.h b/Demo/lwIP_Demo_Rowley_ARM7/USB/descriptors.h index b79ddc075..2a0f7cf50 100644 --- a/Demo/lwIP_Demo_Rowley_ARM7/USB/descriptors.h +++ b/Demo/lwIP_Demo_Rowley_ARM7/USB/descriptors.h @@ -148,7 +148,7 @@ const char pxConfigDescriptor[] = { 0x01, /* bNumEndpoints */ 0x02, /* bInterfaceClass: Comm Interface Class */ 0x02, /* bInterfaceSubclass: Abstract Control Model*/ - 0x00, /* bInterfaceProtocol */ + 0x01, /* bInterfaceProtocol */ usbINTERFACE_STRING,/* iInterface */ /* Header Functional Descriptor */ @@ -196,7 +196,7 @@ const char pxConfigDescriptor[] = { 0x02, /* bNumEndPoints */ 0x0A, /* bInterfaceClass */ 0x00, /* bInterfaceSubclass */ - 0x00, /* bInterfaceProtocol */ + 0x01, /* bInterfaceProtocol */ 0x00, /* iInterface */ /* CDC Data - Endpoint 1 descriptor */