esp32: Add MICROPY_HW_ENABLE_UART_REPL and enable on generic S2/S3.
Some S2/S3 modules don't use the native USB interface but instead have an external USB-UART. To make the GENERIC_S3/S3 firmware work on these boards the UART REPL is enabled in addition to the native USB CDC REPL. Fixes issues #8418 and #8524. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -28,6 +28,11 @@
|
||||
#ifndef MICROPY_INCLUDED_ESP32_UART_H
|
||||
#define MICROPY_INCLUDED_ESP32_UART_H
|
||||
|
||||
// Whether to enable the REPL on a UART.
|
||||
#ifndef MICROPY_HW_ENABLE_UART_REPL
|
||||
#define MICROPY_HW_ENABLE_UART_REPL (!CONFIG_USB_ENABLED && !CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG)
|
||||
#endif
|
||||
|
||||
#ifndef MICROPY_HW_UART_REPL
|
||||
#define MICROPY_HW_UART_REPL (UART_NUM_0)
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user