fixed building errors with device example

This commit is contained in:
hathach
2012-12-04 11:30:34 +07:00
parent 921561be60
commit 8f00307986
9 changed files with 13 additions and 10 deletions

View File

@@ -422,6 +422,7 @@
</profile>
</scannerConfigBuildInfo>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.language.mapping"/>
</cconfiguration>
<cconfiguration id="com.crt.advproject.config.exe.release.2127212492">
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.crt.advproject.config.exe.release.2127212492" moduleId="org.eclipse.cdt.core.settings" name="Release">
@@ -825,6 +826,7 @@
</profile>
</scannerConfigBuildInfo>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.language.mapping"/>
</cconfiguration>
</storageModule>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">

View File

@@ -173,7 +173,7 @@ ATTR_ALIGNED(4) const USB_FS_CONFIGURATION_DESCRIPTOR USB_FsConfigDescriptor =
// IAD points to CDC Interfaces
.CDC_IAD =
{
.bLength = sizeof(USB_INTERFACE_ASSOCIATION_DESCRIPTOR),
.bLength = sizeof(USB_Descriptor_InterfaceAssociation_t),
.bDescriptorType = USB_INTERFACE_ASSOCIATION_DESCRIPTOR_TYPE,
.bFirstInterface = 0,

View File

@@ -118,7 +118,7 @@ typedef struct
USB_CONFIGURATION_DESCRIPTOR Config;
#if IAD_DESC_REQUIRED
USB_INTERFACE_ASSOCIATION_DESCRIPTOR CDC_IAD;
USB_Descriptor_InterfaceAssociation_t CDC_IAD;
#endif
#ifdef CFG_CLASS_CDC