Skip to content

Commit 37a9231

Browse files
committed
[kernel][devices] add security devices
1 parent 295b95c commit 37a9231

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

components/drivers/watchdog/watchdog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ rt_err_t rt_hw_watchdog_register(struct rt_watchdog_device *wtd,
8989

9090
device = &(wtd->parent);
9191

92-
device->type = RT_Device_Class_Miscellaneous;
92+
device->type = RT_Device_Class_Security;
9393
device->rx_indicate = RT_NULL;
9494
device->tx_complete = RT_NULL;
9595

components/finsh/cmd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,7 @@ static char *const device_type_str[] =
822822
"Sensor Device",
823823
"Touch Device",
824824
"Phy Device",
825+
"Security Device",
825826
"Unknown"
826827
};
827828

include/rtdef.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
* 2019-12-20 Bernard change version number to v4.0.3
3535
* 2020-08-10 Meco Man add macro for struct rt_device_ops
3636
* 2020-10-23 Meco Man define maximum value of ipc type
37+
* 2021-03-19 Meco Man add security devices
3738
*/
3839

3940
#ifndef __RT_DEF_H__
@@ -887,6 +888,7 @@ enum rt_device_class_type
887888
RT_Device_Class_Sensor, /**< Sensor device */
888889
RT_Device_Class_Touch, /**< Touch device */
889890
RT_Device_Class_PHY, /**< PHY device */
891+
RT_Device_Class_Security, /**< Security device */
890892
RT_Device_Class_Unknown /**< unknown device */
891893
};
892894

0 commit comments

Comments
 (0)