Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
逆着光、寻觅
rt-thread
提交
62a0172d
R
rt-thread
项目概览
逆着光、寻觅
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
1
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
62a0172d
编写于
3月 22, 2015
作者:
B
Bernard.Xiong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[Kernel] Fix the system initialization link issue
上级
e2cfb1f7
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
95 addition
and
6 deletion
+95
-6
include/components.h
include/components.h
+79
-0
include/rtthread.h
include/rtthread.h
+9
-4
src/SConscript
src/SConscript
+7
-2
未找到文件。
include/components.h
0 → 100644
浏览文件 @
62a0172d
/*
* File : components.h
* header for RT-Thread components
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2012-2015, RT-Thread Development Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Change Logs:
* Date Author Notes
* 2012-09-20 Bernard Change the name to components.h
* And all components related header files.
* 2015-02-06 Bernard Rename the components.h to rtcom.h
* 2015-03-22 Bernard Keep the compatibility.
*/
#ifndef COMPONENTS_H__
#define COMPONENTS_H__
#ifdef RT_USING_FINSH
#include <finsh.h>
#include <shell.h>
#endif
#ifdef RT_USING_LWIP
#include <lwip/sys.h>
#include <netif/ethernetif.h>
#endif
#ifdef RT_USING_DFS
#include <dfs_init.h>
#include <dfs_fs.h>
#ifdef RT_USING_DFS_ELMFAT
#include <dfs_elm.h>
#endif
#if defined(RT_USING_LWIP) && defined(RT_USING_DFS_NFS)
#include <dfs_nfs.h>
#endif
#ifdef RT_USING_DFS_ROMFS
#include <dfs_romfs.h>
#endif
#ifdef RT_USING_DFS_DEVFS
#include <devfs.h>
#endif
#ifdef RT_USING_DFS_UFFS
#include <dfs_uffs.h>
#endif
#ifdef RT_USING_DFS_JFFS2
#include <dfs_jffs2.h>
#endif
#ifdef RT_USING_DFS_YAFFS2
#include <dfs_yaffs2.h>
#endif
#ifdef RT_USING_DFS_ROMFS
#include <dfs_romfs.h>
#endif
#endif
#ifdef RT_USING_PTHREADS
#include <pthread.h>
#endif
#ifdef RT_USING_MODULE
#include <rtm.h>
#endif
#endif
include/rtthread.h
浏览文件 @
62a0172d
...
...
@@ -437,6 +437,11 @@ void rt_module_unload_sethook(void (*hook)(rt_module_t module));
void
rt_module_init_object_container
(
struct
rt_module
*
module
);
rt_err_t
rt_module_destroy
(
rt_module_t
module
);
/*
* application module system initialization
*/
int
rt_system_module_init
(
void
);
/*@}*/
#endif
...
...
@@ -455,10 +460,10 @@ void rt_interrupt_leave(void);
*/
rt_uint8_t
rt_interrupt_get_nest
(
void
);
/**
* application module
*/
int
rt_system_module_init
(
void
);
#ifdef RT_USING_COMPONENTS_INIT
void
rt_components_init
(
void
);
void
rt_components_board_init
(
void
);
#endif
/**
* @addtogroup KernelService
...
...
src/SConscript
浏览文件 @
62a0172d
...
...
@@ -5,8 +5,13 @@ from building import *
src
=
Glob
(
'*.c'
)
CPPPATH
=
[
RTT_ROOT
+
'/include'
]
if
rtconfig
.
CROSS_TOOL
==
'keil'
and
GetDepend
(
'RT_USING_MODULE'
)
==
True
:
LINKFLAGS
=
' --keep __rtmsym_* '
if
rtconfig
.
CROSS_TOOL
==
'keil'
:
# add more link flags for module and components_init.
LINKFLAGS
=
''
if
GetDepend
(
'RT_USING_MODULE'
):
LINKFLAGS
=
' --keep __rtmsym_* '
if
GetDepend
(
'RT_USING_COMPONENTS_INIT'
):
LINKFLAGS
=
' --keep __rt_init* '
else
:
LINKFLAGS
=
''
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录