diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-07-31 18:09:42 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-07-31 18:09:42 +0200 |
commit | 30a5b024c3485ba4de1271ffc3eedbf14c55bf71 (patch) | |
tree | 00838f53187bc86dc29a87142e89d90add0c2527 /at91lib/usb/device/ccid | |
parent | cfe1806207a60775f699a78ec9d8c0cf4a709b56 (diff) |
USBD: Add support for up to 4 configurations per device
This is implemented by using a pointer array for the config descriptors
Diffstat (limited to 'at91lib/usb/device/ccid')
-rw-r--r-- | at91lib/usb/device/ccid/cciddriver.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/at91lib/usb/device/ccid/cciddriver.c b/at91lib/usb/device/ccid/cciddriver.c index 989345e..3db9065 100644 --- a/at91lib/usb/device/ccid/cciddriver.c +++ b/at91lib/usb/device/ccid/cciddriver.c @@ -597,14 +597,14 @@ static const unsigned char *stringDescriptors[] = { const USBDDriverDescriptors ccidDriverDescriptors = {
&deviceDescriptor, // FS
- (USBConfigurationDescriptor *) &configurationDescriptorsFS,
+ { (USBConfigurationDescriptor *) &configurationDescriptorsFS },
#ifdef BOARD_USB_UDPHS
(USBDeviceQualifierDescriptor *) &deviceQualifierDescriptor, // FS
- (USBConfigurationDescriptor *) &sOtherSpeedConfigurationFS,
+ { (USBConfigurationDescriptor *) &sOtherSpeedConfigurationFS },
&deviceDescriptor, // HS
- (USBConfigurationDescriptor *) &configurationDescriptorsHS,
+ { (USBConfigurationDescriptor *) &configurationDescriptorsHS },
(USBDeviceQualifierDescriptor *) &deviceQualifierDescriptor, // HS
- (USBConfigurationDescriptor *) &sOtherSpeedConfigurationHS,
+ { (USBConfigurationDescriptor *) &sOtherSpeedConfigurationHS },
#else
0, // No qualifier descriptor FS
0, // No other-speed configuration FS
|