WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
oal_types.h
浏览该文件的文档.
1/*
2 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2019-2020. All rights reserved.
3 * Description: oal type head file.
4 */
5
6/*****************************************************************************
7 1 其他头文件包含
8*****************************************************************************/
9
10#ifndef __OAL_TYPES_HCM_H__
11#define __OAL_TYPES_HCM_H__
12
13#include <osal_types.h>
14#include "td_base.h"
15#include "oal_types_device.h"
16#include "oal_plat_type.h"
17
18#ifdef __cplusplus
19#if __cplusplus
20extern "C" {
21#endif
22#endif
23
24/*****************************************************************************
25 3 宏定义
26*****************************************************************************/
27#ifndef OAL_INLINE
28#ifdef INLINE_TO_FORCEINLINE
29#define OAL_INLINE __forceinline
30#else
31#define OAL_INLINE inline
32#endif
33#endif
34#undef OAL_STATIC
35#define OAL_STATIC static
36
37#if defined(_PRE_PC_LINT) /* 仅适用于PC_LINT工程时 */
38#define OAL_VOLATILE
39#else
40#define OAL_VOLATILE volatile
41#endif
42
43#define oal_reference(data) ((void)(data))
44
45#define OAL_CONST const
46
47#ifndef unref_param
48#define unref_param(P) ((P) = (P))
49#endif
50
51#ifndef unref_param_prv
52#define unref_param_prv(P) ((P) = (P))
53#endif
54
55/* linux错误码 */
56#define OAL_ETIMEDOUT 110 /* Connection timed out */
57
58/* MAC ADDR 移位定义 */
59#define MAC_ADDR_0 0
60#define MAC_ADDR_1 1
61#define MAC_ADDR_2 2
62#define MAC_ADDR_3 3
63#define MAC_ADDR_4 4
64#define MAC_ADDR_5 5
65
66/*****************************************************************************
67 4 枚举定义
68*****************************************************************************/
69
70/* 定义功能开关 */
78
79/*****************************************************************************
80 5 全局变量声明
81*****************************************************************************/
82
83
84/*****************************************************************************
85 6 消息头定义
86*****************************************************************************/
87
88
89/*****************************************************************************
90 7 消息定义
91*****************************************************************************/
92
93
94/*****************************************************************************
95 8 STRUCT定义
96*****************************************************************************/
97
98
99/*****************************************************************************
100 9 UNION定义
101*****************************************************************************/
102
103
104/*****************************************************************************
105 10 函数声明
106*****************************************************************************/
107
108
109#ifdef __cplusplus
110 #if __cplusplus
111 }
112 #endif
113#endif
114
115#endif /* end of file */
116
osal_u8 oal_switch_enum_uint8
Definition oal_types.h:77
oal_switch_enum
Definition oal_types.h:71
@ OAL_SWITCH_ON
Definition oal_types.h:73
@ OAL_SWITCH_BUTT
Definition oal_types.h:75
@ OAL_SWITCH_OFF
Definition oal_types.h:72
unsigned char osal_u8
Definition osal_types.h:11