zephyr/subsys/shell/backends
Tomasz Moń 59f33a6019 shell: uart: Fix wait for DTR before TX
Fail compilation when incorrect configuration is detected, i.e. when
SHELL_BACKEND_SERIAL_CHECK_DTR is set but UART_LINE_CTRL is not set.

Use periodic timer to wait for DTR instead of waiting in uart callback
to prevent blocking caller workqueue and/or sleeping in ISR.

DTR check was only ever supported with interrupt driven backend so add
appropriate depends on to Kconfig.

Fixes: e9f238889b ("shell: uart: Add waiting on DTR signal before
sending data")
Fixes: #47120
Fixes: #54705

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
2023-04-06 14:21:57 +02:00
..
CMakeLists.txt
Kconfig.backends shell: uart: Fix wait for DTR before TX 2023-04-06 14:21:57 +02:00
shell_dummy.c shell: backends: add init log level for dummy shell 2023-02-22 12:15:24 +01:00
shell_mqtt.c shell/mqtt: Handle negative return value of wait 2022-09-07 10:30:16 +02:00
shell_rtt.c
shell_telnet_protocol.h
shell_telnet.c
shell_uart.c shell: uart: Fix wait for DTR before TX 2023-04-06 14:21:57 +02:00