WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
soc_osal.h
浏览该文件的文档.
1/*
2 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd.. 2021-2022. All rights reserved.
3 * Description: OS Abstract Layer.
4 */
5
6#ifndef __SOC_OSAL_H__
7#define __SOC_OSAL_H__
8
9#include "osal_list.h"
10#include "osal_errno.h"
11
12/* osal api header begin */
13#include "atomic/osal_atomic.h"
14#include "debug/osal_debug.h"
16#include "lock/osal_mutex.h"
17#include "schedule/osal_task.h"
18#include "event/osal_event.h"
20
21#if defined(__FREERTOS__)
22#include "memory/osal_addr.h"
23#include "memory/osal_barrier.h"
24#include "memory/osal_cache.h"
26#include "device/osal_device.h"
28#include "math/osal_math.h"
29#include "proc/osal_proc.h"
31#include "lock/osal_spinlock.h"
32#include "string/osal_string.h"
33#include "time/osal_timer.h"
34#include "schedule/osal_wait.h"
36#endif
37
38#if defined(__linux__)
39#include "memory/osal_addr.h"
40#include "memory/osal_barrier.h"
41#include "device/osal_device.h"
43#include "math/osal_math.h"
44#include "proc/osal_proc.h"
46#include "lock/osal_spinlock.h"
47#include "string/osal_string.h"
48#include "time/osal_timer.h"
49#include "schedule/osal_wait.h"
51#if defined(__KERNEL__)
52#include "memory/osal_cache.h"
53#include "math/osal_bitmap.h"
56#include "lock/osal_rwlock.h"
57#endif
58#endif
59
60#if defined(__LITEOS__)
61#include "memory/osal_addr.h"
62#include "memory/osal_barrier.h"
63#include "memory/osal_cache.h"
65#include "device/osal_device.h"
66#include "event/osal_event.h"
68#include "math/osal_math.h"
70#include "proc/osal_proc.h"
72#include "lock/osal_spinlock.h"
73#include "string/osal_string.h"
74#include "time/osal_timer.h"
75#include "schedule/osal_wait.h"
77#endif
78
79#if defined(__NONOS__)
80#include "lock/osal_spinlock.h"
81#include "time/osal_timer.h"
82#include "schedule/osal_wait.h"
84#endif
85
86#if defined(CONFIG_SEC_CORE)
87#include "memory/osal_addr.h"
88#include "memory/osal_cache.h"
89#include "drvbox/osal_drvbox.h"
91#include "schedule/osal_wait.h"
92#endif
93/* osal api header end */
94#ifdef OSAL_IRQ_RECORD_DEBUG
95#include "osal_adapt_debug.h"
96#endif
97
98#ifdef __cplusplus
99#if __cplusplus
100extern "C" {
101#endif
102#endif
103
104#define OSAL_SUCCESS 0
105#define OSAL_FAILURE (-1)
106
107#ifdef __cplusplus
108#if __cplusplus
109}
110#endif
111#endif
112#endif /* __SOC_OSAL_H__ */