diff options
| author | Ha Thach <[email protected]> | 2026-06-29 12:56:16 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-06-29 12:56:16 +0700 |
| commit | 40f4c12c6be504031d2e2808f191134739206b5e (patch) | |
| tree | 6206237e2f08aed4d0570daa65bf88e45e7de8f8 /examples/dual/dynamic_switch | |
| parent | be22838b081ad90f6b312e1da6fc1b1653e3c5ae (diff) | |
| parent | ba32b46ebd5304812d521cd30cfdb5b284341f69 (diff) | |
Merge pull request #3743 from hathach/claude/build-doc-skill
docs: add build-doc tooling and a README for every example
Diffstat (limited to 'examples/dual/dynamic_switch')
| -rw-r--r-- | examples/dual/dynamic_switch/README.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/dual/dynamic_switch/README.md b/examples/dual/dynamic_switch/README.md index 034787f18..94b161480 100644 --- a/examples/dual/dynamic_switch/README.md +++ b/examples/dual/dynamic_switch/README.md @@ -9,6 +9,17 @@ This example demonstrates TinyUSB's dual-role capability by allowing runtime swi - **Host Mode**: Enumerates connected USB devices and prints device information - **Dynamic switching**: Deinitializes the current stack and reinitializes in the new mode +## Configuration + +Notable `tusb_config.h` settings: + +```c +#define CFG_TUD_CDC 1 +#define CFG_TUH_HUB 1 +#define CFG_TUH_DEVICE_MAX (CFG_TUH_HUB ? 4 : 1) +#define CFG_TUH_ENUMERATION_BUFSIZE 256 +``` + ## Usage 1. **Build and flash** the example to your board |
