refactor: k_work_queue API updates.
This commit is contained in:
parent
79ab60dfe5
commit
2c5d5fde51
7 changed files with 23 additions and 20 deletions
|
|
@ -152,8 +152,10 @@ int zmk_split_bt_position_released(uint8_t position) {
|
|||
}
|
||||
|
||||
int service_init(const struct device *_arg) {
|
||||
k_work_q_start(&service_work_q, service_q_stack, K_THREAD_STACK_SIZEOF(service_q_stack),
|
||||
CONFIG_ZMK_SPLIT_BLE_PERIPHERAL_PRIORITY);
|
||||
static const struct k_work_queue_config queue_config = {
|
||||
.name = "Split Peripheral Notification Queue"};
|
||||
k_work_queue_start(&service_work_q, service_q_stack, K_THREAD_STACK_SIZEOF(service_q_stack),
|
||||
CONFIG_ZMK_SPLIT_BLE_PERIPHERAL_PRIORITY, &queue_config);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue