Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
49d0c22b
Commit
49d0c22b
authored
Sep 20, 2023
by
Damien George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stm32/mboot: Expand device descriptor to make it easier to understand.
Signed-off-by:
Damien George
<
damien@micropython.org
>
parent
859f2196
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
ports/stm32/mboot/main.c
ports/stm32/mboot/main.c
+12
-2
No files found.
ports/stm32/mboot/main.c
View file @
49d0c22b
...
...
@@ -1024,10 +1024,20 @@ __ALIGN_BEGIN static const uint8_t USBD_LangIDDesc[USB_LEN_LANGID_STR_DESC] __AL
};
static
const
uint8_t
dev_descr
[
0x12
]
=
{
0x12
,
0x01
,
0x00
,
0x01
,
0x00
,
0x00
,
0x00
,
0x40
,
0x12
,
// bLength
0x01
,
// bDescriptorType: Device
0x00
,
0x01
,
// USB version: 1.00
0x00
,
// bDeviceClass
0x00
,
// bDeviceSubClass
0x00
,
// bDeviceProtocol
0x40
,
// bMaxPacketSize
LOBYTE
(
MBOOT_USB_VID
),
HIBYTE
(
MBOOT_USB_VID
),
LOBYTE
(
MBOOT_USB_PID
),
HIBYTE
(
MBOOT_USB_PID
),
0x00
,
0x22
,
0x01
,
0x02
,
0x03
,
0x01
0x00
,
0x22
,
// bcdDevice: 22.00
0x01
,
// iManufacturer
0x02
,
// iProduct
0x03
,
// iSerialNumber
0x01
,
// bNumConfigurations: 1
};
// This may be modified by USBD_GetDescriptor
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment