diff options
Diffstat (limited to 'include/rtdef.h')
| -rw-r--r-- | include/rtdef.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rtdef.h b/include/rtdef.h index 9c7ddb9528..3e239fda4f 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -1194,7 +1194,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 |
