From aaba21c938407c9e604980034a2d0b85799c5dca Mon Sep 17 00:00:00 2001 From: jonas Date: Tue, 21 Feb 2023 17:01:00 +0800 Subject: [fix]避免字符设备特殊控制指令和通用控制指令冲突 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/rtdef.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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 -- cgit v1.3.1