summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-07-12 18:51:57 +0700
committerhathach <[email protected]>2021-07-12 18:51:57 +0700
commit2916cd45753ca579ee1d0b475b2daf3f715243b6 (patch)
tree158cf9a2abf95141d1e1b6872ec42cf985431b2f /examples
parent134ed995c82635d509621e40568b57309fc26101 (diff)
rename TUD_DFU_MODE_DESCRIPTOR to TUD_DFU_DESCRIPTOR
Diffstat (limited to 'examples')
-rw-r--r--examples/device/dfu/src/tusb_config.h2
-rw-r--r--examples/device/dfu/src/usb_descriptors.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/device/dfu/src/tusb_config.h b/examples/device/dfu/src/tusb_config.h
index 55aa19922..7e10b4321 100644
--- a/examples/device/dfu/src/tusb_config.h
+++ b/examples/device/dfu/src/tusb_config.h
@@ -83,7 +83,7 @@
// Count of all alt settings, typically it's the partition count (Flash, EEPROM, etc.)
#define CFG_TUD_DFU_ALT_COUNT 2
-// DFU buffer size, it has to be set to the buffer size used in TUD_DFU_MODE_DESCRIPTOR
+// DFU buffer size, it has to be set to the buffer size used in TUD_DFU_DESCRIPTOR
#define CFG_TUD_DFU_TRANSFER_BUFFER_SIZE 4096
#ifdef __cplusplus
diff --git a/examples/device/dfu/src/usb_descriptors.c b/examples/device/dfu/src/usb_descriptors.c
index 8c5eee455..870c18a04 100644
--- a/examples/device/dfu/src/usb_descriptors.c
+++ b/examples/device/dfu/src/usb_descriptors.c
@@ -97,7 +97,7 @@ uint8_t const desc_configuration[] =
TUD_CONFIG_DESCRIPTOR(1, ITF_NUM_TOTAL, 0, CONFIG_TOTAL_LEN, TUSB_DESC_CONFIG_ATT_REMOTE_WAKEUP, 100),
// Interface number, attributes, detach timeout, transfer size, string index 0, [string index 1 ... string index n]
- TUD_DFU_MODE_DESCRIPTOR(ITF_NUM_DFU_MODE, FUNC_ATTRS, 1000, CFG_TUD_DFU_TRANSFER_BUFFER_SIZE, 4, 5),
+ TUD_DFU_DESCRIPTOR(ITF_NUM_DFU_MODE, FUNC_ATTRS, 1000, CFG_TUD_DFU_TRANSFER_BUFFER_SIZE, 4, 5),
};
// Invoked when received GET CONFIGURATION DESCRIPTOR