shell: backends: fix for async shell selection
This patch modifies the way SHELL_BACKEND_SERIAL_API_ASYNC is selected. The current logic causes conflicts (no console output) when the user tries to use one of the UARTs in async mode, by setting CONFIG_SHELL_ASYNC_API, while using Shell with a different UART (typically the Console's one). Signed-off-by: Abderrahmane Jarmouni <abderrahmane.jarmouni-ext@st.com>
This commit is contained in:
parent
b548a73e79
commit
92a24ba4b4
1 changed files with 8 additions and 1 deletions
|
@ -47,9 +47,16 @@ config SHELL_BACKEND_SERIAL_INTERRUPT_DRIVEN
|
|||
default y
|
||||
depends on SERIAL_SUPPORT_INTERRUPT
|
||||
|
||||
config SHELL_ASYNC_API
|
||||
bool "Asynchronous shell API"
|
||||
default n
|
||||
depends on UART_ASYNC_API
|
||||
help
|
||||
This option enables asynchronous shell API.
|
||||
|
||||
choice SHELL_BACKEND_SERIAL_API
|
||||
prompt "Mode"
|
||||
default SHELL_BACKEND_SERIAL_API_ASYNC if UART_ASYNC_API
|
||||
default SHELL_BACKEND_SERIAL_API_ASYNC if SHELL_ASYNC_API
|
||||
default SHELL_BACKEND_SERIAL_API_INTERRUPT_DRIVEN if SHELL_BACKEND_SERIAL_INTERRUPT_DRIVEN
|
||||
default SHELL_BACKEND_SERIAL_API_POLLING
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue