Add sample to shows how to use the CDC ACM UART provided by the new experimental USB device stack as a serial backend for the console. Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
18 lines
246 B
Plaintext
18 lines
246 B
Plaintext
/*
|
|
* Copyright (c) 2021 Nordic Semiconductor ASA
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/ {
|
|
chosen {
|
|
zephyr,console = &cdc_acm_uart0;
|
|
};
|
|
};
|
|
|
|
&zephyr_udc0 {
|
|
cdc_acm_uart0: cdc_acm_uart0 {
|
|
compatible = "zephyr,cdc-acm-uart";
|
|
};
|
|
};
|