Skip to content

Commit 4353128

Browse files
author
Raffael Rostagno
committed
samples: boards: esp32s3_devkitm: Add USB samples
Add USB-OTG shell, CDC-ACM, HID keyboard/mouse and MSC samples. Signed-off-by: Raffael Rostagno <[email protected]>
1 parent 1dd1a68 commit 4353128

File tree

5 files changed

+92
-0
lines changed

5 files changed

+92
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* Copyright (c) 2025 Espressif Systems (Shanghai) Co., Ltd.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
zephyr_udc0: &usb_otg {
8+
status = "okay";
9+
10+
cdc_acm_uart0 {
11+
compatible = "zephyr,cdc-acm-uart";
12+
label = "Zephyr USB CDC-ACM";
13+
};
14+
};
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright (c) 2025 Espressif Systems (Shanghai) Co., Ltd.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
hid_dev_0: hid_dev_0 {
9+
compatible = "zephyr,hid-device";
10+
interface-name = "HID0";
11+
protocol-code = "keyboard";
12+
in-report-size = <64>;
13+
in-polling-period-us = <1000>;
14+
};
15+
};
16+
17+
zephyr_udc0: &usb_otg {
18+
status = "okay";
19+
};
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright (c) 2025 Espressif Systems (Shanghai) Co., Ltd.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
aliases {
9+
led0 = &blue_led;
10+
};
11+
12+
hid_dev_0: hid_dev_0 {
13+
compatible = "zephyr,hid-device";
14+
interface-name = "HID0";
15+
protocol-code = "none";
16+
in-polling-period-us = <1000>;
17+
in-report-size = <64>;
18+
};
19+
20+
leds {
21+
compatible = "gpio-leds";
22+
23+
blue_led: led_0 {
24+
gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
25+
label = "Blue - LED0";
26+
};
27+
};
28+
};
29+
30+
zephyr_udc0: &usb_otg {
31+
status = "okay";
32+
};
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
* Copyright (c) 2025 Espressif Systems (Shanghai) Co., Ltd.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
msc_disk0 {
9+
compatible = "zephyr,flash-disk";
10+
partition = <&storage_partition>;
11+
disk-name = "NAND";
12+
cache-size = <4096>;
13+
};
14+
};
15+
16+
zephyr_udc0: &usb_otg {
17+
status = "okay";
18+
};
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*
2+
* Copyright (c) 2025 Espressif Systems (Shanghai) Co., Ltd.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
zephyr_udc0: &usb_otg {
8+
status = "okay";
9+
};

0 commit comments

Comments
 (0)