避免字符设备特殊控制符和通用控制符冲突

This commit is contained in:
2023-11-27 17:41:38 +08:00
parent 06edda3586
commit 0b31cd2b6c

View File

@ -1027,7 +1027,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