Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2345VOR
rt-thread
提交
0ef62c7b
R
rt-thread
项目概览
2345VOR
/
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,发现更多精彩内容 >>
提交
0ef62c7b
编写于
1月 06, 2020
作者:
A
amy qian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
删除了demo.c文件修改了main.c,相应修改了readme
上级
220343ab
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
15 addition
and
73 deletion
+15
-73
bsp/cypress/psoc6-pioneerkit_modus/README.md
bsp/cypress/psoc6-pioneerkit_modus/README.md
+4
-11
bsp/cypress/psoc6-pioneerkit_modus/applications/demo.c
bsp/cypress/psoc6-pioneerkit_modus/applications/demo.c
+0
-60
bsp/cypress/psoc6-pioneerkit_modus/applications/main.c
bsp/cypress/psoc6-pioneerkit_modus/applications/main.c
+11
-2
未找到文件。
bsp/cypress/psoc6-pioneerkit_modus/README.md
浏览文件 @
0ef62c7b
...
...
@@ -84,18 +84,11 @@ CY8CKIT-062-BLE PSoC6 BLE Pioneer Kit 是赛普拉斯推出的一款32位双核C
```
\ | /
- RT - Thread Operating System
/ | \ 4.0.3 build Jan
3
2020
/ | \ 4.0.3 build Jan
6
2020
2006 - 2019 Copyright by rt-thread team
thread1 created ok
thread1 count: 0
thread2 created ok
thread2 count: 0
thread2 count: 1
thread2 count: 2
thread2 count: 3
thread1 count: 1
thread2 count: 4
thread2 count: 5
hello rt-thread
msh >hello rt-thread
hello rt-thread
```
## 联系人信息
...
...
bsp/cypress/psoc6-pioneerkit_modus/applications/demo.c
已删除
100644 → 0
浏览文件 @
220343ab
#include <rtthread.h>
#include "board.h"
#include "cybsp.h"
#include "cy_device_headers.h"
#ifdef RT_USING_FINSH
#include <finsh.h>
#include <shell.h>
#endif
static
rt_thread_t
tid1
=
RT_NULL
;
static
rt_thread_t
tid2
=
RT_NULL
;
static
void
thread1_entry
(
void
*
parameter
)
{
rt_uint32_t
count
=
0
;
parameter
=
parameter
;
rt_kprintf
(
"thread1 created ok
\n
"
);
while
(
1
)
{
rt_kprintf
(
"thread1 count: %d
\n
"
,
count
++
);
rt_thread_delay
(
RT_TICK_PER_SECOND
);
}
}
static
void
thread2_entry
(
void
*
parameter
)
{
rt_uint32_t
count
=
0
;
parameter
=
parameter
;
rt_kprintf
(
"thread2 created ok
\n
"
);
while
(
1
)
{
rt_kprintf
(
"thread2 count: %d
\n
"
,
count
++
);
rt_thread_delay
(
RT_TICK_PER_SECOND
/
4
);
}
rt_thread_delay
(
RT_TICK_PER_SECOND
*
4
);
rt_thread_delete
(
tid1
);
rt_kprintf
(
"thread1 deleted ok
\n
"
);
}
int
demo_init
(
void
)
{
tid1
=
rt_thread_create
(
"thread1"
,
thread1_entry
,
RT_NULL
,
512
,
6
,
10
);
if
(
tid1
!=
RT_NULL
)
rt_thread_startup
(
tid1
);
tid2
=
rt_thread_create
(
"thread2"
,
thread2_entry
,
RT_NULL
,
512
,
6
,
10
);
if
(
tid2
!=
RT_NULL
)
rt_thread_startup
(
tid2
);
return
0
;
}
bsp/cypress/psoc6-pioneerkit_modus/applications/main.c
浏览文件 @
0ef62c7b
...
...
@@ -43,14 +43,23 @@
#include "cycfg.h"
#include "cy_device_headers.h"
#include "cycfg_peripherals.h"
#include <rtthread.h>
#include "board.h"
#include "cybsp.h"
#ifdef RT_USING_FINSH
#include <finsh.h>
#include <shell.h>
#endif
extern
int
demo_init
(
void
);
int
main
(
void
)
{
demo_init
();
for
(;;)
{
rt_kprintf
(
"hello rt-thread
\n
"
);
rt_thread_mdelay
(
1000
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录