Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
luozhenger
rt-thread
提交
4d40978a
R
rt-thread
项目概览
luozhenger
/
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4d40978a
编写于
5月 29, 2013
作者:
G
Grissiom
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rm48x50: add finsh support
上级
eda09ab0
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
34 addition
and
17 deletion
+34
-17
bsp/rm48x50/HALCoGen/source/sys_link.cmd
bsp/rm48x50/HALCoGen/source/sys_link.cmd
+22
-4
bsp/rm48x50/application/application.c
bsp/rm48x50/application/application.c
+3
-6
bsp/rm48x50/application/startup.c
bsp/rm48x50/application/startup.c
+7
-5
bsp/rm48x50/rtconfig.h
bsp/rm48x50/rtconfig.h
+2
-2
未找到文件。
bsp/rm48x50/HALCoGen/source/sys_link.cmd
浏览文件 @
4d40978a
...
...
@@ -12,6 +12,8 @@
/
*
Linker
Settings
*
/
--retain
=
"*(.intvecs)"
--retain
=
"*(FSymTab)"
--retain
=
"*(VSymTab)"
/
*
USER
CODE
BEGIN
(
8
)
*
/
/
*
USER
CODE
END
*
/
...
...
@@ -45,12 +47,28 @@ SECTIONS
.const :
{}
>
FLASH0
|
FLASH1
.cinit :
{}
>
FLASH0
|
FLASH1
.pinit :
{}
>
FLASH0
|
FLASH1
.bss :
{}
>
RAM
.data :
{}
>
RAM
.sysmem :
{}
>
RAM
GROUP
{
.bss :
{}
.data :
{}
.sysmem :
{}
._dummy :
{
system_data_end
=
.
;}
}
>
RAM
/
*
USER
CODE
BEGIN
(
11
)
*
/
/
*
place
this
section
in
the
last
section
in
RAM
.
The
brain
damaged
linker
*
could
only
create
symbols
in
sections
.
*
/
._FSymTab :
{
__fsymtab_start
=
.
;
*(
FSymTab
)
__fsymtab_end
=
.
;
}
>
FLASH0
|
FLASH1
._VSymTab :
{
__vsymtab_start
=
.
;
*(
VSymTab
)
__vsymtab_end
=
.
;
}
>
FLASH0
|
FLASH1
/
*
USER
CODE
END
*
/
}
...
...
bsp/rm48x50/application/application.c
浏览文件 @
4d40978a
...
...
@@ -34,11 +34,8 @@ static void user_thread_entry(void *p)
for
(
i
=
0
;
;
i
++
)
{
rt_kprintf
(
"loop %d
\n
"
,
i
);
gioSetBit
(
hetPORT1
,
17
,
gioGetBit
(
hetPORT1
,
17
)
^
1
);
/*sciSendByte(scilinREG, 'b');*/
rt_thread_delay
(
100
);
/*sciSendByte(scilinREG, 'a');*/
}
}
...
...
@@ -53,15 +50,15 @@ void vRegTestTask2(void*);
int
rt_application_init
()
{
rt_thread_init
(
&
user_thread
,
"user1"
,
user_thread_entry
,
RT_NULL
,
user_thread_stack
,
sizeof
(
user_thread_stack
),
8
,
20
);
user_thread_stack
,
sizeof
(
user_thread_stack
),
21
,
20
);
rt_thread_startup
(
&
user_thread
);
rt_thread_init
(
&
test_thread
,
"test1"
,
vRegTestTask1
,
RT_NULL
,
test_thread_stack
,
sizeof
(
test_thread_stack
),
8
,
20
);
test_thread_stack
,
sizeof
(
test_thread_stack
),
21
,
20
);
rt_thread_startup
(
&
test_thread
);
rt_thread_init
(
&
test_thread2
,
"test2"
,
vRegTestTask2
,
RT_NULL
,
test_thread_stack2
,
sizeof
(
test_thread_stack2
),
9
,
20
);
test_thread_stack2
,
sizeof
(
test_thread_stack2
),
22
,
20
);
rt_thread_startup
(
&
test_thread2
);
return
0
;
...
...
bsp/rm48x50/application/startup.c
浏览文件 @
4d40978a
...
...
@@ -38,8 +38,8 @@ extern rt_err_t rt_hw_serial_init(void);
extern
int
Image
$$
RW_IRAM1
$$
ZI
$$
Limit
;
#elif defined(__GNUC__)
extern
int
__bss_end
;
#el
se
extern
unsigned
char
*
__TI_DATA_Limit
;
#el
if defined(__TI_COMPILER_VERSION__)
extern
unsigned
char
*
const
system_data_end
;
#endif
#define MEMEND 0x08040000
...
...
@@ -70,9 +70,11 @@ void rtthread_startup(void)
#ifdef __CC_ARM
rt_system_heap_init
((
void
*
)
&
Image
$$
RW_IRAM1
$$
ZI
$$
Limit
,
(
void
*
)
MEMEND
);
#elif defined(__GNUC__)
rt_system_heap_init
((
void
*
)
&
__bss_end
,
(
void
*
)
MEMEND
);
rt_system_heap_init
((
void
*
)
&
__bss_end
,
(
void
*
)
MEMEND
);
#elif defined(__TI_COMPILER_VERSION__)
rt_system_heap_init
((
void
*
)
&
system_data_end
,
(
void
*
)
MEMEND
);
#else
rt_system_heap_init
((
void
*
)
&
__TI_DATA_Limit
,
(
void
*
)
MEMEND
);
#error Unkown compiler
#endif
#endif
...
...
@@ -85,7 +87,7 @@ void rtthread_startup(void)
#ifdef RT_USING_FINSH
/* init finsh */
finsh_system_init
();
finsh_set_device
(
"
uart1
"
);
finsh_set_device
(
"
sci2
"
);
#endif
/* init soft timer thread */
...
...
bsp/rm48x50/rtconfig.h
浏览文件 @
4d40978a
...
...
@@ -57,7 +57,7 @@
// <bool name="RT_USING_MEMHEAP" description="Using Memory Heap Object in the system" default="true" />
#define RT_USING_MEMHEAP
// <bool name="RT_USING_HEAP" description="Using Dynamic Heap Management in the system" default="true" />
//
#define RT_USING_HEAP
#define RT_USING_HEAP
// <bool name="RT_USING_SMALL_MEM" description="Optimizing for small memory" default="false" />
#define RT_USING_SMALL_MEM
// <bool name="RT_USING_SLAB" description="Using SLAB memory management for large memory" default="false" />
...
...
@@ -85,7 +85,7 @@
// <bool name="RT_USING_COMPONENTS_INIT" description="Using RT-Thread components initialization" default="true" />
#define RT_USING_COMPONENTS_INIT
// <section name="RT_USING_FINSH" description="Using finsh as shell, which is a C-Express shell" default="true" >
//
#define RT_USING_FINSH
#define RT_USING_FINSH
// <bool name="FINSH_USING_SYMTAB" description="Using symbol table in finsh shell" default="true" />
#define FINSH_USING_SYMTAB
// <bool name="FINSH_USING_DESCRIPTION" description="Keeping description in symbol table" default="true" />
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录