summaryrefslogtreecommitdiff
path: root/components/drivers/wlan/dev_wlan_workqueue.h
diff options
context:
space:
mode:
Diffstat (limited to 'components/drivers/wlan/dev_wlan_workqueue.h')
-rw-r--r--components/drivers/wlan/dev_wlan_workqueue.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/components/drivers/wlan/dev_wlan_workqueue.h b/components/drivers/wlan/dev_wlan_workqueue.h
new file mode 100644
index 0000000000..f85f8493ce
--- /dev/null
+++ b/components/drivers/wlan/dev_wlan_workqueue.h
@@ -0,0 +1,42 @@
+/*
+ * Copyright (c) 2006-2023, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date Author Notes
+ * 2018-08-19 tyx the first version
+ */
+
+#ifndef __DEV_WLAN_WORKQUEUE_H__
+#define __DEV_WLAN_WORKQUEUE_H__
+
+#include <ipc/workqueue.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifndef RT_WLAN_WORKQUEUE_THREAD_NAME
+#define RT_WLAN_WORKQUEUE_THREAD_NAME ("wlan_job")
+#endif
+
+#ifndef RT_WLAN_WORKQUEUE_THREAD_SIZE
+#define RT_WLAN_WORKQUEUE_THREAD_SIZE (2048)
+#endif
+
+#ifndef RT_WLAN_WORKQUEUE_THREAD_PRIO
+#define RT_WLAN_WORKQUEUE_THREAD_PRIO (20)
+#endif
+
+int rt_wlan_workqueue_init(void);
+
+rt_err_t rt_wlan_workqueue_dowork(void (*func)(void *parameter), void *parameter);
+
+struct rt_workqueue *rt_wlan_get_workqueue(void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif