dfu: fix USB DFU descriptor

This commit is contained in:
King Kévin 2022-07-24 16:45:30 +02:00
parent 2a3617658a
commit d76f6ee6df
1 changed files with 3 additions and 2 deletions

View File

@ -44,9 +44,10 @@ uint8_t const desc_configuration[] = {
// Interface number, string index, protocol, report descriptor len, EP In address, size & polling interval
TUD_HID_DESCRIPTOR(ITF_NUM_HID, 6, HID_PROTOCOL_NONE, sizeof(desc_hid_report), 0x84, 16, 10),
# endif
# if CFG_TUD_DFU_RUNTIME
// Interface number, string index, attributes, detach timeout, transfer size */
TUD_DFU_RT_DESCRIPTOR(ITF_NUM_DFU_RT, 7, 0x0d, 1000, 4096),
TUD_DFU_RT_DESCRIPTOR(ITF_NUM_DFU_RT, 7, 0x0f, 1000, 512), // allow detach, manifest, upload, download; set transfer size to high speed 512
# endif
};
// =============================================================================