drivers/serial native: Replace native_posix with native_sim in comments

In the kconfig descriptions and the links to documents
replace native_posix with native_sim, or a generally
applicable description.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
Alberto Escolar Piedras 2023-12-05 17:12:43 +01:00 committed by Fabio Baltieri
commit 53bbded264
2 changed files with 8 additions and 8 deletions

View file

@ -1,14 +1,14 @@
# SPDX-License-Identifier: Apache-2.0
config UART_NATIVE_POSIX
bool "UART driver for native_posix"
bool "UART driver for native_sim/posix"
default y
depends on DT_HAS_ZEPHYR_NATIVE_POSIX_UART_ENABLED
select SERIAL_HAS_DRIVER
help
This enables a UART driver for the POSIX ARCH with up to 2 UARTs.
For the first UART port, the driver can be configured
to either connect to the terminal from which native_posix was run, or into
to either connect to the terminal from which the executable was run, or into
one dedicated pseudoterminal for that UART.
if UART_NATIVE_POSIX
@ -22,14 +22,14 @@ config NATIVE_UART_0_ON_OWN_PTY
help
Connect this UART to its own pseudoterminal. This is the preferred
option for users who want to use Zephyr's shell.
Moreover this option does not conflict with any other native_posix
backend which may use the calling shell standard input/output.
Moreover this option does not conflict with any other native
backend which may use the invoking shell standard input/output.
config NATIVE_UART_0_ON_STDINOUT
bool "Connect the UART to the invoking shell stdin/stdout"
help
Connect this UART to the stdin & stdout of the calling shell/terminal
which invoked the native_posix executable. This is good enough for
which invoked the native executable. This is good enough for
automated testing, or when feeding from a file/pipe.
Note that other, non UART messages, will also be printed to the
terminal.
@ -60,7 +60,7 @@ config NATIVE_UART_AUTOATTACH_DEFAULT_CMD
string "Default command to attach the UART to a new terminal"
default "xterm -e screen %s &"
help
If the native_posix executable is called with the --attach_uart
If the native executable is called with the --attach_uart
command line option, this will be the default command which will be
run to attach a new terminal to the 1st UART.
Note that this command must have one, and only one, '%s' as

View file

@ -6,9 +6,9 @@
* command line options or at runtime.
*
* To learn more see Native TTY section at:
* https://docs.zephyrproject.org/latest/boards/posix/native_posix/doc/index.html
* https://docs.zephyrproject.org/latest/boards/posix/native_sim/doc/index.html
* or
* ${ZEPHYR_BASE}/boards/posix/native_posix/doc/index.rst
* ${ZEPHYR_BASE}/boards/posix/native_sim/doc/index.rst
*
* Copyright (c) 2023 Marko Sagadin
* SPDX-License-Identifier: Apache-2.0