Skip to content

Commit de36a7d

Browse files
mniestrojfabiobaltieri
authored andcommitted
drivers: usb_dc_kinetis: 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 1e982ff commit de36a7d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/usb/device/usb_dc_kinetis.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,6 +1045,7 @@ static int usb_kinetis_init(const struct device *dev)
10451045
USBD_THREAD_STACK_SIZE,
10461046
usb_kinetis_thread_main, NULL, NULL, NULL,
10471047
K_PRIO_COOP(2), 0, K_NO_WAIT);
1048+
k_thread_name_set(&dev_data.thread, "usb_kinetis");
10481049

10491050
IRQ_CONNECT(DT_INST_IRQN(0), DT_INST_IRQ(0, priority),
10501051
usb_kinetis_isr_handler, 0, 0);

0 commit comments

Comments
 (0)