WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
frw_thread.h
浏览该文件的文档.
1/*
2 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2020-2023. All rights reserved.
3 * Description: frw线程实现头文件.
4 * Author:
5 * Create: 2020-07-08
6 */
7
8#ifndef __FRW_THREAD_H__
9#define __FRW_THREAD_H__
10
11#include "osal_list.h"
12#include "frw_msg_rom.h"
13#include "osal_types.h"
14#include "osal_adapt.h"
15
16#ifdef __cplusplus
17#if __cplusplus
18extern "C" {
19#endif
20#endif
21
22#undef THIS_FILE_ID
23#define THIS_FILE_ID OAM_FILE_ID_FRW_THREAD_H
24
25#if defined(_PRE_OS_VERSION_LITEOS) && defined(_PRE_OS_VERSION) && (_PRE_OS_VERSION_LITEOS == _PRE_OS_VERSION)
26#define FRW_THREAD_TASK_PRIORITY 4 /* liteos支持32个优先级[0-31],最高优先级为0,最低优先级为31 */
27#define FRW_TXDATA_TASK_PRIORITY 4
28#else
29#if defined(_PRE_WLAN_FEATURE_WS73) && defined(WSCFG_BUS_SDIO)
30#define FRW_THREAD_TASK_PRIORITY 10 /* 该优先级不能比内核的sdio_rx(内核默认FIFO 50)优先级高 */
31#define FRW_TXDATA_TASK_PRIORITY 9 /* 数据帧线程优先级比消息线程低 */
32#else
33#define FRW_THREAD_TASK_PRIORITY 99 /* 83和86的frw任务优先级待测试后进一步优化 */
34#define FRW_TXDATA_TASK_PRIORITY 98 /* 数据帧线程优先级比消息线程低 */
35#endif
36#endif
37
38#define FRW_MSG_TASK_STACK_SIZE 0x1400
39#define FRW_TX_DATA_TASK_STACK_SIZE 0x1000
40
51
52#ifdef __cplusplus
53#if __cplusplus
54}
55#endif
56#endif
57
58#endif /* end of frw_thread.h */
osal_u8 frw_post_pri_enum_uint8
Definition frw_msg_rom.h:45
osal_s32 frw_thread_init(osal_void)
osal_s32 frw_msg_check_frw_deadlock(osal_s32 msg_id)
osal_s32 frw_msg_check_hcc_deadlock(osal_s32 msg_id)
osal_s32 frw_host_post_msg_sync(osal_u16 msg_id, osal_u8 vap_id, osal_u16 time_out, frw_msg *msg)
osal_s32 frw_host_post_msg_async(osal_u16 msg_id, frw_post_pri_enum_uint8 pri, osal_u8 vap_id, frw_msg *msg)
osal_u32 frw_pm_queue_empty_check(osal_void)
osal_s32 frw_thread_exit(osal_bool thread_stop)
osal_void frw_thread_dump(osal_void)
osal_s32 frw_send_cfg_to_device_sync(osal_u16 msg_id, osal_u8 vap_id, osal_u16 time_out, frw_msg *msg)
osal_s32 frw_host_post_msg(osal_u16 msg_id, frw_post_pri_enum_uint8 pri, osal_u8 vap_id, frw_msg *msg)
int osal_s32
Definition osal_types.h:19
unsigned char osal_u8
Definition osal_types.h:11
osal_u8 osal_bool
Definition osal_types.h:27
void osal_void
Definition osal_types.h:29
unsigned int osal_u32
Definition osal_types.h:13
unsigned short osal_u16
Definition osal_types.h:12
Definition frw_msg_rom.h:74