summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorarmink <[email protected]>2021-04-14 20:06:01 +0800
committerarmink <[email protected]>2021-04-14 20:06:39 +0800
commitb027ad8b2e15c33afbc9f48a8b3b0c8fab684c68 (patch)
treef978a70d2ca6535dacc9d4ca370f4d2602f1d370 /include
parentb7a5319e5c220b07190db2bf38ff362e403226bb (diff)
[DeviceDriver] Add get/set microsecond time control command
Diffstat (limited to 'include')
-rw-r--r--include/rtdef.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/rtdef.h b/include/rtdef.h
index b368208175..aba8a6f12d 100644
--- a/include/rtdef.h
+++ b/include/rtdef.h
@@ -962,10 +962,12 @@ enum rt_device_class_type
#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_RTC_GET_TIME 0x10 /**< get time */
-#define RT_DEVICE_CTRL_RTC_SET_TIME 0x11 /**< set time */
+#define RT_DEVICE_CTRL_RTC_GET_TIME 0x10 /**< get second time */
+#define RT_DEVICE_CTRL_RTC_SET_TIME 0x11 /**< set second time */
#define RT_DEVICE_CTRL_RTC_GET_ALARM 0x12 /**< get alarm */
#define RT_DEVICE_CTRL_RTC_SET_ALARM 0x13 /**< set alarm */
+#define RT_DEVICE_CTRL_RTC_GET_TIME_US 0x14 /**< get microsecond time */
+#define RT_DEVICE_CTRL_RTC_SET_TIME_US 0x15 /**< set microsecond time */
typedef struct rt_device *rt_device_t;