提交 aaba21c9 编写于 作者: J jonas 提交者: mysterywolf

[fix]避免字符设备特殊控制指令和通用控制指令冲突

上级 ff589492
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册