Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Mr_Pangza
rt-thread
提交
7577b1a3
R
rt-thread
项目概览
Mr_Pangza
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
2
Star
1
Fork
1
代码
文件
提交
分支
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,发现更多精彩内容 >>
提交
7577b1a3
编写于
5月 16, 2018
作者:
lymzzyh
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'upstream/master'
上级
e46e9e6f
d4af0828
变更
6
展开全部
隐藏空白更改
内联
并排
Showing
6 changed file
with
4361 addition
and
4035 deletion
+4361
-4035
bsp/asm9260t/project.ewp
bsp/asm9260t/project.ewp
+2268
-2129
bsp/asm9260t/rtconfig.py
bsp/asm9260t/rtconfig.py
+1
-1
bsp/asm9260t/template.ewp
bsp/asm9260t/template.ewp
+2020
-1885
bsp/tm4c129x/libraries/SConscript
bsp/tm4c129x/libraries/SConscript
+7
-4
bsp/tm4c129x/rtconfig.py
bsp/tm4c129x/rtconfig.py
+61
-15
components/libc/compilers/dlib/sys/time.h
components/libc/compilers/dlib/sys/time.h
+4
-1
未找到文件。
bsp/asm9260t/project.ewp
浏览文件 @
7577b1a3
此差异已折叠。
点击以展开。
bsp/asm9260t/rtconfig.py
浏览文件 @
7577b1a3
...
...
@@ -17,7 +17,7 @@ elif CROSS_TOOL == 'keil':
EXEC_PATH
=
'C:/Keil_v5'
elif
CROSS_TOOL
==
'iar'
:
PLATFORM
=
'iar'
EXEC_PATH
=
'C:/Program Files (x86)/IAR Systems/Embedded Workbench
7
.0'
EXEC_PATH
=
'C:/Program Files (x86)/IAR Systems/Embedded Workbench
8
.0'
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
EXEC_PATH
=
os
.
getenv
(
'RTT_EXEC_PATH'
)
...
...
bsp/asm9260t/template.ewp
浏览文件 @
7577b1a3
此差异已折叠。
点击以展开。
bsp/tm4c129x/libraries/SConscript
浏览文件 @
7577b1a3
...
...
@@ -6,18 +6,21 @@ from building import *
cwd
=
GetCurrentDir
()
src
=
Glob
(
'driverlib/*.c'
)
SrcRemove
(
src
,
'onewire.c'
)
CCFLAGS
=
''
# add for startup script
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
src
+=
[
'startup/startup_gcc.c'
]
src
+=
[
'startup/startup_gcc.c'
]
elif
rtconfig
.
CROSS_TOOL
==
'keil'
:
src
+=
[
'startup/startup_rvmdk.S'
]
src
+=
[
'startup/startup_rvmdk.S'
]
elif
rtconfig
.
CROSS_TOOL
==
'iar'
:
src
+=
[
'startup/startup_ewarm.c'
]
src
+=
[
'startup/startup_ewarm.c'
]
CCFLAGS
+=
' --diag_suppress=pe177'
CPPPATH
=
[
cwd
,
cwd
+
'/inc'
,
cwd
+
'/driverlib'
]
CPPDEFINES
=
[
rtconfig
.
PART_TYPE
]
group
=
DefineGroup
(
'Libraries'
,
src
,
depend
=
[
''
],
CPPPATH
=
CPPPATH
,
CPPDEFINES
=
CPPDEFINES
)
group
=
DefineGroup
(
'Libraries'
,
src
,
depend
=
[
''
],
CPPPATH
=
CPPPATH
,
CPPDEFINES
=
CPPDEFINES
,
CCFLAGS
=
CCFLAGS
)
Return
(
'group'
)
bsp/tm4c129x/rtconfig.py
浏览文件 @
7577b1a3
# BSP Note: For TI EK-TM4C1294XL Tiva C Series Connected LancuhPad
(REV D)
# BSP Note: For TI EK-TM4C1294XL Tiva C Series Connected LancuhPad
(REV D)
import
os
...
...
@@ -8,26 +8,24 @@ CPU='cortex-m4'
CROSS_TOOL
=
'keil'
if
os
.
getenv
(
'RTT_CC'
):
CROSS_TOOL
=
os
.
getenv
(
'RTT_CC'
)
CROSS_TOOL
=
os
.
getenv
(
'RTT_CC'
)
#device options
PART_TYPE
=
'PART_TM4C129XNCZAD'
# cross_tool provides the cross compiler
# EXEC_PATH is the compiler execute path, for example, CodeSourcery, Keil MDK, IAR
if
CROSS_TOOL
==
'gcc'
:
PLATFORM
=
'gcc'
EXEC_PATH
=
r
'D:\ArdaArmTools\Sourcery_Lite\bin'
PLATFORM
=
'gcc'
EXEC_PATH
=
r
'D:\ArdaArmTools\Sourcery_Lite\bin'
elif
CROSS_TOOL
==
'keil'
:
PLATFORM
=
'armcc'
EXEC_PATH
=
r
'D
:\Keil_v5'
PLATFORM
=
'armcc'
EXEC_PATH
=
r
'C
:\Keil_v5'
elif
CROSS_TOOL
==
'iar'
:
print
(
'================ERROR============================'
)
print
(
'Not support iar yet!'
)
print
(
'================================================='
)
exit
(
0
)
PLATFORM
=
'iar'
EXEC_PATH
=
'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.0'
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
EXEC_PATH
=
os
.
getenv
(
'RTT_EXEC_PATH'
)
EXEC_PATH
=
os
.
getenv
(
'RTT_EXEC_PATH'
)
#BUILD = 'debug'
BUILD
=
'release'
...
...
@@ -43,7 +41,7 @@ if PLATFORM == 'gcc':
SIZE
=
PREFIX
+
'size'
OBJDUMP
=
PREFIX
+
'objdump'
OBJCPY
=
PREFIX
+
'objcopy'
DEVICE
=
' -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -ffunction-sections -fdata-sections'
CFLAGS
=
DEVICE
+
' -std=c99 -Dgcc'
AFLAGS
=
' -c'
+
DEVICE
+
' -x assembler-with-cpp -Wa,-mimplicit-it=thumb '
...
...
@@ -75,7 +73,7 @@ elif PLATFORM == 'armcc':
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCC/INC'
LFLAGS
+=
' --libpath '
+
EXEC_PATH
+
'/ARM/ARMCC/LIB'
EXEC_PATH
+=
'/arm/armcc/bin/'
if
BUILD
==
'debug'
:
...
...
@@ -85,3 +83,51 @@ elif PLATFORM == 'armcc':
CFLAGS
+=
' -O2'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
AS
=
'iasmarm'
AR
=
'iarchive'
LINK
=
'ilinkarm'
TARGET_EXT
=
'out'
DEVICE
=
'-Dewarm'
# + ' -D' + PART_TYPE
CFLAGS
=
DEVICE
CFLAGS
+=
' --diag_suppress Pa050'
CFLAGS
+=
' --no_cse'
CFLAGS
+=
' --no_unroll'
CFLAGS
+=
' --no_inline'
CFLAGS
+=
' --no_code_motion'
CFLAGS
+=
' --no_tbaa'
CFLAGS
+=
' --no_clustering'
CFLAGS
+=
' --no_scheduling'
CFLAGS
+=
' --endian=little'
CFLAGS
+=
' --cpu=Cortex-M4'
CFLAGS
+=
' -e'
CFLAGS
+=
' --fpu=VFPv4_sp'
CFLAGS
+=
' --dlib_config "'
+
EXEC_PATH
+
'/arm/INC/c/DLib_Config_Normal.h"'
CFLAGS
+=
' --silent'
AFLAGS
=
DEVICE
AFLAGS
+=
' -s+'
AFLAGS
+=
' -w+'
AFLAGS
+=
' -r'
AFLAGS
+=
' --cpu Cortex-M4'
AFLAGS
+=
' --fpu VFPv4_sp'
AFLAGS
+=
' -S'
if
BUILD
==
'debug'
:
CFLAGS
+=
' --debug'
CFLAGS
+=
' -On'
else
:
CFLAGS
+=
' -Oh'
LFLAGS
=
' --config "tm4c_rom.icf"'
LFLAGS
+=
' --entry __iar_program_start'
#LFLAGS += ' --silent'
EXEC_PATH
=
EXEC_PATH
+
'/arm/bin/'
POST_ACTION
=
''
\ No newline at end of file
components/libc/compilers/dlib/sys/time.h
浏览文件 @
7577b1a3
...
...
@@ -20,7 +20,10 @@ struct timeval {
};
#endif
/* _TIMEVAL_DEFINED */
#if defined ( __ICCARM__ ) && (__VER__ >= 8011002)
/*
* Skip define timespec for IAR version over 8.10.1 where __VER__ is 8010001.
*/
#if defined ( __ICCARM__ ) && (__VER__ >= 8010001)
#define _TIMESPEC_DEFINED
#endif
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录