summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGuEe-GUI <[email protected]>2024-10-23 19:07:06 +0800
committerRbb666 <[email protected]>2024-11-18 14:23:25 +0800
commit3b22dbd04960a1934994059a4ef97d8403be2a54 (patch)
treef5acf71b2409f2d218e740911191b5e24daacebf /include
parent45aba1bcd7242777de7facc80824f5b832dbb56d (diff)
[DM/FEATURE] DM Device IDA management
Drivers can manage their own IDs without having to concern themselves with the register/unregister in system Link: https://github.com/RT-Thread/rt-thread/issues/9534 Signed-off-by: GuEe-GUI <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/rtdef.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/rtdef.h b/include/rtdef.h
index da2610cb97..d392f84050 100644
--- a/include/rtdef.h
+++ b/include/rtdef.h
@@ -1390,6 +1390,9 @@ struct rt_device
rt_uint16_t open_flag; /**< device open flag */
rt_uint8_t ref_count; /**< reference count */
+#ifdef RT_USING_DM
+ rt_uint8_t master_id; /**< 0 - 255 */
+#endif
rt_uint8_t device_id; /**< 0 - 255 */
/* device call back */