Merge pull request #4484 from mysterywolf/security

[kernel][devices] add security devices
This commit is contained in:
Bernard Xiong 2021-08-18 19:24:58 +08:00 committed by GitHub
commit d71e2ac582
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View File

@ -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;

View File

@ -822,6 +822,7 @@ static char *const device_type_str[] =
"Sensor Device",
"Touch Device",
"Phy Device",
"Security Device",
"Unknown"
};

View File

@ -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 */
};