summaryrefslogtreecommitdiff
path: root/examples/host/hid_controller
diff options
context:
space:
mode:
authorhathach <[email protected]>2026-06-29 10:42:41 +0700
committerhathach <[email protected]>2026-06-29 10:42:41 +0700
commitba32b46ebd5304812d521cd30cfdb5b284341f69 (patch)
tree0a13dc4331c8416429da9c63948074d0552279cd /examples/host/hid_controller
parent4b1c8d16f72bb5d8f2eb8a2e8dde35abdd2f2a88 (diff)
docs: address Copilot review on the example READMEs
- Order CFG_TUH_DEVICE_MAX before CFG_TUH_HID in the host config snippets (cdc_msc_hid, hid_controller) so the documented snippet has no forward macro reference when copied into tusb_config.h. - Fix stale `examples.rst` references: the generator now writes per-group `docs/examples/<group>/index.rst` pages, so update the conf.py comment and the build-doc SKILL.md accordingly. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'examples/host/hid_controller')
-rw-r--r--examples/host/hid_controller/README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/host/hid_controller/README.md b/examples/host/hid_controller/README.md
index 861f89c5e..02dac493f 100644
--- a/examples/host/hid_controller/README.md
+++ b/examples/host/hid_controller/README.md
@@ -22,8 +22,8 @@ Notable `tusb_config.h` settings:
```c
#define CFG_TUH_ENABLED 1
#define CFG_TUH_HUB 0
-#define CFG_TUH_HID (3*CFG_TUH_DEVICE_MAX)
#define CFG_TUH_DEVICE_MAX (3*CFG_TUH_HUB + 1)
+#define CFG_TUH_HID (3*CFG_TUH_DEVICE_MAX)
#define CFG_TUH_HID_EP_BUFSIZE 64
```