xref: /nrf52832-nimble/rt-thread/components/drivers/wlan/wlan_workqueue.h (revision 042d53a763ad75cb1465103098bb88c245d95138)
1 /*
2  * Copyright (c) 2006-2018, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2018-08-19     tyx          the first version
9  */
10 
11 #ifndef __WLAN_WORKQUEUE_H__
12 #define __WLAN_WORKQUEUE_H__
13 
14 #include <ipc/workqueue.h>
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
20 #ifndef RT_WLAN_WORKQUEUE_THREAD_NAME
21 #define RT_WLAN_WORKQUEUE_THREAD_NAME  ("wlan_job")
22 #endif
23 
24 #ifndef RT_WLAN_WORKQUEUE_THREAD_SIZE
25 #define RT_WLAN_WORKQUEUE_THREAD_SIZE  (2048)
26 #endif
27 
28 #ifndef RT_WLAN_WORKQUEUE_THREAD_PRIO
29 #define RT_WLAN_WORKQUEUE_THREAD_PRIO  (20)
30 #endif
31 
32 int rt_wlan_workqueue_init(void);
33 
34 rt_err_t rt_wlan_workqueue_dowork(void (*func)(void *parameter), void *parameter);
35 
36 struct rt_workqueue *rt_wlan_get_workqueue(void);
37 
38 #ifdef __cplusplus
39 }
40 #endif
41 
42 #endif
43