File tree Expand file tree Collapse file tree 5 files changed +35
-44
lines changed
samples/zephyr/subsys/usb/cdc_acm Expand file tree Collapse file tree 5 files changed +35
-44
lines changed Original file line number Diff line number Diff line change 7
7
cmake_minimum_required (VERSION 3.20.0 )
8
8
9
9
find_package (Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE} )
10
- project (mass )
10
+ project (cdc_acm )
11
11
12
12
include (${ZEPHYR_BASE} /samples/subsys/usb/common/common.cmake )
13
13
FILE (GLOB app_sources ${ZEPHYR_BASE} /samples/subsys/usb/cdc_acm/src/*.c )
Original file line number Diff line number Diff line change 1
1
&zephyr_udc0 {
2
2
cdc_acm_uart0 {
3
3
compatible = "zephyr,cdc-acm-uart";
4
+ label = "Zephyr USB CDC-ACM";
4
5
};
5
6
};
Original file line number Diff line number Diff line change
1
+ CONFIG_USB_DEVICE_STACK_NEXT=y
2
+
1
3
CONFIG_STDOUT_CONSOLE=y
2
- CONFIG_USB_DEVICE_STACK=y
3
- CONFIG_USB_DEVICE_PRODUCT="Zephyr CDC ACM sample"
4
- CONFIG_USB_DEVICE_PID=0x0001
5
- CONFIG_LOG=y
6
- CONFIG_USB_DRIVER_LOG_LEVEL_ERR=y
7
- CONFIG_USB_DEVICE_LOG_LEVEL_ERR=y
8
4
CONFIG_SERIAL=y
9
- CONFIG_UART_INTERRUPT_DRIVEN=y
10
5
CONFIG_UART_LINE_CTRL=y
11
- CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n
6
+ CONFIG_USBD_CDC_ACM_CLASS=y
7
+
8
+ CONFIG_LOG=y
9
+ CONFIG_USBD_LOG_LEVEL_ERR=y
10
+ CONFIG_UDC_DRIVER_LOG_LEVEL_ERR=y
11
+ CONFIG_USBD_CDC_ACM_LOG_LEVEL_ERR=y
12
+
13
+ CONFIG_SAMPLE_USBD_PID=0x0001
14
+ CONFIG_SAMPLE_USBD_PRODUCT="USBD CDC ACM sample"
Original file line number Diff line number Diff line change 1
1
sample :
2
2
name : CDC ACM USB
3
+ common :
4
+ tags :
5
+ - usb
6
+ - ci_samples_zephyr_subsys_usb
7
+ platform_allow :
8
+ - nrf54h20dk/nrf54h20/cpuapp
9
+ - nrf54lm20dk/nrf54lm20a/cpuapp
10
+ integration_platforms :
11
+ - nrf54h20dk/nrf54h20/cpuapp
12
+ - nrf54lm20dk/nrf54lm20a/cpuapp
13
+ harness : console
14
+ harness_config :
15
+ type : multi_line
16
+ regex :
17
+ - " Wait for DTR"
18
+ - " cdc_acm_echo: USBD message: New device configuration"
19
+ - " cdc_acm_echo: USBD message: CDC ACM line coding"
20
+ - " cdc_acm_echo: Baudrate"
3
21
tests :
4
- nrf.extended.sample.usb_device_next.cdc-acm :
5
- tags :
6
- - usb
7
- - ci_samples_zephyr_subsys_usb
8
- extra_args : CONF_FILE="usbd_next_prj.conf"
9
- platform_allow :
10
- - nrf54lm20pdk/nrf54lm20a/cpuapp
11
- -
[email protected] /nrf54lm20a/cpuapp
12
- -
[email protected] /nrf54lm20a/cpuapp
13
- - nrf54h20dk/nrf54h20/cpuapp
14
- integration_platforms :
15
- - nrf54lm20pdk/nrf54lm20a/cpuapp
16
- - nrf54h20dk/nrf54h20/cpuapp
17
- harness : console
18
- harness_config :
19
- type : one_line
20
- regex :
21
- - " Wait for DTR"
22
- - " cdc_acm_echo: USBD message: CDC ACM control line state"
23
- - " cdc_acm_echo: USBD message: CDC ACM line coding"
24
- - " cdc_acm_echo: Baudrate 115200"
22
+ nrf.extended.sample.usb_device_next.cdc-acm : {}
23
+ nrf.extended.sample.usb_device_next.cdc-acm-workqueue :
24
+ extra_args :
25
+ - DCONFIG_USBD_CDC_ACM_WORKQUEUE=y
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments