Many boards have similar code to configure the USB and CDC ACM UART that they want to use as a logging or shell backend. Some of them have an incorrect or incomplete configuration. These boards do not have a built-in debug adapter, but a SoC with a USB device controller and a bootloader with USB device support. Introduce common CDC ACM UART configuration that these boards should use for logging or shell backend to avoid duplicate or incorrect configuration. Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
21 lines
436 B
Text
21 lines
436 B
Text
/*
|
|
* Copyright (c) 2024 Nordic Semiconductor ASA
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/ {
|
|
chosen {
|
|
zephyr,console = &board_cdc_acm_uart;
|
|
zephyr,shell-uart = &board_cdc_acm_uart;
|
|
zephyr,uart-mcumgr = &board_cdc_acm_uart;
|
|
zephyr,bt-mon-uart = &board_cdc_acm_uart;
|
|
zephyr,bt-c2h-uart = &board_cdc_acm_uart;
|
|
};
|
|
};
|
|
|
|
&zephyr_udc0 {
|
|
board_cdc_acm_uart: board_cdc_acm_uart {
|
|
compatible = "zephyr,cdc-acm-uart";
|
|
};
|
|
};
|