zephyr/drivers/serial/Kconfig.emul
Pieter De Gendt 92019b1dac emul: Support UART device emulation
Add support to the existing UART emulated bus, to have a client device
emulator.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2024-07-30 18:28:17 +01:00

35 lines
792 B
Text

# Emulated UART configuration options
# Copyright (c) 2023 Fabian Blatz
# SPDX-License-Identifier: Apache-2.0
config UART_EMUL
bool "Emulated UART driver [EXPERIMENTAL]"
default y
depends on DT_HAS_ZEPHYR_UART_EMUL_ENABLED
depends on EMUL
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
select SERIAL_SUPPORT_ASYNC
select RING_BUFFER
select EXPERIMENTAL
help
Enable the emulated UART driver.
if UART_EMUL
config UART_EMUL_DEVICE_INIT_PRIORITY
int "UART emulated devices' init priority"
default 0
help
The init priority of emulated driver on the UART bus.
config UART_EMUL_WORK_Q_STACK_SIZE
int "UART emulator work queue stack size"
default 2048
config UART_EMUL_WORK_Q_PRIORITY
int "UART emulator work queue thread priority"
default 1
endif # UART_EMUL