Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Keyboard Man_俊
rt-thread
提交
c37fcb60
R
rt-thread
项目概览
Keyboard Man_俊
/
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,发现更多精彩内容 >>
提交
c37fcb60
编写于
12月 15, 2021
作者:
H
Huang bo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改bsp tms320c6678工程,并测试
上级
4a779f51
变更
13
展开全部
隐藏空白更改
内联
并排
Showing
13 changed file
with
5565 addition
and
140 deletion
+5565
-140
bsp/ti-tms320c6678/.cproject
bsp/ti-tms320c6678/.cproject
+70
-72
bsp/ti-tms320c6678/.project
bsp/ti-tms320c6678/.project
+33
-33
bsp/ti-tms320c6678/.settings/org.eclipse.core.resources.prefs
...ti-tms320c6678/.settings/org.eclipse.core.resources.prefs
+0
-10
bsp/ti-tms320c6678/applications/main.c
bsp/ti-tms320c6678/applications/main.c
+0
-1
bsp/ti-tms320c6678/common/KeyStone_common.c
bsp/ti-tms320c6678/common/KeyStone_common.c
+4355
-0
bsp/ti-tms320c6678/common/KeyStone_common.h
bsp/ti-tms320c6678/common/KeyStone_common.h
+1090
-0
bsp/ti-tms320c6678/readme.txt
bsp/ti-tms320c6678/readme.txt
+4
-3
libcpu/ti-dsp/c6x/context.asm
libcpu/ti-dsp/c6x/context.asm
+1
-8
libcpu/ti-dsp/c6x/contextinc.asm
libcpu/ti-dsp/c6x/contextinc.asm
+5
-0
libcpu/ti-dsp/c6x/interrupt.c
libcpu/ti-dsp/c6x/interrupt.c
+1
-1
libcpu/ti-dsp/c6x/intexc.asm
libcpu/ti-dsp/c6x/intexc.asm
+0
-8
libcpu/ti-dsp/c6x/stack.c
libcpu/ti-dsp/c6x/stack.c
+2
-2
libcpu/ti-dsp/c6x/trap.h
libcpu/ti-dsp/c6x/trap.h
+4
-2
未找到文件。
bsp/ti-tms320c6678/.cproject
浏览文件 @
c37fcb60
此差异已折叠。
点击以展开。
bsp/ti-tms320c6678/.project
浏览文件 @
c37fcb60
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>
ti-c6678
</name>
<name>
ti-
tms320
c6678
</name>
<comment></comment>
<projects>
</projects>
...
...
@@ -25,130 +25,130 @@
<nature>
org.eclipse.cdt.managedbuilder.core.ScannerConfigNature
</nature>
</natures>
<linkedResources>
<link>
<name>
SConscript
</name>
<type>
1
</type>
<locationURI>
PARENT-2-PROJECT_LOC/src/SConscript
</locationURI>
</link>
<link>
<name>
clock.c
</name>
<type>
1
</type>
<locationURI>
PARENT-2-PROJECT_LOC/src/clock.c
</locationURI>
<locationURI>
PARENT-2-PROJECT_LOC/
git-source/rt-thread/
src/clock.c
</locationURI>
</link>
<link>
<name>
components.c
</name>
<type>
1
</type>
<locationURI>
PARENT-2-PROJECT_LOC/src/components.c
</locationURI>
<locationURI>
PARENT-2-PROJECT_LOC/
git-source/rt-thread/
src/components.c
</locationURI>
</link>
<link>
<name>
context.asm
</name>
<type>
1
</type>
<locationURI>
PARENT-2-PROJECT_LOC/libcpu/ti-dsp/c6x/context.asm
</locationURI>
<locationURI>
PARENT-2-PROJECT_LOC/git-source/rt-thread/libcpu/ti-dsp/c6x/context.asm
</locationURI>
</link>
<link>
<name>
contextinc.asm
</name>
<type>
1
</type>
<locationURI>
PARENT-2-PROJECT_LOC/git-source/rt-thread/libcpu/ti-dsp/c6x/contextinc.asm
</locationURI>
</link>
<link>
<name>
cpu.c
</name>
<type>
1
</type>
<locationURI>
PARENT-2-PROJECT_LOC/src/cpu.c
</locationURI>
<locationURI>
PARENT-2-PROJECT_LOC/
git-source/rt-thread/
src/cpu.c
</locationURI>
</link>
<link>
<name>
cpuport.c
</name>
<type>
1
</type>
<locationURI>
PARENT-2-PROJECT_LOC/libcpu/ti-dsp/c6x/cpuport.c
</locationURI>
<locationURI>
PARENT-2-PROJECT_LOC/
git-source/rt-thread/
libcpu/ti-dsp/c6x/cpuport.c
</locationURI>
</link>
<link>
<name>
device.c
</name>
<type>
1
</type>
<locationURI>
PARENT-2-PROJECT_LOC/src/device.c
</locationURI>
<locationURI>
PARENT-2-PROJECT_LOC/
git-source/rt-thread/
src/device.c
</locationURI>
</link>
<link>
<name>
idle.c
</name>
<type>
1
</type>
<locationURI>
PARENT-2-PROJECT_LOC/src/idle.c
</locationURI>
<locationURI>
PARENT-2-PROJECT_LOC/
git-source/rt-thread/
src/idle.c
</locationURI>
</link>
<link>
<name>
in
ct.asm
</name>
<name>
in
terrupt.c
</name>
<type>
1
</type>
<locationURI>
PARENT-2-PROJECT_LOC/
libcpu/ti-dsp/c6x/inct.asm
</locationURI>
<locationURI>
PARENT-2-PROJECT_LOC/
git-source/rt-thread/libcpu/ti-dsp/c6x/interrupt.c
</locationURI>
</link>
<link>
<name>
inte
rrupt.c
</name>
<name>
inte
xc.asm
</name>
<type>
1
</type>
<locationURI>
PARENT-2-PROJECT_LOC/
libcpu/ti-dsp/c6x/interrupt.c
</locationURI>
<locationURI>
PARENT-2-PROJECT_LOC/
git-source/rt-thread/libcpu/ti-dsp/c6x/intexc.asm
</locationURI>
</link>
<link>
<name>
ipc.c
</name>
<type>
1
</type>
<locationURI>
PARENT-2-PROJECT_LOC/src/ipc.c
</locationURI>
<locationURI>
PARENT-2-PROJECT_LOC/
git-source/rt-thread/
src/ipc.c
</locationURI>
</link>
<link>
<name>
irq.c
</name>
<type>
1
</type>
<locationURI>
PARENT-2-PROJECT_LOC/src/irq.c
</locationURI>
<locationURI>
PARENT-2-PROJECT_LOC/
git-source/rt-thread/
src/irq.c
</locationURI>
</link>
<link>
<name>
kservice.c
</name>
<type>
1
</type>
<locationURI>
PARENT-2-PROJECT_LOC/src/kservice.c
</locationURI>
<locationURI>
PARENT-2-PROJECT_LOC/
git-source/rt-thread/
src/kservice.c
</locationURI>
</link>
<link>
<name>
mem.c
</name>
<type>
1
</type>
<locationURI>
PARENT-2-PROJECT_LOC/src/mem.c
</locationURI>
<locationURI>
PARENT-2-PROJECT_LOC/
git-source/rt-thread/
src/mem.c
</locationURI>
</link>
<link>
<name>
memheap.c
</name>
<type>
1
</type>
<locationURI>
PARENT-2-PROJECT_LOC/src/memheap.c
</locationURI>
<locationURI>
PARENT-2-PROJECT_LOC/
git-source/rt-thread/
src/memheap.c
</locationURI>
</link>
<link>
<name>
mempool.c
</name>
<type>
1
</type>
<locationURI>
PARENT-2-PROJECT_LOC/src/mempool.c
</locationURI>
<locationURI>
PARENT-2-PROJECT_LOC/
git-source/rt-thread/
src/mempool.c
</locationURI>
</link>
<link>
<name>
object.c
</name>
<type>
1
</type>
<locationURI>
PARENT-2-PROJECT_LOC/src/object.c
</locationURI>
<locationURI>
PARENT-2-PROJECT_LOC/
git-source/rt-thread/
src/object.c
</locationURI>
</link>
<link>
<name>
scheduler.c
</name>
<type>
1
</type>
<locationURI>
PARENT-2-PROJECT_LOC/src/scheduler.c
</locationURI>
<locationURI>
PARENT-2-PROJECT_LOC/
git-source/rt-thread/
src/scheduler.c
</locationURI>
</link>
<link>
<name>
signal.c
</name>
<type>
1
</type>
<locationURI>
PARENT-2-PROJECT_LOC/src/signal.c
</locationURI>
<locationURI>
PARENT-2-PROJECT_LOC/
git-source/rt-thread/
src/signal.c
</locationURI>
</link>
<link>
<name>
slab.c
</name>
<type>
1
</type>
<locationURI>
PARENT-2-PROJECT_LOC/src/slab.c
</locationURI>
<locationURI>
PARENT-2-PROJECT_LOC/
git-source/rt-thread/
src/slab.c
</locationURI>
</link>
<link>
<name>
stack.
asm
</name>
<name>
stack.
c
</name>
<type>
1
</type>
<locationURI>
PARENT-2-PROJECT_LOC/
libcpu/ti-dsp/c6x/stack.asm
</locationURI>
<locationURI>
PARENT-2-PROJECT_LOC/
git-source/rt-thread/libcpu/ti-dsp/c6x/stack.c
</locationURI>
</link>
<link>
<name>
thread.c
</name>
<type>
1
</type>
<locationURI>
PARENT-2-PROJECT_LOC/src/thread.c
</locationURI>
<locationURI>
PARENT-2-PROJECT_LOC/
git-source/rt-thread/
src/thread.c
</locationURI>
</link>
<link>
<name>
timer.c
</name>
<type>
1
</type>
<locationURI>
PARENT-2-PROJECT_LOC/src/timer.c
</locationURI>
<locationURI>
PARENT-2-PROJECT_LOC/
git-source/rt-thread/
src/timer.c
</locationURI>
</link>
<link>
<name>
trap.c
</name>
<type>
1
</type>
<locationURI>
PARENT-2-PROJECT_LOC/libcpu/ti-dsp/c6x/trap.c
</locationURI>
<locationURI>
PARENT-2-PROJECT_LOC/
git-source/rt-thread/
libcpu/ti-dsp/c6x/trap.c
</locationURI>
</link>
<link>
<name>
vector.asm
</name>
<type>
1
</type>
<locationURI>
PARENT-2-PROJECT_LOC/libcpu/ti-dsp/c6x/vector.asm
</locationURI>
<locationURI>
PARENT-2-PROJECT_LOC/
git-source/rt-thread/
libcpu/ti-dsp/c6x/vector.asm
</locationURI>
</link>
</linkedResources>
</projectDescription>
bsp/ti-tms320c6678/.settings/org.eclipse.core.resources.prefs
已删除
100644 → 0
浏览文件 @
4a779f51
eclipse.preferences.version=1
encoding//Debug/applications/subdir_rules.mk=UTF-8
encoding//Debug/applications/subdir_vars.mk=UTF-8
encoding//Debug/driver/subdir_rules.mk=UTF-8
encoding//Debug/driver/subdir_vars.mk=UTF-8
encoding//Debug/makefile=UTF-8
encoding//Debug/objects.mk=UTF-8
encoding//Debug/sources.mk=UTF-8
encoding//Debug/subdir_rules.mk=UTF-8
encoding//Debug/subdir_vars.mk=UTF-8
bsp/ti-tms320c6678/applications/main.c
浏览文件 @
c37fcb60
...
...
@@ -16,7 +16,6 @@
void
rt_init_thread_entry
(
void
*
parameter
)
{
rt_kprintf
(
"hello rt-thread
\n
"
);
return
0
;
}
int
rt_application_init
(
void
)
...
...
bsp/ti-tms320c6678/common/KeyStone_common.c
0 → 100644
浏览文件 @
c37fcb60
此差异已折叠。
点击以展开。
bsp/ti-tms320c6678/common/KeyStone_common.h
0 → 100644
浏览文件 @
c37fcb60
此差异已折叠。
点击以展开。
bsp/ti-tms320c6678/readme.txt
浏览文件 @
c37fcb60
本工程使用TI公司编译器CCS5.5进行编译,工程中使用到了TI官方提供的K1_STK_v1.1,
如有需要的请到TI官方论坛自行下载,并将K1_STK_v1.1中的KeyStone_common.c和KeyStone_common.h文件
放置到本工程的driver目录下。
\ No newline at end of file
本工程使用TI公司编译器CCS5.5进行编译,需要安装TI提供的CSL库pdk_C6678_1_1_2_6,
我的安装路径为C盘。
"C:\ti\pdk_C6678_1_1_2_6\packages"
"C:\ti\pdk_C6678_1_1_2_6\packages\ti\csl"
\ No newline at end of file
libcpu/ti-dsp/c6x/context.asm
浏览文件 @
c37fcb60
...
...
@@ -18,11 +18,6 @@
;-----------------------------------------------------------
DP
.set
B14
SP
.set
B15
;-----------------------------------------------------------
; extern variable
;-----------------------------------------------------------
.ref
rt_system_stack_top
;
;-----------------------------------------------------------
;
...
...
@@ -165,8 +160,7 @@ rt_hw_context_switch_to:
LDDW
.D2T2
*++
SP
[
1
],
B13
:
B12
; get PC (B13) and CSR (B12)
NOP
2
MV
B8
,
B0
[
B0
]
B
_rt_thread_interrupt_stack
NOP
5
[
B0
]
BNOP
_rt_thread_interrupt_stack
,
5
;
; this maybe do better
;
...
...
@@ -275,7 +269,6 @@ rt_interrupt_context_restore:
NOP
4
CMPEQ
1
,
A1
,
A2
[
A2
]
BNOP
rt_preempt_context_restore
,
5
NOP
5
LDDW
.D2T2
*++
SP
[
1
],
B9
:
B8
; get TSR (B9)
LDDW
.D2T2
*++
SP
[
1
],
B11
:
B10
; get RILC (B11) and ILC (B10)
LDDW
.D2T2
*++
SP
[
1
],
B13
:
B12
; get PC (B13) and CSR (B12)
...
...
libcpu/ti-dsp/c6x/contextinc.asm
浏览文件 @
c37fcb60
...
...
@@ -8,6 +8,11 @@
; 2021-11-16 Dystopia the first version
;
;-----------------------------------------------------------
; extern variable
;-----------------------------------------------------------
.ref
rt_system_stack_top
;-----------------------------------------------------------
; macro definition
;-----------------------------------------------------------
...
...
libcpu/ti-dsp/c6x/interrupt.c
浏览文件 @
c37fcb60
...
...
@@ -26,7 +26,7 @@ rt_uint32_t rt_thread_switch_interrupt_flag;
void
rt_hw_interrupt_init
(
void
)
{
// initial system trap
rt_trap_init
();
//
rt_trap_init();
/* init exceptions table */
rt_memset
(
isr_table
,
0x00
,
sizeof
(
isr_table
));
...
...
libcpu/ti-dsp/c6x/intexc.asm
浏览文件 @
c37fcb60
...
...
@@ -65,14 +65,6 @@ SP .set B15
;-----------------------------------------------------------
;
;-----------------------------------------------------------
; extern variable
;-----------------------------------------------------------
.ref
rt_system_stack_top
;
;-----------------------------------------------------------
;
;-----------------------------------------------------------
; interrupt macro definition
;-----------------------------------------------------------
...
...
libcpu/ti-dsp/c6x/stack.c
浏览文件 @
c37fcb60
...
...
@@ -31,8 +31,8 @@ extern rt_uint32_t rt_hw_get_current_dp(void);
rt_uint8_t
*
rt_hw_stack_init
(
void
*
tentry
,
void
*
parameter
,
rt_uint8_t
*
stack_addr
,
void
*
texit
)
{
rt_hw_thread_stack_register
*
thread_context
;
rt_uint32_t
stk
;
rt_hw_thread_stack_register
*
thread_context
=
RT_NULL
;
rt_uint32_t
stk
=
0
;
stack_addr
+=
sizeof
(
rt_uint32_t
);
stack_addr
=
(
rt_uint8_t
*
)
RT_ALIGN_DOWN
((
rt_uint32_t
)
stack_addr
,
8
);
...
...
libcpu/ti-dsp/c6x/trap.h
浏览文件 @
c37fcb60
...
...
@@ -90,8 +90,9 @@ extern int __ffs(int val);
static
inline
int
fls
(
int
x
)
{
if
(
!
x
)
{
return
0
;
}
return
32
-
__fls
(
x
);
}
...
...
@@ -107,8 +108,9 @@ static inline int fls(int x)
static
inline
int
ffs
(
int
x
)
{
if
(
!
x
)
{
return
0
;
}
return
__ffs
(
x
)
+
1
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录