stm32_mw_usb_device icon indicating copy to clipboard operation
stm32_mw_usb_device copied to clipboard

Case Error

Open GertLauritsen opened this issue 3 years ago • 2 comments

In line 49 in usbd_desc_template.c the funktion is declared, but when it's going to be used in 68, the funktion is with the wrong case

#if (USBD_CLASS_USER_STRING_DESC == 1) uint8_t *USBD_Class_UserStrDescriptor(USBD_SpeedTypeDef speed, uint8_t idx, uint16_t length); #endif / USB_CLASS_USER_STRING_DESC */

#if ((USBD_LPM_ENABLED == 1) || (USBD_CLASS_BOS_ENABLED == 1)) uint8_t *USBD_USR_BOSDescriptor(USBD_SpeedTypeDef speed, uint16_t length); #endif / (USBD_LPM_ENABLED == 1) || (USBD_CLASS_BOS_ENABLED == 1) */

/* Private variables ---------------------------------------------------------/ USBD_DescriptorsTypeDef Class_Desc = { USBD_Class_DeviceDescriptor, USBD_Class_LangIDStrDescriptor, USBD_Class_ManufacturerStrDescriptor, USBD_Class_ProductStrDescriptor, USBD_Class_SerialStrDescriptor, USBD_Class_ConfigStrDescriptor, USBD_Class_InterfaceStrDescriptor, #if (USBD_CLASS_USER_STRING_DESC == 1) USBD_CLASS_UserStrDescriptor, #endif / USB_CLASS_USER_STRING_DESC */

GertLauritsen avatar Jun 22 '22 11:06 GertLauritsen

Hi @GertLauritsen,

First of all, please excuse this delayed reply. Thank you for having reported this not-so-easy to spot issue. Already forwarded to our development teams.

With regards,

ALABSTM avatar Feb 13 '24 13:02 ALABSTM

ST Internal Reference: 173348

ALABSTM avatar Feb 13 '24 13:02 ALABSTM