1 /*
2  * Copyright (c) 2020 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef ZEPHYR_USB_WORK_Q_H_
8 #define ZEPHYR_USB_WORK_Q_H_
9 
10 #include <kernel.h>
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 #ifdef CONFIG_USB_WORKQUEUE
17 
18 extern struct k_work_q z_usb_work_q;
19 
20 #define USB_WORK_Q z_usb_work_q
21 #else
22 #define USB_WORK_Q k_sys_work_q
23 #endif
24 
25 #ifdef __cplusplus
26 }
27 #endif
28 
29 #endif /* ZEPHYR_USB_WORK_Q_H_ */
30