modules: canopennode: set tx_workq thread name
Set a thread name for the tx_workq thread, so that it shows up in "kernel stacks" when the shell or thread debugging are enabled. Signed-off-by: Fabio Baltieri <fabio.baltieri@gmail.com>
This commit is contained in:
parent
6d8f1bf6d9
commit
b5f9f34fb5
1 changed files with 2 additions and 0 deletions
|
@ -481,6 +481,8 @@ static int canopen_init(const struct device *dev)
|
||||||
K_KERNEL_STACK_SIZEOF(canopen_tx_workq_stack),
|
K_KERNEL_STACK_SIZEOF(canopen_tx_workq_stack),
|
||||||
CONFIG_CANOPENNODE_TX_WORKQUEUE_PRIORITY, NULL);
|
CONFIG_CANOPENNODE_TX_WORKQUEUE_PRIORITY, NULL);
|
||||||
|
|
||||||
|
k_thread_name_set(&canopen_tx_workq.thread, "canopen_tx_workq");
|
||||||
|
|
||||||
k_work_init(&canopen_tx_queue.work, canopen_tx_retry);
|
k_work_init(&canopen_tx_queue.work, canopen_tx_retry);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue