esp-idf/components/console
Guillaume Souchere 87b1e45564 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-06-26 06:32:13 +02:00
..
argtable3 feat(system/console): Added argtable3 SBOM manifest file in console component for SPDX file generation 2024-05-16 12:00:00 +08:00
linenoise fix(console): USB Serial JTAG freezes when input received before init 2024-06-26 06:32:13 +02:00
private_include refactor(console): Enable astyle formatting 2024-04-29 16:12:51 +02:00
test_apps feat(system/console): add help command verbose level option 2024-05-27 10:47:40 +08:00
CMakeLists.txt fix: properly resolve component dependencies 2024-05-30 22:01:55 +08:00
commands.c feat(system/console): add help command verbose level option 2024-05-27 10:47:40 +08:00
esp_console_common.c refactor(linux): Unified libbsd handling 2024-03-08 12:26:54 +08:00
esp_console_repl_chip.c refactor(console): Enable astyle formatting 2024-04-29 16:12:51 +02:00
esp_console_repl_linux.c refactor(console): Enable astyle formatting 2024-04-29 16:12:51 +02:00
esp_console.h feat(system/console): add help command verbose level option 2024-05-27 10:47:40 +08:00
Kconfig refactor(console): made help command sorting depend on Kconfig option 2024-03-21 16:33:44 +08:00
split_argv.c refactor(console): Enable astyle formatting 2024-04-29 16:12:51 +02:00