Skip to content

Commit 729079b

Browse files
Apex P/M: Update USB config
1 parent 8b76844 commit 729079b

File tree

1 file changed

+31
-6
lines changed

1 file changed

+31
-6
lines changed

lib_stusb_impl/usbd_impl.c

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -246,14 +246,14 @@ static uint8_t const USBD_PRODUCT_FS_STRING[] = {
246246
'e', 0,
247247
'x', 0,
248248
};
249-
#elif defined(TARGET_APEX)
249+
#elif defined(TARGET_APEX_P)
250250
#ifndef HAVE_LEGACY_PID
251-
#define USBD_PID 0x7000
251+
#define USBD_PID 0x8000
252252
#else // HAVE_LEGACY_PID
253-
#define USBD_PID 0x0007
253+
#define USBD_PID 0x0008
254254
#endif // HAVE_LEGACY_PID
255255
static uint8_t const USBD_PRODUCT_FS_STRING[] = {
256-
11*2+2,
256+
13*2+2,
257257
USB_DESC_TYPE_STRING,
258258
'L', 0,
259259
'e', 0,
@@ -262,10 +262,35 @@ static uint8_t const USBD_PRODUCT_FS_STRING[] = {
262262
'e', 0,
263263
'r', 0,
264264
' ', 0,
265-
'F', 0,
266-
'l', 0,
265+
'A', 0,
266+
'p', 0,
267267
'e', 0,
268268
'x', 0,
269+
' ', 0,
270+
'P', 0,
271+
};
272+
#elif defined(TARGET_APEX_M)
273+
#ifndef HAVE_LEGACY_PID
274+
#define USBD_PID 0x9000
275+
#else // HAVE_LEGACY_PID
276+
#define USBD_PID 0x0009
277+
#endif // HAVE_LEGACY_PID
278+
static uint8_t const USBD_PRODUCT_FS_STRING[] = {
279+
13*2+2,
280+
USB_DESC_TYPE_STRING,
281+
'L', 0,
282+
'e', 0,
283+
'd', 0,
284+
'g', 0,
285+
'e', 0,
286+
'r', 0,
287+
' ', 0,
288+
'A', 0,
289+
'p', 0,
290+
'e', 0,
291+
'x', 0,
292+
' ', 0,
293+
'M', 0,
269294
};
270295
#else
271296
#error unknown TARGET_NAME

0 commit comments

Comments
 (0)