WS63 SDK 文档
7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
los_builddef.h
浏览该文件的文档.
1
/* ----------------------------------------------------------------------------
2
* Copyright (c) Huawei Technologies Co., Ltd. 2013-2019. All rights reserved.
3
* Description: System Build Define HeadFile
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
29
#ifndef _LOS_BUILDEF_H
30
#define _LOS_BUILDEF_H
31
32
#ifdef __cplusplus
33
extern
"C"
{
34
#endif
/* __cplusplus */
35
36
#define OS_LITTLE_ENDIAN 0x1234
/* Little endian */
37
#define OS_BIG_ENDIAN 0x4321
/* Big endian */
38
39
#ifndef OS_BYTE_ORDER
40
#define OS_BYTE_ORDER OS_LITTLE_ENDIAN
41
#endif
42
43
/* Define OS code data sections */
44
/* The indicator function is inline */
45
#ifndef LITE_OS_SEC_ALW_INLINE
46
#define LITE_OS_SEC_ALW_INLINE
/* __attribute__((always_inline)) */
47
#endif
48
49
#ifndef LITE_OS_SEC_TEXT
50
#define LITE_OS_SEC_TEXT
/* __attribute__((section(".text.sram"))) */
51
#endif
52
53
#ifndef LITE_OS_SEC_TEXT_MINOR
54
#define LITE_OS_SEC_TEXT_MINOR
/* __attribute__((section(".text.ddr"))) */
55
#endif
56
57
#ifndef LITE_OS_SEC_TEXT_INIT
58
#define LITE_OS_SEC_TEXT_INIT
/* __attribute__((section(".text.init"))) */
59
#endif
60
61
#ifndef LITE_OS_SEC_DATA
62
#define LITE_OS_SEC_DATA
/* __attribute__((section(".data.sram"))) */
63
#endif
64
65
#ifndef LITE_OS_SEC_DATA_MINOR
66
#define LITE_OS_SEC_DATA_MINOR
/* __attribute__((section(".data.ddr"))) */
67
#endif
68
69
#ifndef LITE_OS_SEC_DATA_INIT
70
#define LITE_OS_SEC_DATA_INIT
/* __attribute__((section(".data.init"))) */
71
#endif
72
73
#ifndef LITE_OS_SEC_DATA_VEC
74
#define LITE_OS_SEC_DATA_VEC __attribute__((section(".data.vector")))
75
#endif
76
77
#ifndef LITE_OS_SEC_BSS
78
#define LITE_OS_SEC_BSS
/* __attribute__((section(".bss.sram"))) */
79
#endif
80
81
#ifndef LITE_OS_SEC_BSS_MINOR
82
#define LITE_OS_SEC_BSS_MINOR
/* __attribute__((section(".bss.ddr"))) */
83
#endif
84
85
#ifndef LITE_OS_SEC_BSS_INIT
86
#define LITE_OS_SEC_BSS_INIT
/* __attribute__((section(".bss.init"))) */
87
#endif
88
89
#ifndef LITE_OS_SEC_ITCM
90
#define LITE_OS_SEC_ITCM
/* __attribute__((section(".itcm "))) */
91
#endif
92
#ifndef LITE_OS_SEC_DTCM
93
#define LITE_OS_SEC_DTCM
/* __attribute__((section(".dtcm"))) */
94
#endif
95
96
#ifndef LITE_OS_SEC_LASLR_INIT
97
#define LITE_OS_SEC_LASLR_INIT __attribute__((section(".laslr.init")))
98
#endif
99
#ifndef LITE_OS_SEC_LASLR_TEXT
100
#define LITE_OS_SEC_LASLR_TEXT __attribute__((section(".laslr.text"))) \
101
__attribute__((no_sanitize_address))
102
#endif
103
#ifndef LITE_OS_SEC_LASLR_DATA
104
#define LITE_OS_SEC_LASLR_DATA __attribute__((section(".laslr.data")))
105
#endif
106
107
#define PACK1
108
109
#ifndef LITE_OS_ATTR_SEC
110
#define LITE_OS_ATTR_SEC(name) __attribute__((section(#name)))
111
#endif
112
#ifndef LITE_OS_ATTR_ALIGN
113
#define LITE_OS_ATTR_ALIGN(x) __attribute__((aligned(x)))
114
#endif
115
#ifndef LITE_OS_ATTR_SEC_ALIGN
116
#define LITE_OS_ATTR_SEC_ALIGN(name, x) __attribute__((section(#name), aligned(x)))
117
#endif
118
#ifndef OS_EMBED_ASM
119
#define OS_EMBED_ASM __asm__ __volatile__
120
#endif
121
122
#ifdef __cplusplus
123
}
124
#endif
/* __cplusplus */
125
126
#endif
/* _LOS_BUILDEF_H */
src
kernel
liteos
liteos_v208.5.0
Huawei_LiteOS
kernel
include
los_builddef.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