Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
rt-thread
提交
6b06cb83
R
rt-thread
项目概览
BaiXuePrincess
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
6b06cb83
编写于
9月 18, 2017
作者:
X
xieyangrun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rename WEAK to RT_WEAK
上级
7b4e7224
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
13 addition
and
13 deletion
+13
-13
components/cplusplus/crt_init.c
components/cplusplus/crt_init.c
+2
-2
components/dfs/filesystems/romfs/romfs.c
components/dfs/filesystems/romfs/romfs.c
+2
-2
components/net/lwip-2.0.0/src/arch/sys_arch.c
components/net/lwip-2.0.0/src/arch/sys_arch.c
+1
-1
components/net/lwip-2.0.2/src/arch/sys_arch.c
components/net/lwip-2.0.2/src/arch/sys_arch.c
+1
-1
include/rtdef.h
include/rtdef.h
+6
-6
src/kservice.c
src/kservice.c
+1
-1
未找到文件。
components/cplusplus/crt_init.c
浏览文件 @
6b06cb83
...
...
@@ -44,11 +44,11 @@ void _fini()
{
}
WEAK
void
*
__dso_handle
=
0
;
RT_
WEAK
void
*
__dso_handle
=
0
;
#endif
WEAK
RT_
WEAK
int
cplusplus_system_init
(
void
)
{
#if defined(__GNUC__) && !defined(__CC_ARM)
...
...
components/dfs/filesystems/romfs/romfs.c
浏览文件 @
6b06cb83
...
...
@@ -39,13 +39,13 @@ const static unsigned char _dummy_txt[] =
0x74
,
0x68
,
0x69
,
0x73
,
0x20
,
0x69
,
0x73
,
0x20
,
0x61
,
0x20
,
0x66
,
0x69
,
0x6c
,
0x65
,
0x21
,
0x0d
,
0x0a
,
};
const
struct
romfs_dirent
WEAK
_root_dirent
[]
=
const
struct
romfs_dirent
RT_
WEAK
_root_dirent
[]
=
{
{
ROMFS_DIRENT_DIR
,
"dummy"
,
(
rt_uint8_t
*
)
_dummy
,
sizeof
(
_dummy
)
/
sizeof
(
_dummy
[
0
])},
{
ROMFS_DIRENT_FILE
,
"dummy.txt"
,
_dummy_txt
,
sizeof
(
_dummy_txt
)},
};
const
struct
romfs_dirent
WEAK
romfs_root
=
const
struct
romfs_dirent
RT_
WEAK
romfs_root
=
{
ROMFS_DIRENT_DIR
,
"/"
,
(
rt_uint8_t
*
)
_root_dirent
,
sizeof
(
_root_dirent
)
/
sizeof
(
_root_dirent
[
0
])
};
...
...
components/net/lwip-2.0.0/src/arch/sys_arch.c
浏览文件 @
6b06cb83
...
...
@@ -600,7 +600,7 @@ u32_t sys_now(void)
return
rt_tick_get
()
*
(
1000
/
RT_TICK_PER_SECOND
);
}
WEAK
RT_
WEAK
void
mem_init
(
void
)
{
}
...
...
components/net/lwip-2.0.2/src/arch/sys_arch.c
浏览文件 @
6b06cb83
...
...
@@ -602,7 +602,7 @@ u32_t sys_now(void)
}
WEAK
RT_
WEAK
void
mem_init
(
void
)
{
}
...
...
include/rtdef.h
浏览文件 @
6b06cb83
...
...
@@ -97,7 +97,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
#define RT_UNUSED __attribute__((unused))
#define RT_USED __attribute__((used))
#define ALIGN(n) __attribute__((aligned(n)))
#define WEAK __weak
#define
RT_
WEAK __weak
#define rt_inline static __inline
/* module compiling */
#ifdef RT_USING_MODULE
...
...
@@ -113,7 +113,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
#define RT_USED __root
#define PRAGMA(x) _Pragma(#x)
#define ALIGN(n) PRAGMA(data_alignment=n)
#define
WEAK
__weak
#define
RT_WEAK
__weak
#define rt_inline static inline
#define RTT_API
...
...
@@ -133,7 +133,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
#define RT_UNUSED __attribute__((unused))
#define RT_USED __attribute__((used))
#define ALIGN(n) __attribute__((aligned(n)))
#define
WEAK
__attribute__((weak))
#define
RT_WEAK
__attribute__((weak))
#define rt_inline static __inline
#define RTT_API
#elif defined (__ADSPBLACKFIN__)
/* for VisualDSP++ Compiler */
...
...
@@ -142,7 +142,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
#define RT_UNUSED __attribute__((unused))
#define RT_USED __attribute__((used))
#define ALIGN(n) __attribute__((aligned(n)))
#define
WEAK
__attribute__((weak))
#define
RT_WEAK
__attribute__((weak))
#define rt_inline static inline
#define RTT_API
#elif defined (_MSC_VER)
...
...
@@ -151,7 +151,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
#define RT_UNUSED
#define RT_USED
#define ALIGN(n) __declspec(align(n))
#define WEAK
#define
RT_
WEAK
#define rt_inline static __inline
#define RTT_API
#elif defined (__TI_COMPILER_VERSION__)
...
...
@@ -164,7 +164,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
#define RT_USED
#define PRAGMA(x) _Pragma(#x)
#define ALIGN(n)
#define WEAK
#define
RT_
WEAK
#define rt_inline static inline
#define RTT_API
#else
...
...
src/kservice.c
浏览文件 @
6b06cb83
...
...
@@ -1101,7 +1101,7 @@ rt_device_t rt_console_set_device(const char *name)
RTM_EXPORT
(
rt_console_set_device
);
#endif
WEAK
void
rt_hw_console_output
(
const
char
*
str
)
RT_
WEAK
void
rt_hw_console_output
(
const
char
*
str
)
{
/* empty console output */
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录