esp-idf/components/console
Guillaume Souchere 2a24cc206e fix(console): USB Serial JTAG freezes when input received before init
When data was sent through USB Serial JTAG before the
driver was installed, the bus was malfunctioning. This
was because the interrupt bit for data reception was cleared
regardless of whether data was received or not. Consequently,
usb_serial_jtag_isr_handler_default was not triggered and the
data was never read causing the bus to malfunction.

This commit is modifying usb_serial_jtag_driver_install to
prevent clearing USB_SERIAL_JTAG_INTR_SERIAL_OUT_RECV_PKT and
USB_SERIAL_JTAG_INTR_SERIAL_IN_EMPTY thus allowing the callback
usb_serial_jtag_isr_handler_default to trigger for possible data
exchanged prior to the call to usb_serial_jtag_driver_install.

This commit also modified the while logic in linenoiseProbe to
discard any data that doesn't match the expected chaaracter sequences
to prevent random input from interfering with evaluating whether the
terminal supports escape sequences or not.

See https://github.com/espressif/esp-idf/issues/13940
2024-07-15 10:17:00 +02:00
..
argtable3 feat(system/console): Added argtable3 SBOM manifest file in console component for SPDX file generation 2024-05-20 15:04:27 +08:00
linenoise fix(console): USB Serial JTAG freezes when input received before init 2024-07-15 10:17:00 +02:00
private_include feat(console): Refactored code to support Linux target 2024-01-29 17:13:22 +08:00
test_apps refactor(console): made help command sorting depend on Kconfig option 2024-03-21 16:33:44 +08:00
CMakeLists.txt Merge branch 'fix/add_libbsd_string_h' into 'master' 2024-03-21 10:11:25 +08:00
commands.c change(console): drop the use of open_memstream() 2024-03-28 14:09:01 +01:00
esp_console_common.c refactor(linux): Unified libbsd handling 2024-03-08 12:26:54 +08:00
esp_console_repl_chip.c fix(console): Fix build issues when CONFIG_ESP_CONSOLE_NONE is enabled 2024-02-28 20:28:27 +08:00
esp_console_repl_linux.c refactor(linux): Unified libbsd handling 2024-03-08 12:26:54 +08:00
esp_console.h fix(console): Made setting command context less error-prone and clearer 2024-01-11 10:53:43 +08:00
Kconfig refactor(console): made help command sorting depend on Kconfig option 2024-03-21 16:33:44 +08:00
split_argv.c console: update copyright notice 2021-05-17 03:41:32 +02:00