summaryrefslogtreecommitdiff
path: root/at91lib/usb/device/composite
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-07-31 18:09:42 +0200
committerHarald Welte <laforge@gnumonks.org>2011-07-31 18:09:42 +0200
commit30a5b024c3485ba4de1271ffc3eedbf14c55bf71 (patch)
tree00838f53187bc86dc29a87142e89d90add0c2527 /at91lib/usb/device/composite
parentcfe1806207a60775f699a78ec9d8c0cf4a709b56 (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/composite')
-rw-r--r--at91lib/usb/device/composite/COMPOSITEDDriverDescriptors.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/at91lib/usb/device/composite/COMPOSITEDDriverDescriptors.c b/at91lib/usb/device/composite/COMPOSITEDDriverDescriptors.c
index 1769769..3229385 100644
--- a/at91lib/usb/device/composite/COMPOSITEDDriverDescriptors.c
+++ b/at91lib/usb/device/composite/COMPOSITEDDriverDescriptors.c
@@ -884,14 +884,14 @@ const unsigned char *stringDescriptors[] = {
const USBDDriverDescriptors compositedDriverDescriptors = {
&deviceDescriptor,
- (const USBConfigurationDescriptor *) &configurationDescriptors,
+ { (const USBConfigurationDescriptor *) &configurationDescriptors },
#ifdef BOARD_USB_UDPHS
&qualifierDescriptor,
- (const USBConfigurationDescriptor *) &configurationDescriptors,
+ { (const USBConfigurationDescriptor *) &configurationDescriptors },
&deviceDescriptor,
- (const USBConfigurationDescriptor *) &configurationDescriptors,
+ { (const USBConfigurationDescriptor *) &configurationDescriptors },
&qualifierDescriptor,
- (const USBConfigurationDescriptor *) &configurationDescriptors,
+ { (const USBConfigurationDescriptor *) &configurationDescriptors },
#else
0, 0, 0, 0, 0, 0,
#endif
personal git repositories of Harald Welte. Your mileage may vary