Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd24a022

Browse files
author
fpr
committed
Update USB descriptor file to add product name in the string
Signed-off-by: fpr <fabien.perroquin@wi6labs.com>
1 parente09e57c commitd24a022

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎variants/DISCO_L475VG_IOT/usb/usbd_desc.c‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
#include"usbd_core.h"
5050
#include"usbd_desc.h"
5151
#include"usbd_conf.h"
52+
#include"utils.h"
5253

5354
/* Private typedef -----------------------------------------------------------*/
5455
/* Private define ------------------------------------------------------------*/
@@ -66,9 +67,9 @@
6667
#defineUSBD_MANUFACTURER_STRING "Unknown"
6768
#endif/* USBD_VID */
6869
#ifdefUSBD_USE_HID_COMPOSITE
69-
#defineUSBD_HID_PRODUCT_FS_STRING "HID in FS Mode"
70-
#defineUSBD_HID_CONFIGURATION_FS_STRING "HID Config"
71-
#defineUSBD_HID_INTERFACE_FS_STRING "HID Interface"
70+
#defineUSBD_HID_PRODUCT_FS_STRINGCONCATS(USB_PRODUCT,"HID in FS Mode")
71+
#defineUSBD_HID_CONFIGURATION_FS_STRINGCONCATS(USB_PRODUCT,"HID Config")
72+
#defineUSBD_HID_INTERFACE_FS_STRINGCONCATS(USB_PRODUCT,"HID Interface")
7273

7374
/* Private macro -------------------------------------------------------------*/
7475
/* Private function prototypes -----------------------------------------------*/;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp