Commit 63ba966
committed
Merge pull request #1341 from petermm/use_usb_serial-menuconfig
Add menuconfig option for USE_USB_SERIAL
Improve DX a lot for enabling serial over usb for boards like the S2 Mini.
<img width="572" alt="Screenshot 2024-10-15 at 11 36 22"
src="https://github.com/user-attachments/assets/ea851cbd-52b8-4874-ae04-0ebf79609f3d">
Will fail in a good way if enabled without esp_tinyusb being installed:
```
/AtomVM/src/platforms/esp32/main/main.c:45:10: fatal error: tinyusb.h: No such
file or directory
45 | #include "tinyusb.h"
| ^~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
HINT: tinyusb.h was removed. Please use esp_tinyusb component from IDF
component manager instead.
You can install `esp_tinyusb` using 'idf.py add-dependency
espressif/esp_tinyusb' command.
Refer to the migration guide for more details.
```
These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).
SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-laterFile tree
3 files changed
+19
-4
lines changed- src/platforms/esp32/main
3 files changed
+19
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
29 | 43 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
| 42 | + | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| |||
0 commit comments