Skip to content

Commit 6d69efd

Browse files
committed
samples: subsys: usb: shell: support for UHC shell only
Support host only build for samples/subsys/usb/shell Signed-off-by: The Nguyen <[email protected]>
1 parent 6696769 commit 6d69efd

File tree

6 files changed

+97
-0
lines changed

6 files changed

+97
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright (c) 2024 Renesas Electronics Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&zephyr_udc0 {
8+
status = "disabled";
9+
};
10+
11+
&usbhs {
12+
pinctrl-0 = <&usbhs_default>;
13+
pinctrl-names = "default";
14+
maximum-speed = "high-speed";
15+
status = "okay";
16+
17+
zephyr_uhc0: uhc {
18+
status = "okay";
19+
};
20+
};
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright (c) 2024 Renesas Electronics Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&zephyr_udc0 {
8+
status = "disabled";
9+
};
10+
11+
&usbhs {
12+
pinctrl-0 = <&usbhs_default>;
13+
pinctrl-names = "default";
14+
maximum-speed = "high-speed";
15+
status = "okay";
16+
17+
zephyr_uhc0: uhc {
18+
status = "okay";
19+
};
20+
};
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright (c) 2024 Renesas Electronics Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&zephyr_udc0 {
8+
status = "disabled";
9+
};
10+
11+
&usbhs {
12+
pinctrl-0 = <&usbhs_default>;
13+
pinctrl-names = "default";
14+
maximum-speed = "high-speed";
15+
status = "okay";
16+
17+
zephyr_uhc0: uhc {
18+
status = "okay";
19+
};
20+
};
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright (c) 2024 Renesas Electronics Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&zephyr_udc0 {
8+
status = "disabled";
9+
};
10+
11+
&usbhs {
12+
pinctrl-0 = <&usbhs_default>;
13+
pinctrl-names = "default";
14+
maximum-speed = "high-speed";
15+
status = "okay";
16+
17+
zephyr_uhc0: uhc {
18+
status = "okay";
19+
};
20+
};
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CONFIG_SHELL=y
2+
CONFIG_USB_HOST_STACK=y
3+
CONFIG_USBH_SHELL=y
4+
5+
CONFIG_LOG=y
6+
CONFIG_USBH_LOG_LEVEL_WRN=y
7+
CONFIG_UHC_DRIVER_LOG_LEVEL_WRN=y

samples/subsys/usb/shell/sample.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,13 @@ tests:
2929
extra_args: CONF_FILE="device_and_host_prj.conf"
3030
platform_allow: qemu_cortex_m3
3131
build_only: true
32+
sample.usbh.shell.host_only:
33+
harness: keyboard
34+
tags: usb
35+
extra_args: CONF_FILE="host_only.conf"
36+
platform_allow:
37+
- ek_ra8m1
38+
- ek_ra8d1
39+
- ek_ra6m3
40+
- ek_ra6m5
41+
build_only: true

0 commit comments

Comments
 (0)