zephyr/subsys/usb/device/usb_work_q.h
Johann Fischer 6be45c2a18 usb: move USB device stack code to own directory
Until now the whole USB device stack code is located
in the top subsys/usb directory. Move it to own directory
in preparation for upcoming extension and rework of USB support.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2022-03-31 18:30:14 +02:00

30 lines
425 B
C

/*
* Copyright (c) 2020 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_USB_WORK_Q_H_
#define ZEPHYR_USB_WORK_Q_H_
#include <kernel.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifdef CONFIG_USB_WORKQUEUE
extern struct k_work_q z_usb_work_q;
#define USB_WORK_Q z_usb_work_q
#else
#define USB_WORK_Q k_sys_work_q
#endif
#ifdef __cplusplus
}
#endif
#endif /* ZEPHYR_USB_WORK_Q_H_ */