@@ -143,7 +143,7 @@ __ALIGN_BEGIN static uint8_t USBD_HID_CfgFSDesc[USB_COMPOSITE_HID_CONFIG_DESC_SI
143
143
HIBYTE (USB_COMPOSITE_HID_CONFIG_DESC_SIZ ),
144
144
0x02 , /*bNumInterfaces: 2 interface*/
145
145
0x01 , /*bConfigurationValue: Configuration value*/
146
- 0x00 , /*iConfiguration: Index of string descriptor describing
146
+ USBD_IDX_CONFIG_STR , /*iConfiguration: Index of string descriptor describing
147
147
the configuration*/
148
148
0xC0 , /*bmAttributes: bus powered and no Support Remote Wake-up */
149
149
0x32 , /*MaxPower 100 mA: this current is used for detecting Vbus*/
@@ -158,7 +158,7 @@ __ALIGN_BEGIN static uint8_t USBD_HID_CfgFSDesc[USB_COMPOSITE_HID_CONFIG_DESC_SI
158
158
0x03 , /*bInterfaceClass: HID*/
159
159
0x01 , /*bInterfaceSubClass : 1=BOOT, 0=no boot*/
160
160
0x02 , /*nInterfaceProtocol : 0=none, 1=keyboard, 2=mouse*/
161
- 0x00 , /*iInterface: Index of string descriptor*/
161
+ USBD_IDX_INTERFACE_STR , /*iInterface: Index of string descriptor*/
162
162
/******************** Descriptor of Joystick Mouse HID ********************/
163
163
/* 18 */
164
164
0x09 , /*bLength: HID Descriptor size*/
@@ -194,7 +194,7 @@ __ALIGN_BEGIN static uint8_t USBD_HID_CfgFSDesc[USB_COMPOSITE_HID_CONFIG_DESC_SI
194
194
0x03 , /*bInterfaceClass: HID*/
195
195
0x01 , /*bInterfaceSubClass : 1=BOOT, 0=no boot*/
196
196
0x01 , /*nInterfaceProtocol : 0=none, 1=keyboard, 2=mouse*/
197
- 0x00 , /*iInterface: Index of string descriptor*/
197
+ USBD_IDX_INTERFACE_STR , /*iInterface: Index of string descriptor*/
198
198
/******************** HID Descriptor ********************/
199
199
/* 43 */
200
200
0x09 , /*bLength: HID Descriptor size*/
@@ -226,7 +226,7 @@ __ALIGN_BEGIN static uint8_t USBD_HID_CfgHSDesc[USB_COMPOSITE_HID_CONFIG_DESC_SI
226
226
HIBYTE (USB_COMPOSITE_HID_CONFIG_DESC_SIZ ),
227
227
0x02 , /*bNumInterfaces: 2 interface*/
228
228
0x01 , /*bConfigurationValue: Configuration value*/
229
- 0x00 , /*iConfiguration: Index of string descriptor describing
229
+ USBD_IDX_CONFIG_STR , /*iConfiguration: Index of string descriptor describing
230
230
the configuration*/
231
231
0xC0 , /*bmAttributes: bus powered and no Support Remote Wake-up */
232
232
0x32 , /*MaxPower 100 mA: this current is used for detecting Vbus*/
@@ -241,7 +241,7 @@ __ALIGN_BEGIN static uint8_t USBD_HID_CfgHSDesc[USB_COMPOSITE_HID_CONFIG_DESC_SI
241
241
0x03 , /*bInterfaceClass: HID*/
242
242
0x01 , /*bInterfaceSubClass : 1=BOOT, 0=no boot*/
243
243
0x02 , /*nInterfaceProtocol : 0=none, 1=keyboard, 2=mouse*/
244
- 0 , /*iInterface: Index of string descriptor*/
244
+ USBD_IDX_INTERFACE_STR , /*iInterface: Index of string descriptor*/
245
245
/******************** Descriptor of Joystick Mouse HID ********************/
246
246
/* 18 */
247
247
0x09 , /*bLength: HID Descriptor size*/
@@ -277,7 +277,7 @@ __ALIGN_BEGIN static uint8_t USBD_HID_CfgHSDesc[USB_COMPOSITE_HID_CONFIG_DESC_SI
277
277
0x03 , /*bInterfaceClass: HID*/
278
278
0x01 , /*bInterfaceSubClass : 1=BOOT, 0=no boot*/
279
279
0x01 , /*nInterfaceProtocol : 0=none, 1=keyboard, 2=mouse*/
280
- 0x00 , /*iInterface: Index of string descriptor*/
280
+ USBD_IDX_INTERFACE_STR , /*iInterface: Index of string descriptor*/
281
281
/******************** HID Descriptor ********************/
282
282
/* 43 */
283
283
0x09 , /*bLength: HID Descriptor size*/
@@ -309,7 +309,7 @@ __ALIGN_BEGIN static uint8_t USBD_HID_OtherSpeedCfgDesc[USB_COMPOSITE_HID_CONFIG
309
309
HIBYTE (USB_COMPOSITE_HID_CONFIG_DESC_SIZ ),
310
310
0x02 , /*bNumInterfaces: 2 interface*/
311
311
0x01 , /*bConfigurationValue: Configuration value*/
312
- 0x00 , /*iConfiguration: Index of string descriptor describing
312
+ USBD_IDX_CONFIG_STR , /*iConfiguration: Index of string descriptor describing
313
313
the configuration*/
314
314
0xC0 , /*bmAttributes: bus powered and no Support Remote Wake-up */
315
315
0x32 , /*MaxPower 100 mA: this current is used for detecting Vbus*/
@@ -324,7 +324,7 @@ __ALIGN_BEGIN static uint8_t USBD_HID_OtherSpeedCfgDesc[USB_COMPOSITE_HID_CONFIG
324
324
0x03 , /*bInterfaceClass: HID*/
325
325
0x01 , /*bInterfaceSubClass : 1=BOOT, 0=no boot*/
326
326
0x02 , /*nInterfaceProtocol : 0=none, 1=keyboard, 2=mouse*/
327
- 0 , /*iInterface: Index of string descriptor*/
327
+ USBD_IDX_INTERFACE_STR , /*iInterface: Index of string descriptor*/
328
328
/******************** Descriptor of Joystick Mouse HID ********************/
329
329
/* 18 */
330
330
0x09 , /*bLength: HID Descriptor size*/
@@ -360,7 +360,7 @@ __ALIGN_BEGIN static uint8_t USBD_HID_OtherSpeedCfgDesc[USB_COMPOSITE_HID_CONFIG
360
360
0x03 , /*bInterfaceClass: HID*/
361
361
0x01 , /*bInterfaceSubClass : 1=BOOT, 0=no boot*/
362
362
0x01 , /*nInterfaceProtocol : 0=none, 1=keyboard, 2=mouse*/
363
- 0x00 , /*iInterface: Index of string descriptor*/
363
+ USBD_IDX_INTERFACE_STR , /*iInterface: Index of string descriptor*/
364
364
/******************** HID Descriptor ********************/
365
365
/* 43 */
366
366
0x09 , /*bLength: HID Descriptor size*/
0 commit comments