zephyr/snippets/cdc-acm-console/cdc-acm-console.overlay
Luis Ubieda 3f90957e36 snippets: cdc-acm-console: Redirect Shell target to USB
To easily enable Shell over USB. Tested with:
```
west build -b nrf52840dk/nrf52840 \
           -S cdc-acm-console` \
           samples/subsys/shell/shell_module
```

Signed-off-by: Luis Ubieda <luisf@croxel.com>
2024-06-03 16:11:18 -04:00

19 lines
350 B
Plaintext

/*
* Copyright (c) 2021, 2023 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
/ {
chosen {
zephyr,console = &snippet_cdc_acm_console_uart;
zephyr,shell-uart = &snippet_cdc_acm_console_uart;
};
};
&zephyr_udc0 {
snippet_cdc_acm_console_uart: snippet_cdc_acm_console_uart {
compatible = "zephyr,cdc-acm-uart";
};
};