Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wwsmg1
rt-thread
提交
6ca82399
R
rt-thread
项目概览
wwsmg1
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
1
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,发现更多精彩内容 >>
提交
6ca82399
编写于
3月 22, 2021
作者:
mysterywolf
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[mb9bf568r] 手动-自动格式整理
上级
06118227
变更
9
显示空白变更内容
内联
并排
Showing
9 changed file
with
77 addition
and
162 deletion
+77
-162
bsp/mb9bf568r/applications/application.c
bsp/mb9bf568r/applications/application.c
+4
-8
bsp/mb9bf568r/applications/demo.c
bsp/mb9bf568r/applications/demo.c
+0
-69
bsp/mb9bf568r/applications/startup.c
bsp/mb9bf568r/applications/startup.c
+3
-7
bsp/mb9bf568r/drivers/board.c
bsp/mb9bf568r/drivers/board.c
+3
-7
bsp/mb9bf568r/drivers/board.h
bsp/mb9bf568r/drivers/board.h
+2
-6
bsp/mb9bf568r/drivers/led.c
bsp/mb9bf568r/drivers/led.c
+17
-9
bsp/mb9bf568r/drivers/mcu.h
bsp/mb9bf568r/drivers/mcu.h
+4
-4
bsp/mb9bf568r/drivers/serial.c
bsp/mb9bf568r/drivers/serial.c
+25
-29
bsp/mb9bf568r/drivers/serial.h
bsp/mb9bf568r/drivers/serial.h
+19
-23
未找到文件。
bsp/mb9bf568r/applications/application.c
浏览文件 @
6ca82399
/*
* File : application.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2009 - 2011, RT-Thread Development Team
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rt-thread.org/license/LICENSE
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
...
...
bsp/mb9bf568r/applications/demo.c
已删除
100644 → 0
浏览文件 @
06118227
/*
此demo用于演示动态线程创建
*/
#include <rtthread.h>
#include "board.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
;
rt_kprintf
(
"thread1 dynamicly 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
;
rt_kprintf
(
"thread2 dynamicly created ok
\n
"
);
while
(
1
)
{
if
(
count
==
3
)
break
;
rt_kprintf
(
"thread2 count: %d
\n
"
,
count
++
);
rt_thread_delay
(
RT_TICK_PER_SECOND
);
}
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/mb9bf568r/applications/startup.c
浏览文件 @
6ca82399
/*
* File : startup.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2009 - 2011, RT-Thread Development Team
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rt-thread.org/license/LICENSE
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
...
...
bsp/mb9bf568r/drivers/board.c
浏览文件 @
6ca82399
/*
* File : board.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2009 - 2011 RT-Thread Develop Team
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rt-thread.org/license/LICENSE
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
...
...
bsp/mb9bf568r/drivers/board.h
浏览文件 @
6ca82399
/*
* File : board.h
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2009, RT-Thread Development Team
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rt-thread.org/license/LICENSE
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
...
...
bsp/mb9bf568r/drivers/led.c
浏览文件 @
6ca82399
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
*/
#include <rtthread.h>
#include "board.h"
...
...
bsp/mb9bf568r/drivers/mcu.h
浏览文件 @
6ca82399
bsp/mb9bf568r/drivers/serial.c
浏览文件 @
6ca82399
/*
* File : serial.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2006, RT-Thread Development Team
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rt-thread.org/license/LICENSE
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
...
...
bsp/mb9bf568r/drivers/serial.h
浏览文件 @
6ca82399
/*
* File : serial.h
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2006, RT-Thread Development Team
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rt-thread.org/license/LICENSE
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录