summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
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 9aaf90b714..8fd4518642 100644
--- a/include/rtdef.h
+++ b/include/rtdef.h
@@ -779,6 +779,7 @@ struct rt_device
rt_uint16_t flag; /**< device flag */
rt_uint16_t open_flag; /**< device open flag */
+ rt_uint8_t ref_count; /**< reference count */
rt_uint8_t device_id; /**< 0 - 255 */
/* device call back */