b74aacb4e2
Define local thread to emulate different thread priorities. A UART driver may call back from within a thread with higher or lower priority than the thread calling the UART API. This can hide potential concurrency issues, especially if the thread priorities are the same, or even using the same thread in case the system work queue. Signed-off-by: Bjarki Arge Andreasen <bjarkix123@gmail.com>
27 lines
562 B
Plaintext
27 lines
562 B
Plaintext
# 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
|
|
select SERIAL_SUPPORT_INTERRUPT
|
|
select RING_BUFFER
|
|
select EXPERIMENTAL
|
|
help
|
|
Enable the emulated UART driver.
|
|
|
|
if UART_EMUL
|
|
|
|
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 tread priority"
|
|
default 1
|
|
|
|
endif # UART_EMUL
|