mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-20 09:28:49 +08:00
[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 <2991707448@qq.com>
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user