Skip to content

Commit d71e2ac

Browse files
authored
Merge pull request #4484 from mysterywolf/security
[kernel][devices] add security devices
2 parents 69cd36b + 3e65789 commit d71e2ac

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
* 2021-05-10 armink change version number to v4.0.4
3839
*/
3940

@@ -920,6 +921,7 @@ enum rt_device_class_type
920921
RT_Device_Class_Sensor, /**< Sensor device */
921922
RT_Device_Class_Touch, /**< Touch device */
922923
RT_Device_Class_PHY, /**< PHY device */
924+
RT_Device_Class_Security, /**< Security device */
923925
RT_Device_Class_Unknown /**< unknown device */
924926
};
925927

0 commit comments

Comments
 (0)