Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
码肥人壮
rt-thread
提交
f07bb064
R
rt-thread
项目概览
码肥人壮
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f07bb064
编写于
4月 05, 2014
作者:
B
bernard
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[BSP] Remove the components initialization management.
上级
625c8f21
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
50 addition
and
50 deletion
+50
-50
bsp/lpc176x/applications/application.c
bsp/lpc176x/applications/application.c
+31
-1
bsp/lpc176x/applications/startup.c
bsp/lpc176x/applications/startup.c
+3
-18
bsp/lpc176x/project.uvopt
bsp/lpc176x/project.uvopt
+14
-29
bsp/lpc176x/project.uvproj
bsp/lpc176x/project.uvproj
+2
-2
未找到文件。
bsp/lpc176x/applications/application.c
浏览文件 @
f07bb064
...
...
@@ -21,12 +21,20 @@
#ifdef RT_USING_LWIP
#include <emac.h>
#include <netif/ethernetif.h>
extern
int
lwip_system_init
(
void
);
#endif
#ifdef RT_USING_DFS
#include <dfs_fs.h>
#include <sd.h>
#endif
#ifdef RT_USING_FINSH
#include <shell.h>
#include <finsh.h>
#endif
/* thread phase init */
void
rt_init_thread_entry
(
void
*
parameter
)
{
...
...
@@ -36,18 +44,40 @@ void rt_init_thread_entry(void *parameter)
#ifdef RT_USING_LWIP
/* register Ethernet interface device */
lpc17xx_emac_hw_init
();
/* initialize lwip stack */
/* register ethernetif device */
eth_system_device_init
();
/* initialize lwip system */
lwip_system_init
();
rt_kprintf
(
"TCP/IP initialized!
\n
"
);
#endif
/* Filesystem Initialization */
#ifdef RT_USING_DFS
rt_hw_sdcard_init
();
/* initialize the device file system */
dfs_init
();
#ifdef RT_USING_DFS_ELMFAT
/* initialize the elm chan FatFS file system*/
elm_init
();
#endif
/* mount sd card fat partition 1 as root directory */
if
(
dfs_mount
(
"sd0"
,
"/"
,
"elm"
,
0
,
0
)
==
0
)
rt_kprintf
(
"File System initialized!
\n
"
);
else
rt_kprintf
(
"File System init failed!
\n
"
);
#endif
#ifdef RT_USING_FINSH
/* initialize finsh */
finsh_system_init
();
finsh_set_device
(
RT_CONSOLE_DEVICE_NAME
);
#endif
}
int
rt_application_init
()
...
...
bsp/lpc176x/applications/startup.c
浏览文件 @
f07bb064
...
...
@@ -16,20 +16,13 @@
#include <rthw.h>
#include <rtthread.h>
#include "LPC17xx.h"
#include "board.h"
#ifdef RT_USING_DFS
#include "sd.h"
#endif
/**
* @addtogroup LPC17
* @addtogroup LPC17
6x
*/
/*@{*/
extern
int
rt_application_init
(
void
);
#include <board.h>
extern
int
rt_application_init
(
void
);
#ifdef __CC_ARM
extern
int
Image
$$
RW_IRAM1
$$
ZI
$$
Limit
;
...
...
@@ -84,14 +77,6 @@ void rtthread_startup(void)
/* initialize scheduler system */
rt_system_scheduler_init
();
#ifdef RT_USING_DEVICE
#ifdef RT_USING_DFS
rt_hw_sdcard_init
();
#endif
/* initialize all device */
rt_device_init_all
();
#endif
/* initialize application */
rt_application_init
();
...
...
bsp/lpc176x/project.uvopt
浏览文件 @
f07bb064
...
...
@@ -43,7 +43,7 @@
<PageWidth>
79
</PageWidth>
<PageLength>
66
</PageLength>
<TabStop>
8
</TabStop>
<ListingPath>
.\
obj
\
</ListingPath>
<ListingPath>
.\
build
\
</ListingPath>
</OPTLEX>
<ListingPage>
<CreateCListing>
1
</CreateCListing>
...
...
@@ -71,7 +71,7 @@
<LExpSel>
0
</LExpSel>
</OPTXL>
<OPTFL>
<tvExp>
1
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<IsCurrentTarget>
1
</IsCurrentTarget>
</OPTFL>
...
...
@@ -120,21 +120,6 @@
<pMon>
Segger\JL2CM3.dll
</pMon>
</DebugOpt>
<TargetDriverDllRegistry>
<SetRegEntry>
<Number>
0
</Number>
<Key>
DLGTARM
</Key>
<Name>
(1010=-1,-1,-1,-1,0)(1007=-1,-1,-1,-1,0)(1008=-1,-1,-1,-1,0)(1009=-1,-1,-1,-1,0)(1012=-1,-1,-1,-1,0)(350=-1,-1,-1,-1,0)(250=-1,-1,-1,-1,0)(270=-1,-1,-1,-1,0)(313=-1,-1,-1,-1,0)(291=-1,-1,-1,-1,0)(302=-1,-1,-1,-1,0)(110=-1,-1,-1,-1,0)(113=-1,-1,-1,-1,0)(320=-1,-1,-1,-1,0)(210=-1,-1,-1,-1,0)(330=-1,-1,-1,-1,0)(332=-1,-1,-1,-1,0)(333=-1,-1,-1,-1,0)(334=-1,-1,-1,-1,0)(335=-1,-1,-1,-1,0)(336=-1,-1,-1,-1,0)(345=-1,-1,-1,-1,0)(346=-1,-1,-1,-1,0)(381=-1,-1,-1,-1,0)(382=-1,-1,-1,-1,0)(383=-1,-1,-1,-1,0)(384=-1,-1,-1,-1,0)(197=-1,-1,-1,-1,0)(198=-1,-1,-1,-1,0)(191=-1,-1,-1,-1,0)(192=-1,-1,-1,-1,0)(180=-1,-1,-1,-1,0)(261=-1,-1,-1,-1,0)(262=-1,-1,-1,-1,0)(231=-1,-1,-1,-1,0)(232=-1,-1,-1,-1,0)(233=-1,-1,-1,-1,0)(121=-1,-1,-1,-1,0)(122=-1,-1,-1,-1,0)(123=-1,-1,-1,-1,0)(124=-1,-1,-1,-1,0)(170=-1,-1,-1,-1,0)(142=-1,-1,-1,-1,0)(150=-1,-1,-1,-1,0)(400=-1,-1,-1,-1,0)(370=-1,-1,-1,-1,0)(160=-1,-1,-1,-1,0)(280=-1,-1,-1,-1,0)(240=-1,-1,-1,-1,0)
</Name>
</SetRegEntry>
<SetRegEntry>
<Number>
0
</Number>
<Key>
ARMDBGFLAGS
</Key>
<Name></Name>
</SetRegEntry>
<SetRegEntry>
<Number>
0
</Number>
<Key>
DLGUARM
</Key>
<Name></Name>
</SetRegEntry>
<SetRegEntry>
<Number>
0
</Number>
<Key>
JL2CM3
</Key>
...
...
@@ -158,7 +143,7 @@
<aSer1>
0
</aSer1>
<aSer2>
0
</aSer2>
<aPa>
0
</aPa>
<viewmode>
1
</viewmode>
<viewmode>
0
</viewmode>
<vrSel>
0
</vrSel>
<aSym>
0
</aSym>
<aTbox>
0
</aTbox>
...
...
@@ -211,8 +196,8 @@
<Focus>
0
</Focus>
<ColumnNumber>
0
</ColumnNumber>
<tvExpOptDlg>
0
</tvExpOptDlg>
<TopLine>
117
</TopLine>
<CurrentLine>
123
</CurrentLine>
<TopLine>
0
</TopLine>
<CurrentLine>
0
</CurrentLine>
<bDave2>
0
</bDave2>
<PathWithFileName>
CMSIS\CM3\DeviceSupport\NXP\LPC17xx\startup\arm\startup_LPC17xx.s
</PathWithFileName>
<FilenameWithoutPath>
startup_LPC17xx.s
</FilenameWithoutPath>
...
...
@@ -223,7 +208,7 @@
<Group>
<GroupName>
Applications
</GroupName>
<tvExp>
1
</tvExp>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<cbSel>
0
</cbSel>
<RteFlg>
0
</RteFlg>
...
...
@@ -233,10 +218,10 @@
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<Focus>
0
</Focus>
<ColumnNumber>
0
</ColumnNumber>
<ColumnNumber>
33
</ColumnNumber>
<tvExpOptDlg>
0
</tvExpOptDlg>
<TopLine>
10
</TopLine>
<CurrentLine>
64
</CurrentLine>
<TopLine>
46
</TopLine>
<CurrentLine>
57
</CurrentLine>
<bDave2>
0
</bDave2>
<PathWithFileName>
applications\application.c
</PathWithFileName>
<FilenameWithoutPath>
application.c
</FilenameWithoutPath>
...
...
@@ -265,10 +250,10 @@
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<Focus>
0
</Focus>
<ColumnNumber>
0
</ColumnNumber>
<ColumnNumber>
18
</ColumnNumber>
<tvExpOptDlg>
0
</tvExpOptDlg>
<TopLine>
91
</TopLine>
<CurrentLine>
115
</CurrentLine>
<TopLine>
19
</TopLine>
<CurrentLine>
24
</CurrentLine>
<bDave2>
0
</bDave2>
<PathWithFileName>
applications\startup.c
</PathWithFileName>
<FilenameWithoutPath>
startup.c
</FilenameWithoutPath>
...
...
@@ -411,8 +396,8 @@
<Focus>
0
</Focus>
<ColumnNumber>
0
</ColumnNumber>
<tvExpOptDlg>
0
</tvExpOptDlg>
<TopLine>
63
</TopLine>
<CurrentLine>
69
</CurrentLine>
<TopLine>
0
</TopLine>
<CurrentLine>
0
</CurrentLine>
<bDave2>
0
</bDave2>
<PathWithFileName>
..\..\src\idle.c
</PathWithFileName>
<FilenameWithoutPath>
idle.c
</FilenameWithoutPath>
...
...
bsp/lpc176x/project.uvproj
浏览文件 @
f07bb064
...
...
@@ -44,14 +44,14 @@
<NotGenerated>
0
</NotGenerated>
<InvalidFlash>
1
</InvalidFlash>
</TargetStatus>
<OutputDirectory>
.\
obj
\
</OutputDirectory>
<OutputDirectory>
.\
build
\
</OutputDirectory>
<OutputName>
rtthread-lpc
</OutputName>
<CreateExecutable>
1
</CreateExecutable>
<CreateLib>
0
</CreateLib>
<CreateHexFile>
0
</CreateHexFile>
<DebugInformation>
1
</DebugInformation>
<BrowseInformation>
1
</BrowseInformation>
<ListingPath>
.\
obj
\
</ListingPath>
<ListingPath>
.\
build
\
</ListingPath>
<HexFormatSelection>
1
</HexFormatSelection>
<Merge32K>
0
</Merge32K>
<CreateBatchFile>
0
</CreateBatchFile>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录