summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-03-19 13:26:12 +0800
committerMeco Man <[email protected]>2021-03-19 13:26:12 +0800
commit37a9231e6219b94f7cde8bdea9251e260c4bed18 (patch)
treec006ae56fdae69cb12c898a3fdc28bea6a27a188 /components
parent295b95cd7529bc9b85b4fb8ee8b37c62811ffbc8 (diff)
[kernel][devices] add security devices
Diffstat (limited to 'components')
-rw-r--r--components/drivers/watchdog/watchdog.c2
-rw-r--r--components/finsh/cmd.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/components/drivers/watchdog/watchdog.c b/components/drivers/watchdog/watchdog.c
index 9108d834c6..d26626863d 100644
--- a/components/drivers/watchdog/watchdog.c
+++ b/components/drivers/watchdog/watchdog.c
@@ -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;
diff --git a/components/finsh/cmd.c b/components/finsh/cmd.c
index 8b51896cde..45971e5fb4 100644
--- a/components/finsh/cmd.c
+++ b/components/finsh/cmd.c
@@ -822,6 +822,7 @@ static char *const device_type_str[] =
"Sensor Device",
"Touch Device",
"Phy Device",
+ "Security Device",
"Unknown"
};