summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorfangjianzhou <[email protected]>2024-01-09 23:10:42 +0800
committerGitHub <[email protected]>2024-01-09 23:10:42 +0800
commit10b16273b8b98a8c4ab1196aea211b0084dfb8de (patch)
tree949e5c85972424a9ad91b68bfb8f3ea9a935a604 /include
parentcc157baf23b3757b1741ca06da4bad45b5ff8ddc (diff)
[drivers][core] 完善设备模型 (#8384)
Diffstat (limited to 'include')
-rw-r--r--include/rtdef.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/rtdef.h b/include/rtdef.h
index 0e3601090a..7599e73983 100644
--- a/include/rtdef.h
+++ b/include/rtdef.h
@@ -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