Add a reusable uart-bridge driver that echoes data between two serial devices. It's mainly meant to be used with one of the devices being an USB CDC-ACM, the data is buffered, there's a pause feature to stop the USB endpoint when the hardware UART is filling up to avoid overrun and there's a helper function used to propagate the USB uart configuration to the hardware one. Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
19 lines
401 B
Plaintext
19 lines
401 B
Plaintext
# Copyright 2025 Google LLC
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config UART_BRIDGE
|
|
bool "UART bridge"
|
|
default y
|
|
depends on DT_HAS_ZEPHYR_UART_BRIDGE_ENABLED
|
|
select UART_INTERRUPT_DRIVEN
|
|
select RING_BUFFER
|
|
help
|
|
Enable the UART bridge driver.
|
|
|
|
config UART_BRIDGE_BUF_SIZE
|
|
int "UART bridge buffer size"
|
|
default 256
|
|
depends on UART_BRIDGE
|
|
help
|
|
Size of the bridge ring buffers in bytes.
|