File tree 3 files changed +19
-4
lines changed
3 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
### Added
10
10
- Added a limited implementation of the OTP ` ets ` interface
11
11
- Added ` code:all_loaded/0 ` and ` code:all_available/0 `
12
+ - Added menuconfig option for enabling USE_USB_SERIAL, eg. serial over USB for certain ESP32-S2 boards etc.
12
13
13
14
## [ 0.6.6] - Unreleased
14
15
Original file line number Diff line number Diff line change @@ -26,4 +26,18 @@ menu "AtomVM configuration"
26
26
help
27
27
Reboot the ESP32 device if the start/0 entrypoint does not return the `ok` atom.
28
28
29
+ config USE_USB_SERIAL
30
+ bool "Enable USB CDC Serial"
31
+ default n
32
+ select TINYUSB_CDC_ENABLED
33
+ help
34
+ Enable USB CDC Serial functionality.
35
+
36
+ config TINYUSB_CDC_ENABLED
37
+ bool "Enable TinyUSB CDC (requires 'idf.py add-dependency esp_tinyusb')"
38
+ default y
39
+ depends on USE_USB_SERIAL
40
+ help
41
+ Enable TinyUSB CDC functionality if USE_USB_SERIAL is enabled.
42
+
29
43
endmenu
Original file line number Diff line number Diff line change 39
39
40
40
// before enabling this:
41
41
// idf.py add-dependency esp_tinyusb
42
- // and enable CDC in menu config
43
- #ifdef USE_USB_SERIAL
42
+ // and enable USE_USB_SERIAL in menu config
43
+ #ifdef CONFIG_USE_USB_SERIAL
44
44
void init_usb_serial (void );
45
45
#include "tinyusb.h"
46
46
#include "tusb_cdc_acm.h"
@@ -70,7 +70,7 @@ void app_main()
70
70
{
71
71
esp32_sys_queue_init ();
72
72
73
- #ifdef USE_USB_SERIAL
73
+ #ifdef CONFIG_USE_USB_SERIAL
74
74
init_usb_serial ();
75
75
#endif
76
76
@@ -151,7 +151,7 @@ void app_main()
151
151
}
152
152
}
153
153
154
- #ifdef USE_USB_SERIAL
154
+ #ifdef CONFIG_USE_USB_SERIAL
155
155
void init_usb_serial ()
156
156
{
157
157
/* Setting TinyUSB up */
You can’t perform that action at this time.
0 commit comments