From 0b31cd2b6c0616f515ed112a73a4c61725335a4a Mon Sep 17 00:00:00 2001 From: jonas Date: Mon, 27 Nov 2023 17:41:38 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=BF=E5=85=8D=E5=AD=97=E7=AC=A6=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E7=89=B9=E6=AE=8A=E6=8E=A7=E5=88=B6=E7=AC=A6=E5=92=8C?= =?UTF-8?q?=E9=80=9A=E7=94=A8=E6=8E=A7=E5=88=B6=E7=AC=A6=E5=86=B2=E7=AA=81?= 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(-) diff --git a/include/rtdef.h b/include/rtdef.h index 0de2c22..2258285 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -1027,7 +1027,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