diff options
| author | armink <[email protected]> | 2021-09-29 17:15:40 +0800 |
|---|---|---|
| committer | armink <[email protected]> | 2021-09-29 17:15:40 +0800 |
| commit | a4619732dfb3789a1ea9107d47629fe5025fd02c (patch) | |
| tree | 4f02016bb5630b182ad472e548744a14b1ab2942 | |
| parent | ff0b6d241beafd99b41d5ea91e29b4869ecbcfc0 (diff) | |
[DeviceDriver] Change the special device commands form 0x1X to 0x2X. It will avoid same of general device commands.
| -rw-r--r-- | include/rtdef.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/rtdef.h b/include/rtdef.h index 3f5f4c5ef9..a324eea122 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -966,13 +966,13 @@ enum rt_device_class_type /** * special device commands */ -#define RT_DEVICE_CTRL_CHAR_STREAM 0x10 /**< stream mode on char device */ -#define RT_DEVICE_CTRL_BLK_GETGEOME 0x10 /**< get geometry information */ -#define RT_DEVICE_CTRL_BLK_SYNC 0x11 /**< flush data to block device */ -#define RT_DEVICE_CTRL_BLK_ERASE 0x12 /**< erase block on block device */ -#define RT_DEVICE_CTRL_BLK_AUTOREFRESH 0x13 /**< block device : enter/exit auto refresh mode */ -#define RT_DEVICE_CTRL_NETIF_GETMAC 0x10 /**< get mac address */ -#define RT_DEVICE_CTRL_MTD_FORMAT 0x10 /**< format a MTD device */ +#define RT_DEVICE_CTRL_CHAR_STREAM 0x20 /**< stream mode on char device */ +#define RT_DEVICE_CTRL_BLK_GETGEOME 0x20 /**< get geometry information */ +#define RT_DEVICE_CTRL_BLK_SYNC 0x21 /**< flush data to block device */ +#define RT_DEVICE_CTRL_BLK_ERASE 0x22 /**< erase block on block device */ +#define RT_DEVICE_CTRL_BLK_AUTOREFRESH 0x23 /**< block device : enter/exit auto refresh mode */ +#define RT_DEVICE_CTRL_NETIF_GETMAC 0x20 /**< get mac address */ +#define RT_DEVICE_CTRL_MTD_FORMAT 0x20 /**< format a MTD device */ typedef struct rt_device *rt_device_t; |
