Skip to content

Commit cf4578b

Browse files
mniestrojfabiobaltieri
authored andcommitted
drivers: usb_dc_rpi: set thread name
Thread name is useful when debugging or using shell with CONFIG_THREAD_NAME=y. Signed-off-by: Marcin Niestroj <[email protected]>
1 parent 966738d commit cf4578b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/usb/device/usb_dc_rpi_pico.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,7 @@ static int usb_rpi_init(const struct device *dev)
747747
USBD_THREAD_STACK_SIZE,
748748
udc_rpi_thread_main, NULL, NULL, NULL,
749749
K_PRIO_COOP(2), 0, K_NO_WAIT);
750+
k_thread_name_set(&thread, "usb_rpi");
750751

751752
IRQ_CONNECT(USB_IRQ, USB_IRQ_PRI, udc_rpi_isr, 0, 0);
752753
irq_enable(USB_IRQ);

0 commit comments

Comments
 (0)