Commit 9029359
committed
ports/stm32/factoryreset: Add TinyUSB-specific boot.py examples.
The default boot.py template now conditionally includes different USB
configuration examples based on whether TinyUSB or the legacy USB stack
is enabled at build time.
For TinyUSB builds (MICROPY_HW_TINYUSB_STACK=1), the template shows the
modern machine.USBDevice() API with examples for CDC, MSC, and NCM
(network) drivers. For legacy USB builds, it continues to show the
existing pyb.usb_mode() examples.
This ensures users see the correct USB API for their board when
formatting a new filesystem.
Signed-off-by: Andrew Leech <[email protected]>1 parent 1ba809e commit 9029359
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
47 | 55 | | |
48 | 56 | | |
49 | 57 | | |
| 58 | + | |
50 | 59 | | |
51 | 60 | | |
52 | 61 | | |
| |||
0 commit comments