summaryrefslogtreecommitdiff
path: root/include/rtdef.h
diff options
context:
space:
mode:
authorjonas <[email protected]>2023-02-21 17:01:00 +0800
committerMan, Jianting (Meco) <[email protected]>2023-02-21 23:43:37 -0500
commitaaba21c938407c9e604980034a2d0b85799c5dca (patch)
tree631cb228df53e35340ed77fbacdf203033d7f58e /include/rtdef.h
parentff5894922aade8195fc3c02559ece3004eb3d751 (diff)
[fix]避免字符设备特殊控制指令和通用控制指令冲突
Diffstat (limited to 'include/rtdef.h')
-rw-r--r--include/rtdef.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rtdef.h b/include/rtdef.h
index 4a65c27842..e72f9226fa 100644
--- a/include/rtdef.h
+++ b/include/rtdef.h
@@ -1187,7 +1187,7 @@ enum rt_device_class_type
/**
* device control
*/
-#define RT_DEVICE_CTRL_BASE(Type) (RT_Device_Class_##Type * 0x100)
+#define RT_DEVICE_CTRL_BASE(Type) ((RT_Device_Class_##Type + 1) * 0x100)
/**
* special device commands