@@ -127,6 +127,98 @@ __ALIGN_BEGIN uint8_t USBD_FS_BOSDesc[USB_SIZ_BOS_DESC] __ALIGN_END =
127127};
128128#endif /* USBD_CLASS_BOS_ENABLED == 1 */
129129
130+ #if (USBD_CLASS_BOS_ENABLED == 1 )
131+ #if defined ( __ICCARM__ ) /* IAR Compiler */
132+ #pragma data_alignment=4
133+ #endif /* defined ( __ICCARM__ ) */
134+ __ALIGN_BEGIN uint8_t USBD_FS_OSDescSet [USB_SIZ_MS_OS_DSCRPTR_SET ] __ALIGN_END =
135+ {
136+ 0x0A , 0x00 , /* wLength = 10 */
137+ 0x00 , 0x00 , /* wDescriptorType = MS_OS_20_SET_HEADER_DESCRIPTOR */
138+ 0x00 , 0x00 , 0x03 , 0x06 , /* dwWindowsVersion = 0x06030000 for Windows 8.1 Build */
139+ LOBYTE (USB_SIZ_MS_OS_DSCRPTR_SET ), /* wTotalLength */
140+ HIBYTE (USB_SIZ_MS_OS_DSCRPTR_SET ), /* wTotalLength (cont.) */
141+
142+ 0x14 , 0x00 , /* wLength = 20 */
143+ 0x03 , 0x00 , /* wDescriptorType = MS_OS_20_FEATURE_COMPATBLE_ID */
144+ 'W' , 'I' , 'N' , 'U' , 'S' , 'B' , /* CompatibleID */
145+ 0x00 , 0x00 , /* CompatibleID (cont.) */
146+ 0x00 , 0x00 , 0x00 , 0x00 , /* SubCompatibleID */
147+ 0x00 , 0x00 , 0x00 , 0x00 , /* SubCompatibleID (cont.) */
148+
149+ 0x82 , 0x00 , /* wLength = 130 */
150+ 0x04 , 0x00 , /* wDescriptorType = MS_OS_20_FEATURE_REG_PROPERTY */
151+ 0x07 , 0x00 , /* wStringType = REG_MULTI_SZ */
152+ /* wPropertyNameLength = 42 */
153+ 0x2A , 0x00 ,
154+ /* PropertyName = DeviceInterfaceGUIDs */
155+ 'D' , '\0' ,
156+ 'e' , '\0' ,
157+ 'v' , '\0' ,
158+ 'i' , '\0' ,
159+ 'c' , '\0' ,
160+ 'e' , '\0' ,
161+ 'I' , '\0' ,
162+ 'n' , '\0' ,
163+ 't' , '\0' ,
164+ 'e' , '\0' ,
165+ 'r' , '\0' ,
166+ 'f' , '\0' ,
167+ 'a' , '\0' ,
168+ 'c' , '\0' ,
169+ 'e' , '\0' ,
170+ 'G' , '\0' ,
171+ 'U' , '\0' ,
172+ 'I' , '\0' ,
173+ 'D' , '\0' ,
174+ 's' , '\0' ,
175+ '\0' , '\0' ,
176+
177+ /* wPropertyDataLength = 78 */
178+ 0x4E , 0x00 ,
179+ /* PropertyData = {A5C44A4C-53D4-4389-9821-AE95051908A1} */
180+ '{' , '\0' ,
181+ 'A' , '\0' ,
182+ '5' , '\0' ,
183+ 'C' , '\0' ,
184+ '4' , '\0' ,
185+ '4' , '\0' ,
186+ 'A' , '\0' ,
187+ '4' , '\0' ,
188+ 'C' , '\0' ,
189+ '-' , '\0' ,
190+ '5' , '\0' ,
191+ '3' , '\0' ,
192+ 'D' , '\0' ,
193+ '4' , '\0' ,
194+ '-' , '\0' ,
195+ '4' , '\0' ,
196+ '3' , '\0' ,
197+ '8' , '\0' ,
198+ '9' , '\0' ,
199+ '-' , '\0' ,
200+ '9' , '\0' ,
201+ '8' , '\0' ,
202+ '2' , '\0' ,
203+ '1' , '\0' ,
204+ '-' , '\0' ,
205+ 'A' , '\0' ,
206+ 'E' , '\0' ,
207+ '9' , '\0' ,
208+ '5' , '\0' ,
209+ '0' , '\0' ,
210+ '5' , '\0' ,
211+ '1' , '\0' ,
212+ '9' , '\0' ,
213+ '0' , '\0' ,
214+ '8' , '\0' ,
215+ 'A' , '\0' ,
216+ '1' , '\0' ,
217+ '}' , '\0' ,
218+ '\0' , '\0'
219+ };
220+ #endif /* USBD_CLASS_BOS_ENABLED == 1 */
221+
130222/* USB Standard Device Descriptor */
131223__ALIGN_BEGIN uint8_t USBD_LangIDDesc [USB_LEN_LANGID_STR_DESC ] __ALIGN_END = {
132224 USB_LEN_LANGID_STR_DESC ,
0 commit comments