Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion samples/zephyr/subsys/usb/cdc_acm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
cmake_minimum_required(VERSION 3.20.0)

find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(mass)
project(cdc_acm)

include(${ZEPHYR_BASE}/samples/subsys/usb/common/common.cmake)
FILE(GLOB app_sources ${ZEPHYR_BASE}/samples/subsys/usb/cdc_acm/src/*.c)
Expand Down
1 change: 1 addition & 0 deletions samples/zephyr/subsys/usb/cdc_acm/app.overlay
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
&zephyr_udc0 {
cdc_acm_uart0 {
compatible = "zephyr,cdc-acm-uart";
label = "Zephyr USB CDC-ACM";
};
};
19 changes: 11 additions & 8 deletions samples/zephyr/subsys/usb/cdc_acm/prj.conf
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
CONFIG_USB_DEVICE_STACK_NEXT=y

CONFIG_STDOUT_CONSOLE=y
CONFIG_USB_DEVICE_STACK=y
CONFIG_USB_DEVICE_PRODUCT="Zephyr CDC ACM sample"
CONFIG_USB_DEVICE_PID=0x0001
CONFIG_LOG=y
CONFIG_USB_DRIVER_LOG_LEVEL_ERR=y
CONFIG_USB_DEVICE_LOG_LEVEL_ERR=y
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_UART_LINE_CTRL=y
CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n
CONFIG_USBD_CDC_ACM_CLASS=y

CONFIG_LOG=y
CONFIG_USBD_LOG_LEVEL_ERR=y
CONFIG_UDC_DRIVER_LOG_LEVEL_ERR=y
CONFIG_USBD_CDC_ACM_LOG_LEVEL_ERR=y

CONFIG_SAMPLE_USBD_PID=0x0001
CONFIG_SAMPLE_USBD_PRODUCT="USBD CDC ACM sample"
43 changes: 22 additions & 21 deletions samples/zephyr/subsys/usb/cdc_acm/sample.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
sample:
name: CDC ACM USB
common:
tags:
- usb
- ci_samples_zephyr_subsys_usb
platform_allow:
- nrf54h20dk/nrf54h20/cpuapp
- nrf54lm20dk/nrf54lm20a/cpuapp
integration_platforms:
- nrf54h20dk/nrf54h20/cpuapp
- nrf54lm20dk/nrf54lm20a/cpuapp
harness: console
harness_config:
type: multi_line
regex:
- "Wait for DTR"
- "cdc_acm_echo: USBD message: New device configuration"
- "cdc_acm_echo: USBD message: CDC ACM line coding"
- "cdc_acm_echo: Baudrate"
tests:
nrf.extended.sample.usb_device_next.cdc-acm:
tags:
- usb
- ci_samples_zephyr_subsys_usb
extra_args: CONF_FILE="usbd_next_prj.conf"
platform_allow:
- nrf54lm20pdk/nrf54lm20a/cpuapp
- [email protected]/nrf54lm20a/cpuapp
- [email protected]/nrf54lm20a/cpuapp
- nrf54h20dk/nrf54h20/cpuapp
integration_platforms:
- nrf54lm20pdk/nrf54lm20a/cpuapp
- nrf54h20dk/nrf54h20/cpuapp
harness: console
harness_config:
type: one_line
regex:
- "Wait for DTR"
- "cdc_acm_echo: USBD message: CDC ACM control line state"
- "cdc_acm_echo: USBD message: CDC ACM line coding"
- "cdc_acm_echo: Baudrate 115200"
nrf.extended.sample.usb_device_next.cdc-acm: {}
nrf.extended.sample.usb_device_next.cdc-acm-workqueue:
extra_args:
- DCONFIG_USBD_CDC_ACM_WORKQUEUE=y
14 changes: 0 additions & 14 deletions samples/zephyr/subsys/usb/cdc_acm/usbd_next_prj.conf

This file was deleted.

3 changes: 1 addition & 2 deletions samples/zephyr/subsys/usb/hid-keyboard/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ CONFIG_LOG=y
CONFIG_USBD_LOG_LEVEL_INF=y
CONFIG_USBD_HID_LOG_LEVEL_WRN=y
CONFIG_UDC_DRIVER_LOG_LEVEL_WRN=y
CONFIG_LOG_BUFFER_SIZE=8192

CONFIG_SAMPLE_USBD_PID=0x0007
CONFIG_SAMPLE_USBD_REMOTE_WAKEUP=y

CONFIG_GPIO=y
CONFIG_INPUT=y
Expand Down
37 changes: 7 additions & 30 deletions samples/zephyr/subsys/usb/hid-keyboard/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ sample:
common:
filter: dt_alias_exists("sw0") and dt_alias_exists("led0")
depends_on:
# - usbd
- gpio
tags:
- usb
Expand All @@ -20,42 +19,20 @@ common:
- "USBD message: VBUS ready"
- "Actual device speed 2"
- "s-in-status finished"
integration_platforms:
- nrf54h20dk/nrf54h20/cpuapp
- nrf54lm20dk/nrf54lm20a/cpuapp
platform_allow:
- nrf54h20dk/nrf54h20/cpuapp
- nrf54lm20dk/nrf54lm20a/cpuapp
tests:
nrf.extended.sample.usbd.hid-keyboard:
integration_platforms:
- nrf54h20dk/nrf54h20/cpuapp
- nrf54lm20pdk/nrf54lm20a/cpuapp
platform_allow:
- nrf54h20dk/nrf54h20/cpuapp
- nrf54lm20pdk/nrf54lm20a/cpuapp
- [email protected]/nrf54lm20a/cpuapp
nrf.extended.sample.usbd.hid-keyboard: {}
nrf.extended.sample.usbd.hid-keyboard.out-report:
integration_platforms:
- nrf54h20dk/nrf54h20/cpuapp
- nrf54lm20pdk/nrf54lm20a/cpuapp
platform_allow:
- nrf54h20dk/nrf54h20/cpuapp
- nrf54lm20pdk/nrf54lm20a/cpuapp
- [email protected]/nrf54lm20a/cpuapp
extra_args:
- EXTRA_DTC_OVERLAY_FILE="out_report.overlay"
nrf.extended.sample.usbd.hid-keyboard.large-report:
integration_platforms:
- nrf54h20dk/nrf54h20/cpuapp
- nrf54lm20pdk/nrf54lm20a/cpuapp
platform_allow:
- nrf54h20dk/nrf54h20/cpuapp
- nrf54lm20pdk/nrf54lm20a/cpuapp
- [email protected]/nrf54lm20a/cpuapp
extra_args:
- EXTRA_DTC_OVERLAY_FILE="large_in_report.overlay"
nrf.extended.sample.usbd.hid-keyboard.large-out-report:
integration_platforms:
- nrf54h20dk/nrf54h20/cpuapp
- nrf54lm20pdk/nrf54lm20a/cpuapp
platform_allow:
- nrf54h20dk/nrf54h20/cpuapp
- nrf54lm20pdk/nrf54lm20a/cpuapp
- [email protected]/nrf54lm20a/cpuapp
extra_args:
- EXTRA_DTC_OVERLAY_FILE="large_out_report.overlay"
1 change: 0 additions & 1 deletion samples/zephyr/subsys/usb/hid-mouse/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ CONFIG_LOG=y
CONFIG_USBD_LOG_LEVEL_INF=y
CONFIG_USBD_HID_LOG_LEVEL_WRN=y
CONFIG_UDC_DRIVER_LOG_LEVEL_WRN=y
CONFIG_LOG_BUFFER_SIZE=8192
CONFIG_SAMPLE_USBD_PID=0x0007

CONFIG_GPIO=y
Expand Down
15 changes: 6 additions & 9 deletions samples/zephyr/subsys/usb/hid-mouse/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,6 @@ common:

tests:
nrf.extended.sample.usb_device_next.hid-mouse:
# depends_on:
# - usbd
integration_platforms:
- nrf54h20dk/nrf54h20/cpuapp
- nrf54lm20pdk/nrf54lm20a/cpuapp
platform_allow:
- nrf54h20dk/nrf54h20/cpuapp
- nrf54lm20pdk/nrf54lm20a/cpuapp
- [email protected]/nrf54lm20a/cpuapp
timeout: 15
harness: console
harness_config:
Expand All @@ -28,3 +19,9 @@ tests:
- "FS bNumConfigurations 1"
- "Actual device speed 2"
- "s-in-status finished"
integration_platforms:
- nrf54h20dk/nrf54h20/cpuapp
- nrf54lm20dk/nrf54lm20a/cpuapp
platform_allow:
- nrf54h20dk/nrf54h20/cpuapp
- nrf54lm20dk/nrf54lm20a/cpuapp
21 changes: 11 additions & 10 deletions samples/zephyr/subsys/usb/mass/prj.conf
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
CONFIG_USB_DEVICE_STACK_NEXT=y

CONFIG_STDOUT_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_LINE_CTRL=y
CONFIG_USBD_MSC_CLASS=y
CONFIG_USBD_MSC_LUNS_PER_INSTANCE=3

#USB related configs
CONFIG_USB_DEVICE_STACK=y
CONFIG_USB_DEVICE_PRODUCT="Zephyr MSC sample"
CONFIG_USB_DEVICE_PID=0x0008
CONFIG_LOG=y
CONFIG_USB_DRIVER_LOG_LEVEL_ERR=y
CONFIG_USB_MASS_STORAGE=y
CONFIG_USB_DEVICE_LOG_LEVEL_ERR=y
CONFIG_USB_MASS_STORAGE_LOG_LEVEL_ERR=y
CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n
CONFIG_USBD_LOG_LEVEL_WRN=y
CONFIG_UDC_DRIVER_LOG_LEVEL_WRN=y

CONFIG_MAIN_STACK_SIZE=1536
CONFIG_SAMPLE_USBD_PID=0x0008
CONFIG_SAMPLE_USBD_PRODUCT="USBD MSC sample"
CONFIG_MAIN_STACK_SIZE=2048
54 changes: 20 additions & 34 deletions samples/zephyr/subsys/usb/mass/sample.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
sample:
name: Mass Storage
common:
min_ram: 128
platform_allow:
- nrf54h20dk/nrf54h20/cpuapp
- nrf54lm20dk/nrf54lm20a/cpuapp
integration_platforms:
- nrf54h20dk/nrf54h20/cpuapp
- nrf54lm20dk/nrf54lm20a/cpuapp
extra_args:
- EXTRA_DTC_OVERLAY_FILE="ramdisk.overlay"
tags:
- msd
- usb
- ci_samples_zephyr_subsys_usb

tests:
nrf.extended.sample.usb_device_next.mass_ram_none:
platform_allow:
- nrf54lm20pdk/nrf54lm20a/cpuapp
- [email protected]/nrf54lm20a/cpuapp
- [email protected]/nrf54lm20a/cpuapp
- nrf54h20dk/nrf54h20/cpuapp
integration_platforms:
- nrf54lm20pdk/nrf54lm20a/cpuapp
- nrf54h20dk/nrf54h20/cpuapp
extra_args:
- CONF_FILE="usbd_next_prj.conf"
- EXTRA_DTC_OVERLAY_FILE="ramdisk.overlay"
extra_configs:
- CONFIG_LOG_DEFAULT_LEVEL=3
tags:
- msd
- usb
- ci_samples_zephyr_subsys_usb
nrf.extended.sample.usbd.mass_ram_none:
harness: console
harness_config:
type: multi_line
Expand All @@ -28,24 +26,9 @@ tests:
- "The device is put in USB mass storage mode."
- "usbd_msc: Enable"
- "usbd_msc: Bulk-Only Mass Storage Reset"
nrf.extended.sample.usb_device_next.mass_flash_fatfs:
modules:
- fatfs
filter: dt_compat_enabled("nordic,qspi-nor")
platform_allow:
- nrf54lm20pdk/nrf54lm20a/cpuapp
- [email protected]/nrf54lm20a/cpuapp
- [email protected]/nrf54lm20a/cpuapp
integration_platforms:
- nrf54lm20pdk/nrf54lm20a/cpuapp
extra_args: CONF_FILE="usbd_next_prj.conf"
extra_configs:
- CONFIG_LOG_DEFAULT_LEVEL=3
- CONFIG_APP_MSC_STORAGE_FLASH_FATFS=y
tags:
- msd
- usb
- ci_samples_zephyr_subsys_usb
nrf.extended.sample.usbd.mass_ram_fat:
harness: console
harness_config:
type: multi_line
Expand All @@ -55,3 +38,6 @@ tests:
- "The device is put in USB mass storage mode."
- "usbd_msc: Enable"
- "usbd_msc: Bulk-Only Mass Storage Reset"
extra_configs:
- CONFIG_LOG_DEFAULT_LEVEL=3
- CONFIG_APP_MSC_STORAGE_RAM=y
15 changes: 0 additions & 15 deletions samples/zephyr/subsys/usb/mass/usbd_next_prj.conf

This file was deleted.

3 changes: 1 addition & 2 deletions tests/subsys/usb/negotiated_speed/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ tests:
- nrf54h20dk/nrf54h20/cpuapp
platform_allow:
- nrf54h20dk/nrf54h20/cpuapp
- nrf54lm20pdk/nrf54lm20a/cpuapp
- [email protected]/nrf54lm20a/cpuapp
- nrf54lm20dk/nrf54lm20a/cpuapp
extra_configs:
- CONFIG_LOG_DEFAULT_LEVEL=3
- CONFIG_APP_MSC_STORAGE_RAM=y
2 changes: 1 addition & 1 deletion west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ manifest:
# https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/guides/modules.html
- name: zephyr
repo-path: sdk-zephyr
revision: 5ca258a1523d6f9a9211c51770fa7e7be2fa27ad
revision: c1bf4336ce6d3a1bf6007c06c9ed8142183e16d1
import:
# In addition to the zephyr repository itself, NCS also
# imports the contents of zephyr/west.yml at the above
Expand Down