diff options
| author | Angus Gratton <angus@redyak.com.au> | 2024-07-30 10:39:47 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2024-08-14 15:58:18 +1000 |
| commit | 0a11832cddbeed57bf0267afa0c833584817312d (patch) | |
| tree | b340ba677337e19c61b5141e90f240a3085e5e99 /ports/esp32/main.c | |
| parent | fbb02d3aeeaa9da082f3ccd411d8e164a526046e (diff) | |
esp32: Use the ESP-IDF default esp_console config for ESP32-C3.
The ESP-IDF default on C3 is primary UART0, secondary USB serial/jtag.
Previously MicroPython configured the primary as USB Serial/JTAG and
manually worked with the UART0 console. However UART0 console stopped
working this way in v5.2.2.
The big change is that CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG is no longer set,
as primary console is UART0. However
CONFIG_ESP_CONSOLE_SECONDARY_USB_SERIAL_JTAG is set and IDF provides a
macro CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG_ENABLED which is set if either
primary or secondary esp_console is USB serial/jtag. So need to use that
macro instead.
This work was funded through GitHub Sponsors.
Signed-off-by: Angus Gratton <angus@redyak.com.au>
Diffstat (limited to 'ports/esp32/main.c')
| -rw-r--r-- | ports/esp32/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/esp32/main.c b/ports/esp32/main.c index ea641e668..330ba64b4 100644 --- a/ports/esp32/main.c +++ b/ports/esp32/main.c @@ -99,7 +99,7 @@ void mp_task(void *pvParameter) { #if MICROPY_PY_THREAD mp_thread_init(pxTaskGetStackStart(NULL), MICROPY_TASK_STACK_SIZE / sizeof(uintptr_t)); #endif - #if CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG + #if CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG_ENABLED usb_serial_jtag_init(); #elif CONFIG_USB_OTG_SUPPORTED usb_init(); |
