WS63 SDK 文档
7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
los_toolchain.h
浏览该文件的文档.
1
/* ----------------------------------------------------------------------------
2
* Copyright (c) Huawei Technologies Co., Ltd. 2013-2019. All rights reserved.
3
* Description: ToolChain
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_TOOLCHAIN_H
35
#define _LOS_TOOLCHAIN_H
36
37
#if defined ( __ICCARM__ )
38
#include "iccarm_builtin.h"
39
#endif
40
41
#ifdef __cplusplus
42
extern
"C"
{
43
#endif
/* __cplusplus */
44
45
/* for ARM Compiler */
46
#if defined ( __CC_ARM )
47
#ifndef ASM
48
#define ASM __asm
49
#endif
50
51
#ifndef INLINE
52
#define INLINE __inline
53
#endif
54
55
#ifndef STATIC_INLINE
56
#define STATIC_INLINE static __inline
57
#endif
58
59
#ifndef USED
60
#define USED __attribute__((used))
61
#endif
62
63
#ifndef WEAK
64
#define WEAK __attribute__((weak))
65
#endif
66
67
#ifndef CLZ
68
#define CLZ(value) (__clz(value))
69
#endif
70
71
/* for IAR Compiler */
72
#elif defined ( __ICCARM__ )
73
74
#ifndef ASM
75
#define ASM __asm
76
#endif
77
78
#ifndef INLINE
79
#define INLINE inline
80
#endif
81
82
#ifndef STATIC_INLINE
83
#define STATIC_INLINE static inline
84
#endif
85
86
#ifndef USED
87
#define USED __root
88
#endif
89
90
#ifndef WEAK
91
#define WEAK __weak
92
#endif
93
94
#ifndef CLZ
95
#define CLZ(value) (__iar_builtin_CLZ(value))
96
#endif
97
98
#ifndef CTZ
99
#define CTZ(value) (__UNDEFINED(value))
100
#endif
101
102
/* for GNU Compiler */
103
#elif defined ( __GNUC__ )
104
105
#ifndef ASM
106
#define ASM __asm
107
#endif
108
109
#ifndef INLINE
110
#define INLINE inline
111
#endif
112
113
#ifndef STATIC_INLINE
114
#define STATIC_INLINE static inline
115
#endif
116
117
#ifndef USED
118
#define USED __attribute__((used))
119
#endif
120
121
#ifndef WEAK
122
#define WEAK __attribute__((weak))
123
#endif
124
125
#ifndef CLZ
126
#define CLZ(value) (__builtin_clz(value))
127
#endif
128
129
#ifndef CTZ
130
#define CTZ(value) (__builtin_ctz(value))
131
#endif
132
133
#else
134
#error Unknown compiler.
135
#endif
136
137
#ifdef __cplusplus
138
}
139
#endif
/* __cplusplus */
140
141
#endif
/* _LOS_TOOLCHAIN_H */
src
kernel
liteos
liteos_v208.5.0
Huawei_LiteOS
kernel
include
los_toolchain.h
由
William Goodspeed
维护 | E-mail: gongzl@stu.hebust.edu.cn | Wechat: a23333344 | ALSO CHECKOUT
WS63FLASH
!
生成于 2025年 一月 4日 星期六 17:47:12 , 为 WS63 SDK 文档使用
1.9.8