1
0

wlan_workqueue.h 823 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Copyright (c) 2006-2021, 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. #ifndef __WLAN_WORKQUEUE_H__
  11. #define __WLAN_WORKQUEUE_H__
  12. #include <ipc/workqueue.h>
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. #ifndef RT_WLAN_WORKQUEUE_THREAD_NAME
  17. #define RT_WLAN_WORKQUEUE_THREAD_NAME ("wlan_job")
  18. #endif
  19. #ifndef RT_WLAN_WORKQUEUE_THREAD_SIZE
  20. #define RT_WLAN_WORKQUEUE_THREAD_SIZE (2048)
  21. #endif
  22. #ifndef RT_WLAN_WORKQUEUE_THREAD_PRIO
  23. #define RT_WLAN_WORKQUEUE_THREAD_PRIO (20)
  24. #endif
  25. int rt_wlan_workqueue_init(void);
  26. rt_err_t rt_wlan_workqueue_dowork(void (*func)(void *parameter), void *parameter);
  27. struct rt_workqueue *rt_wlan_get_workqueue(void);
  28. #ifdef __cplusplus
  29. }
  30. #endif
  31. #endif