Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
RT-Thread
rt-thread
提交
b1cdc3a2
R
rt-thread
项目概览
RT-Thread
/
rt-thread
9 个月 前同步成功
通知
752
Star
8909
Fork
4735
代码
文件
提交
分支
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,体验更适合开发者的 AI 搜索 >>
提交
b1cdc3a2
编写于
2月 05, 2021
作者:
T
tangweikang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[toolchain] Added support for the TASKING toolchain.
上级
d514fea5
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
19 addition
and
4 deletion
+19
-4
include/libc/libc_ioctl.h
include/libc/libc_ioctl.h
+1
-1
include/rtdef.h
include/rtdef.h
+12
-0
src/components.c
src/components.c
+6
-3
未找到文件。
include/libc/libc_ioctl.h
浏览文件 @
b1cdc3a2
...
...
@@ -16,7 +16,7 @@
#define _IOC_WRITE 1U
#define _IOC_READ 2U
#if
ndef _WIN32
#if
!defined (_WIN32) && !defined (__TASKING__)
#define _IO(a,b) _IOC(_IOC_NONE,(a),(b),0)
#define _IOW(a,b,c) _IOC(_IOC_WRITE,(a),(b),sizeof(c))
#define _IOR(a,b,c) _IOC(_IOC_READ,(a),(b),sizeof(c))
...
...
include/rtdef.h
浏览文件 @
b1cdc3a2
...
...
@@ -192,6 +192,18 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
#define RT_WEAK
#define rt_inline static inline
#define RTT_API
#elif defined (__TASKING__)
#include <stdarg.h>
#define SECTION(x)
#define RT_UNUSED
#define RT_USED
#define PRAGMA(x) _Pragma(#x)
#define ALIGN(n)
#define RT_WEAK
#define rt_inline static inline
#define RTT_API
#else
#error not supported tool chain
#endif
...
...
src/components.c
浏览文件 @
b1cdc3a2
...
...
@@ -173,19 +173,22 @@ struct rt_thread main_thread;
void
main_thread_entry
(
void
*
parameter
)
{
extern
int
main
(
void
);
extern
int
$
Super
$$
main
(
void
);
#ifdef RT_USING_COMPONENTS_INIT
/* RT-Thread components initialization */
rt_components_init
();
#endif
#ifdef RT_USING_SMP
rt_hw_secondary_cpu_up
();
#endif
/* invoke system main function */
#if defined(__CC_ARM) || defined(__CLANG_ARM)
$
Super
$$
main
();
/* for ARMCC. */
#elif defined(__ICCARM__) || defined(__GNUC__)
{
extern
int
$
Super
$$
main
(
void
);
$
Super
$$
main
();
/* for ARMCC. */
}
#elif defined(__ICCARM__) || defined(__GNUC__) || defined(__TASKING__)
main
();
#endif
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录