Skip to content

Commit b480bf4

Browse files
committed
samples: zephyr: subsys: usb: hid-mouse: check bc callback
Check BC callback with connected usb cable. Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
1 parent a185ede commit b480bf4

1 file changed

Lines changed: 19 additions & 3 deletions

File tree

samples/zephyr/subsys/usb/hid-mouse/sample.yaml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
sample:
22
name: USB HID mouse sample
33
common:
4-
filter: dt_alias_exists("sw0") and dt_alias_exists("led0")
5-
depends_on:
6-
- gpio
74
tags:
85
- ci_samples_zephyr_subsys_usb
96
- usb
@@ -26,3 +23,22 @@ tests:
2623
- nrf54h20dk/nrf54h20/cpuapp
2724
- nrf54lm20dk/nrf54lm20a/cpuapp
2825
- nrf54lm20dk/nrf54lm20b/cpuapp
26+
27+
nrf.extended.sample.usb_device_next.hid-mouse-bc12:
28+
integration_platforms:
29+
- nrf54lm20dk/nrf54lm20b/cpuapp
30+
platform_allow:
31+
- nrf54lm20dk/nrf54lm20a/cpuapp
32+
- nrf54lm20dk/nrf54lm20b/cpuapp
33+
extra_configs:
34+
- CONFIG_USB_BC12=y
35+
harness: console
36+
harness_config:
37+
fixture: usb_connected
38+
type: multi_line
39+
regex:
40+
- "HS bNumConfigurations 1"
41+
- "FS bNumConfigurations 1"
42+
- "New BC state CDP \\(5000000 uV \\d+ uA\\)"
43+
- "Actual device speed 2"
44+
- "Status OUT finished"

0 commit comments

Comments
 (0)