zephyr/drivers/serial/Kconfig.native_tty
Björn Stenberg 8cdcb2c167 uart_native_tty: Emulate an interrupt driven uart
Emulate SERIAL_SUPPORT_INTERRUPT for UART_NATIVE_TTY, using a thread that
polls the tty and invokes the callback.

This allows interrupt-driven subsystems such as modbus to use a native tty,
which is useful for testing purposes.

Signed-off-by: Björn Stenberg <bjorn@haxx.se>
2024-02-27 14:49:02 +01:00

9 lines
275 B
Plaintext

# Copyright (c) 2023 Marko Sagadin
# SPDX-License-Identifier: Apache-2.0
config UART_NATIVE_TTY
bool "UART driver for interacting with host serial ports"
default y
depends on DT_HAS_ZEPHYR_NATIVE_TTY_UART_ENABLED
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT