diff options
| author | [email protected] <[email protected]> | 2012-10-29 02:02:41 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-10-29 02:02:41 +0000 |
| commit | c49700184fe0ac2bcbf75b8e882d13aecb2712d7 (patch) | |
| tree | 2d59d75e8341e087a483e492f11da4fab43b31e9 /include | |
| parent | 04bf06124f7b817eb8ac616102d8a447a9e88f3f (diff) | |
add RTC control command
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2377 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'include')
| -rw-r--r-- | include/rtdef.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/rtdef.h b/include/rtdef.h index 992a1b8555..2895b160f4 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -694,7 +694,9 @@ enum rt_device_class_type #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_SET_TIME 0x11 /**< set time */
+#define RT_DEVICE_CTRL_RTC_GET_ALARM 0x12 /**< get alarm */
+#define RT_DEVICE_CTRL_RTC_SET_ALARM 0x13 /**< set alarm */ typedef struct rt_device *rt_device_t; /** |
