@@ -134,7 +134,7 @@ __ALIGN_BEGIN static uint8_t USBD_LangIDDesc[USB_LEN_LANGID_STR_DESC] __ALIGN_EN
134134 HIBYTE (USBD_LANGID_STRING ),
135135};
136136
137- uint8_t USBD_StringSerial [USB_SIZ_STRING_SERIAL ] =
137+ static uint8_t USBD_StringSerial [USB_SIZ_STRING_SERIAL ] =
138138{
139139 USB_SIZ_STRING_SERIAL ,
140140 USB_DESC_TYPE_STRING ,
@@ -158,6 +158,7 @@ static void Get_SerialNum(void);
158158 */
159159uint8_t * USBD_HID_DeviceDescriptor (USBD_SpeedTypeDef speed , uint16_t * length )
160160{
161+ UNUSED (speed );
161162 * length = sizeof (USBD_DeviceDesc );
162163 return (uint8_t * )USBD_DeviceDesc ;
163164}
@@ -170,6 +171,7 @@ uint8_t *USBD_HID_DeviceDescriptor(USBD_SpeedTypeDef speed, uint16_t *length)
170171 */
171172uint8_t * USBD_HID_LangIDStrDescriptor (USBD_SpeedTypeDef speed , uint16_t * length )
172173{
174+ UNUSED (speed );
173175 * length = sizeof (USBD_LangIDDesc );
174176 return (uint8_t * )USBD_LangIDDesc ;
175177}
@@ -201,6 +203,7 @@ uint8_t *USBD_HID_ProductStrDescriptor(USBD_SpeedTypeDef speed, uint16_t *length
201203 */
202204uint8_t * USBD_HID_ManufacturerStrDescriptor (USBD_SpeedTypeDef speed , uint16_t * length )
203205{
206+ UNUSED (speed );
204207 USBD_GetString ((uint8_t * )USBD_MANUFACTURER_STRING , USBD_StrDesc , length );
205208 return USBD_StrDesc ;
206209}
@@ -213,6 +216,7 @@ uint8_t *USBD_HID_ManufacturerStrDescriptor(USBD_SpeedTypeDef speed, uint16_t *l
213216 */
214217uint8_t * USBD_HID_SerialStrDescriptor (USBD_SpeedTypeDef speed , uint16_t * length )
215218{
219+ UNUSED (speed );
216220 * length = USB_SIZ_STRING_SERIAL ;
217221
218222 /* Update the serial number string descriptor with the data from the unique ID*/
@@ -282,7 +286,7 @@ static void Get_SerialNum(void)
282286}
283287
284288/**
285- * @brief Convert Hex 32Bits value into char
289+ * @brief Convert Hex 32Bits value into char
286290 * @param value: value to convert
287291 * @param pbuf: pointer to the buffer
288292 * @param len: buffer length
0 commit comments