[drivers][core] 完善设备模型 (#8384)

This commit is contained in:
fangjianzhou
2024-01-09 23:10:42 +08:00
committed by GitHub
parent cc157baf23
commit 10b16273b8
17 changed files with 1303 additions and 248 deletions
+1
View File
@@ -1470,6 +1470,7 @@ enum rt_device_class_type
*/
#define RT_DEVICE_CTRL_BASE(Type) ((RT_Device_Class_##Type + 1) * 0x100)
typedef struct rt_driver *rt_driver_t;
typedef struct rt_device *rt_device_t;
#ifdef RT_USING_DEVICE_OPS