Skip to content

Commit adf920a

Browse files
committed
rp2040: enable usb device and usb serial console
1 parent 7063460 commit adf920a

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
CONFIG_USB_DEVICE_STACK=y
2+
CONFIG_USB_DEVICE_PRODUCT="Raspberry Pi Pico"
3+
CONFIG_USB_DEVICE_MANUFACTURER="Raspberry Pi"
4+
CONFIG_USB_DEVICE_VID=0x2E8A
5+
CONFIG_USB_DEVICE_PID=0x00C0
6+
7+
CONFIG_SERIAL=y
8+
CONFIG_CONSOLE=y
9+
CONFIG_UART_CONSOLE=y
10+
CONFIG_UART_LINE_CTRL=y

variants/rpi_pico_rp2040/rpi_pico_rp2040.overlay

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@
7878
<&adc 1>,
7979
<&adc 2>;
8080

81-
serials = <&pico_serial>;
81+
serials = <&board_cdc_acm_uart>, <&pico_serial>;
82+
cdc-acm = <&board_cdc_acm_uart>;
8283
i2cs = <&pico_i2c0>;
8384
spis = <&pico_spi>;
8485
};
@@ -199,10 +200,17 @@
199200
};
200201
};
201202

203+
&zephyr_udc0 {
204+
board_cdc_acm_uart: board_cdc_acm_uart {
205+
compatible = "zephyr,cdc-acm-uart";
206+
status = "okay";
207+
};
208+
};
209+
202210
&flash0 {
203211
partitions {
204212
user_sketch: partition@e0000 {
205213
reg = <0x0E0000 0x20000>;
206214
};
207215
};
208-
};
216+
};

0 commit comments

Comments
 (0)