shell: backends: Do not use RTT backend with immediate logging

RTT backend can only be called from thread context and immediate
logging might lead to interrupt context use. Previously this limitation
was implied in different way and commit (c88a9ef27) got reverted.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
Krzysztof Chruściński 2024-12-09 11:26:24 +01:00 committed by Benjamin Cabé
commit c7f400c9aa

View file

@ -189,6 +189,8 @@ config SHELL_BACKEND_RTT
select RTT_CONSOLE select RTT_CONSOLE
select SEGGER_RTT_CUSTOM_LOCKING select SEGGER_RTT_CUSTOM_LOCKING
depends on USE_SEGGER_RTT depends on USE_SEGGER_RTT
# RTT backend can only be called from thread context.
depends on !(SHELL_LOG_BACKEND && LOG_MODE_IMMEDIATE)
help help
Enable RTT backend. Enable RTT backend.