From ad34b92f0ee7242fcacef1137dc075dcd0c97b2a Mon Sep 17 00:00:00 2001 From: Zixun LI Date: Fri, 21 Nov 2025 17:02:37 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/device/usbd.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/device/usbd.h b/src/device/usbd.h index 781688a8a..efde9377f 100644 --- a/src/device/usbd.h +++ b/src/device/usbd.h @@ -33,7 +33,7 @@ extern "C" { #endif -// ConfigID for tuh_configure() +// ConfigID for tud_configure() enum { TUD_CFGID_INVALID = 0, TUD_CFGID_DWC2 = 100, @@ -52,8 +52,8 @@ typedef union { //--------------------------------------------------------------------+ // Configure device stack behavior with dynamic or port-specific parameters. -// Should be called before tud_init() -// - cfg_id : configure ID (TBD) +// Should be called before initialization of the device stack +// - cfg_id : configure ID from TUD_CFGID_* enum values // - cfg_param: configure data, structure depends on the ID bool tud_configure(uint8_t rhport, uint32_t cfg_id, const void* cfg_param);