Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ihbai
rt-thread
提交
d71e2ac5
R
rt-thread
项目概览
ihbai
/
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,发现更多精彩内容 >>
未验证
提交
d71e2ac5
编写于
8月 18, 2021
作者:
B
Bernard Xiong
提交者:
GitHub
8月 18, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #4484 from mysterywolf/security
[kernel][devices] add security devices
上级
69cd36b5
3e657891
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
4 addition
and
1 deletion
+4
-1
components/drivers/watchdog/watchdog.c
components/drivers/watchdog/watchdog.c
+1
-1
components/finsh/cmd.c
components/finsh/cmd.c
+1
-0
include/rtdef.h
include/rtdef.h
+2
-0
未找到文件。
components/drivers/watchdog/watchdog.c
浏览文件 @
d71e2ac5
...
...
@@ -89,7 +89,7 @@ rt_err_t rt_hw_watchdog_register(struct rt_watchdog_device *wtd,
device
=
&
(
wtd
->
parent
);
device
->
type
=
RT_Device_Class_
Miscellaneous
;
device
->
type
=
RT_Device_Class_
Security
;
device
->
rx_indicate
=
RT_NULL
;
device
->
tx_complete
=
RT_NULL
;
...
...
components/finsh/cmd.c
浏览文件 @
d71e2ac5
...
...
@@ -822,6 +822,7 @@ static char *const device_type_str[] =
"Sensor Device"
,
"Touch Device"
,
"Phy Device"
,
"Security Device"
,
"Unknown"
};
...
...
include/rtdef.h
浏览文件 @
d71e2ac5
...
...
@@ -34,6 +34,7 @@
* 2019-12-20 Bernard change version number to v4.0.3
* 2020-08-10 Meco Man add macro for struct rt_device_ops
* 2020-10-23 Meco Man define maximum value of ipc type
* 2021-03-19 Meco Man add security devices
* 2021-05-10 armink change version number to v4.0.4
*/
...
...
@@ -920,6 +921,7 @@ enum rt_device_class_type
RT_Device_Class_Sensor
,
/**< Sensor device */
RT_Device_Class_Touch
,
/**< Touch device */
RT_Device_Class_PHY
,
/**< PHY device */
RT_Device_Class_Security
,
/**< Security device */
RT_Device_Class_Unknown
/**< unknown device */
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录