diff options
| author | GuEe-GUI <[email protected]> | 2024-10-23 19:07:06 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2024-11-18 14:23:25 +0800 |
| commit | 3b22dbd04960a1934994059a4ef97d8403be2a54 (patch) | |
| tree | f5acf71b2409f2d218e740911191b5e24daacebf /include/rtdef.h | |
| parent | 45aba1bcd7242777de7facc80824f5b832dbb56d (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/rtdef.h')
| -rw-r--r-- | include/rtdef.h | 3 |
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 */ |
