Commit d600130
usb: enumerate as "Spore" via a vendored descriptor override (no submodule edits)
The USB VID/PID/name live in libDaisy's src/usbd/usbd_desc.c as unguarded #defines,
so they can't be overridden with -D. Instead vendor a copy as src/usb_identity.c with
Product="Spore", Manufacturer="rainybit" and add it to C_SOURCES. Because the ELF is
linked as $(CXX) <our objects> ... -ldaisy, our descriptor symbols satisfy all refs and
libDaisy's usbd_desc.o is never pulled from the archive — the submodule stays pristine
and reproducible. Verified: ELF contains "Spore", not "Daisy Seed Built In".
VID/PID kept at stock Daisy/STM values (documented one-line edit for productization).
Also add the USB include paths to .vscode for IntelliSense.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent b8066da commit d600130
4 files changed
Lines changed: 651 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
16 | 21 | | |
17 | 22 | | |
18 | 23 | | |
| |||
0 commit comments