Add a sample for the UART bridge driver using a USB CDC-ACM UART and a normal one. Demonstrates how to do settings propagation (bitrate changes) and multiple instances. The sample needs to know what specific UART are available on each board, so unfortunately any additional board needs its own overlay. Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
25 lines
353 B
Plaintext
25 lines
353 B
Plaintext
/*
|
|
* Copyright 2025 Google LLC
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/ {
|
|
uart-bridge0 {
|
|
compatible = "zephyr,uart-bridge";
|
|
peers = <&cdc_acm_uart0 &arduino_serial>;
|
|
};
|
|
|
|
};
|
|
|
|
&arduino_serial {
|
|
status = "okay";
|
|
};
|
|
|
|
&zephyr_udc0 {
|
|
cdc_acm_uart0: cdc_acm_uart0 {
|
|
compatible = "zephyr,cdc-acm-uart";
|
|
label = "Zephyr USB CDC-ACM";
|
|
};
|
|
};
|