File tree Expand file tree Collapse file tree 7 files changed +40
-7
lines changed Expand file tree Collapse file tree 7 files changed +40
-7
lines changed Original file line number Diff line number Diff line change 77CONFIG_SHELL_BACKEND_SERIAL_INIT_PRIORITY=51
88
99CONFIG_UART_LINE_CTRL=y
10- CONFIG_UART_SHELL_ON_DEV_NAME="CDC_ACM_0"
1110
1211CONFIG_USB_DEVICE_STACK=y
1312CONFIG_USB_DEVICE_MANUFACTURER="Nordic Semiconductor ASA"
Original file line number Diff line number Diff line change 2626 platform_allow : nrf5340dk_nrf5340_cpuapp nrf5340dk_nrf5340_cpuapp_ns nrf52840dk_nrf52840 nrf52840dongle_nrf52840 nrf52833dk_nrf52833 nrf21540dk_nrf52840
2727 tags : ci_build
2828 extra_args : OVERLAY_CONFIG=overlay-usb.conf
29+ DTC_OVERLAY_FILE="usb.overlay"
2930 integration_platforms :
3031 - nrf5340dk_nrf5340_cpuapp
3132 - nrf5340dk_nrf5340_cpuapp_ns
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ void main(void)
4141 return ;
4242 }
4343
44- dev = device_get_binding ( CONFIG_UART_SHELL_ON_DEV_NAME );
44+ dev = DEVICE_DT_GET ( DT_CHOSEN ( zephyr_shell_uart ) );
4545 if (dev == NULL ) {
4646 LOG_ERR ("Failed to find specific UART device" );
4747 return ;
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2021 Nordic Semiconductor ASA
3+ *
4+ * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+ */
6+
7+ / {
8+ chosen {
9+ zephyr,shell-uart = &cdc_acm_uart0;
10+ };
11+ };
12+
13+ &zephyr_udc0 {
14+ cdc_acm_uart0: cdc_acm_uart0 {
15+ compatible = "zephyr,cdc-acm-uart";
16+ label = "CDC_ACM_0";
17+ };
18+ };
Original file line number Diff line number Diff line change 44# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55#
66
7- # Use USB-CDC-ACM for Co-Processor
8- CONFIG_OPENTHREAD_COPROCESSOR_SPINEL_ON_UART_ACM=y
9- CONFIG_OPENTHREAD_COPROCESSOR_SPINEL_ON_UART_DEV_NAME="CDC_ACM_0"
10-
117CONFIG_USB_DEVICE_STACK=y
128CONFIG_USB_CDC_ACM=y
139CONFIG_USB_DEVICE_MANUFACTURER="Nordic Semiconductor ASA"
Original file line number Diff line number Diff line change 2424 build_only : true
2525 platform_allow : nrf52840dk_nrf52840 nrf52840dongle_nrf52840 nrf52833dk_nrf52833 nrf21540dk_nrf52840
2626 tags : ci_build
27- extra_args : OVERLAY_CONFIG=overlay-usb.conf;
27+ extra_args : OVERLAY_CONFIG=overlay-usb.conf
28+ DTC_OVERLAY_FILE="usb.overlay"
2829 integration_platforms :
2930 - nrf52840dk_nrf52840
3031 - nrf52840dongle_nrf52840
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2021 Nordic Semiconductor ASA
3+ *
4+ * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+ */
6+
7+ / {
8+ chosen {
9+ zephyr,ot-uart = &cdc_acm_uart0;
10+ };
11+ };
12+
13+ &zephyr_udc0 {
14+ cdc_acm_uart0: cdc_acm_uart0 {
15+ compatible = "zephyr,cdc-acm-uart";
16+ label = "CDC_ACM_0";
17+ };
18+ };
You can’t perform that action at this time.
0 commit comments