diff --git a/include/rtdef.h b/include/rtdef.h index 4a65c278427e279ad84e45c398b5ea6592a9a4b7..e72f9226faaab748851b42b38423c096287f2773 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