WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
oal_spinlock.h
浏览该文件的文档.
1/*
2 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2022-2022. All rights reserved.
3 * Create: 2022-4-27
4 */
5
6#ifndef __OAL_SPINLOCK_H__
7#define __OAL_SPINLOCK_H__
8
9#ifdef _PRE_WLAN_FEATURE_WS73
10#include <los_task.h>
11#endif
12#include "oal_types.h"
13#ifdef __cplusplus
14#if __cplusplus
15extern "C" {
16#endif
17#endif
18
19/*
20锁线程调度,支持嵌套, 73 liteos缺少这两个osal接口
21*/
22#ifdef _PRE_WLAN_FEATURE_WS73
23#define osal_spin_lock_bh(lock) do { (void)(lock); LOS_TaskLock(); } while (0)
24#define osal_spin_unlock_bh(lock) do { (void)(lock); LOS_TaskUnlock(); } while (0)
25#endif
26
27#ifdef __cplusplus
28#if __cplusplus
29}
30#endif
31#endif
32
33#endif /* end of oal_spinlock.h */