WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
los_errno.h
浏览该文件的文档.
1/* ----------------------------------------------------------------------------
2 * Copyright (c) Huawei Technologies Co., Ltd. 2013-2019. All rights reserved.
3 * Description: Errno
4 * Author: Huawei LiteOS Team
5 * Create: 2013-01-01
6 * Redistribution and use in source and binary forms, with or without modification,
7 * are permitted provided that the following conditions are met:
8 * 1. Redistributions of source code must retain the above copyright notice, this list of
9 * conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, this list
11 * of conditions and the following disclaimer in the documentation and/or other materials
12 * provided with the distribution.
13 * 3. Neither the name of the copyright holder nor the names of its contributors may be used
14 * to endorse or promote products derived from this software without specific prior written
15 * permission.
16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
20 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
21 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
22 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
23 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
25 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
26 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 * --------------------------------------------------------------------------- */
28
34#ifndef _LOS_ERRNO_H
35#define _LOS_ERRNO_H
36
37#include "los_typedef.h"
38
39#ifdef __cplusplus
40extern "C" {
41#endif /* __cplusplus */
42
47#define LOS_ERRNO_OS_ID (0x00U << 16)
48
53#define LOS_ERRTYPE_NORMAL (0x00U << 24)
54
59#define LOS_ERRTYPE_WARN (0x01U << 24)
60
65#define LOS_ERRTYPE_ERROR (0x02U << 24)
66
71#define LOS_ERRTYPE_FATAL (0x03U << 24)
72
83#define LOS_ERRNO_OS_FATAL(MID, ERRNO) \
84 (LOS_ERRTYPE_FATAL | LOS_ERRNO_OS_ID | ((UINT32)(MID) << 8) | ((UINT32)(ERRNO)))
85
96#define LOS_ERRNO_OS_ERROR(MID, ERRNO) \
97 (LOS_ERRTYPE_ERROR | LOS_ERRNO_OS_ID | ((UINT32)(MID) << 8) | ((UINT32)(ERRNO)))
98
109#define LOS_ERRNO_OS_WARN(MID, ERRNO) \
110 (LOS_ERRTYPE_WARN | LOS_ERRNO_OS_ID | ((UINT32)(MID) << 8) | ((UINT32)(ERRNO)))
111
122#define LOS_ERRNO_OS_NORMAL(MID, ERRNO) \
123 (LOS_ERRTYPE_NORMAL | LOS_ERRNO_OS_ID | ((UINT32)(MID) << 8) | ((UINT32)(ERRNO)))
124
171
172#ifdef __cplusplus
173}
174#endif /* __cplusplus */
175
176#endif /* _LOS_ERRNO_H */
LOS_MOUDLE_ID
Definition los_errno.h:129
@ LOS_MOD_ERR
Definition los_errno.h:145
@ LOS_MOD_MSG
Definition los_errno.h:135
@ LOS_MOD_THRDCPUP
Definition los_errno.h:153
@ LOS_MOD_STKMON
Definition los_errno.h:155
@ LOS_MOD_TSK
Definition los_errno.h:132
@ LOS_MOD_TRACE
Definition los_errno.h:150
@ LOS_MOD_EVTTIME
Definition los_errno.h:152
@ LOS_MOD_HWWDG
Definition los_errno.h:140
@ LOS_MOD_HWI
Definition los_errno.h:139
@ LOS_MOD_EXC
Definition los_errno.h:146
@ LOS_MOD_IPC
Definition los_errno.h:154
@ LOS_MOD_CPUP
Definition los_errno.h:160
@ LOS_MOD_TICK
Definition los_errno.h:134
@ LOS_MOD_LPM
Definition los_errno.h:163
@ LOS_MOD_PERF
Definition los_errno.h:162
@ LOS_MOD_RWSEM
Definition los_errno.h:164
@ LOS_MOD_SYS
Definition los_errno.h:130
@ LOS_MOD_QUE
Definition los_errno.h:136
@ LOS_MOD_BUTT
Definition los_errno.h:169
@ LOS_MOD_FPB
Definition los_errno.h:161
@ LOS_MOD_DYN_SHM
Definition los_errno.h:165
@ LOS_MOD_CACHE
Definition los_errno.h:141
@ LOS_MOD_SEM
Definition los_errno.h:137
@ LOS_MOD_KNLSTAT
Definition los_errno.h:151
@ LOS_MOD_MBOX
Definition los_errno.h:138
@ LOS_MOD_SHELL
Definition los_errno.h:167
@ LOS_MOD_SWTMR
Definition los_errno.h:133
@ LOS_MOD_MPU
Definition los_errno.h:148
@ LOS_MOD_MEM
Definition los_errno.h:131
@ LOS_MOD_MMU
Definition los_errno.h:143
@ LOS_MOD_MUX
Definition los_errno.h:159
@ LOS_MOD_TIMER
Definition los_errno.h:156
@ LOS_MOD_NMHWI
Definition los_errno.h:149
@ LOS_MOD_RPQUEUE
Definition los_errno.h:166
@ LOS_MOD_RESLEAKMON
Definition los_errno.h:157
@ LOS_MOD_HWTMR
Definition los_errno.h:142
@ LOS_MOD_DRIVER
Definition los_errno.h:168
@ LOS_MOD_EVENT
Definition los_errno.h:158
@ LOS_MOD_LOG
Definition los_errno.h:144
@ LOS_MOD_CSTK
Definition los_errno.h:147