summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2021-09-30 18:25:54 +0800
committerGitHub <[email protected]>2021-09-30 18:25:54 +0800
commitb60adb2d04764af446c9dbb5cc58846e70f0153f (patch)
tree5abb2cb7bb76253a1d6b7258ebf685e357acba98 /include
parent1e36db0c382cc47276277f3b3e1911499070b750 (diff)
parent3fafe6e8119806e2dc6efd46b946602213b8dc11 (diff)
Merge pull request #5113 from armink/fix_rtc
Fix rtc
Diffstat (limited to 'include')
-rw-r--r--include/rtdef.h14
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;