Skip to content

Commit 966738d

Browse files
mniestrojfabiobaltieri
authored andcommitted
drivers: usb_dc_mcux: 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 de36a7d commit 966738d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/usb/device/usb_dc_mcux.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,7 @@ static int usb_mcux_init(const struct device *dev)
845845
USBD_MCUX_THREAD_STACK_SIZE,
846846
usb_mcux_thread_main, NULL, NULL, NULL,
847847
K_PRIO_COOP(2), 0, K_NO_WAIT);
848+
k_thread_name_set(&dev_data.thread, "usb_mcux");
848849

849850
IRQ_CONNECT(DT_INST_IRQN(0), DT_INST_IRQ(0, priority),
850851
usb_isr_handler, 0, 0);

0 commit comments

Comments
 (0)