From 30a5b024c3485ba4de1271ffc3eedbf14c55bf71 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 31 Jul 2011 18:09:42 +0200 Subject: USBD: Add support for up to 4 configurations per device This is implemented by using a pointer array for the config descriptors --- at91lib/usb/device/cdc-serial/CDCDSerialDriverDescriptors.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'at91lib/usb/device/cdc-serial') diff --git a/at91lib/usb/device/cdc-serial/CDCDSerialDriverDescriptors.c b/at91lib/usb/device/cdc-serial/CDCDSerialDriverDescriptors.c index 349380c..dd3f38e 100644 --- a/at91lib/usb/device/cdc-serial/CDCDSerialDriverDescriptors.c +++ b/at91lib/usb/device/cdc-serial/CDCDSerialDriverDescriptors.c @@ -608,14 +608,14 @@ const unsigned char *stringDescriptors[] = { USBDDriverDescriptors cdcdSerialDriverDescriptors = { &deviceDescriptor, - (USBConfigurationDescriptor *) &(configurationDescriptors), + { (USBConfigurationDescriptor *) &(configurationDescriptors) }, #ifdef BOARD_USB_UDPHS &qualifierDescriptor, - (USBConfigurationDescriptor *) &(otherSpeedDescriptorsFS), + { (USBConfigurationDescriptor *) &(otherSpeedDescriptorsFS) }, &deviceDescriptor, - (USBConfigurationDescriptor *) &(configurationDescriptorsHS), + { (USBConfigurationDescriptor *) &(configurationDescriptorsHS) }, &qualifierDescriptor, - (USBConfigurationDescriptor *) &(otherSpeedDescriptorsHS), + { (USBConfigurationDescriptor *) &(otherSpeedDescriptorsHS) }, #else 0, // No full-speed device qualifier descriptor 0, // No full-speed other speed configuration -- cgit v1.2.3