From aaba21c938407c9e604980034a2d0b85799c5dca Mon Sep 17 00:00:00 2001 From: jonas Date: Tue, 21 Feb 2023 17:01:00 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=E9=81=BF=E5=85=8D=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=E7=89=B9=E6=AE=8A=E6=8E=A7=E5=88=B6=E6=8C=87?= =?UTF-8?q?=E4=BB=A4=E5=92=8C=E9=80=9A=E7=94=A8=E6=8E=A7=E5=88=B6=E6=8C=87?= =?UTF-8?q?=E4=BB=A4=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 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 -- GitLab