diff options
| author | Zixun LI <[email protected]> | 2025-11-21 17:02:37 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-11-21 17:02:37 +0100 |
| commit | ad34b92f0ee7242fcacef1137dc075dcd0c97b2a (patch) | |
| tree | b9eee66f372fe9817e714baebc2fb0b73379e7b9 /src | |
| parent | a6df41d895bb19eecbd16cab9471c82681785d11 (diff) | |
Apply suggestions from code review
Co-authored-by: Copilot <[email protected]>
Diffstat (limited to 'src')
| -rw-r--r-- | src/device/usbd.h | 6 |
1 files 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); |
