mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-28 00:37:05 +08:00
[fix]避免字符设备特殊控制指令和通用控制指令冲突
This commit is contained in:
parent
ff5894922a
commit
aaba21c938
@ -1187,7 +1187,7 @@ enum rt_device_class_type
|
|||||||
/**
|
/**
|
||||||
* device control
|
* 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
|
* special device commands
|
||||||
|
Loading…
x
Reference in New Issue
Block a user