diff options
author | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-09-21 12:46:09 +0000 |
---|---|---|
committer | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-09-21 12:46:09 +0000 |
commit | 95713cae20050dd58b41f52edead1b05c1c982a2 (patch) | |
tree | 101c2edc7e7b224c115512c50c3a3ebd7c53f0ad /os/hal/src/rtc.c | |
parent | 42e2ea515d9c24187d57cffcd2889c4641384165 (diff) | |
download | ChibiOS-95713cae20050dd58b41f52edead1b05c1c982a2.tar.gz ChibiOS-95713cae20050dd58b41f52edead1b05c1c982a2.tar.bz2 ChibiOS-95713cae20050dd58b41f52edead1b05c1c982a2.zip |
RTC. API cnahge.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3376 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/src/rtc.c')
-rw-r--r-- | os/hal/src/rtc.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/os/hal/src/rtc.c b/os/hal/src/rtc.c index ab916cf52..3b4b5824b 100644 --- a/os/hal/src/rtc.c +++ b/os/hal/src/rtc.c @@ -90,17 +90,15 @@ void rtcSetTime(uint32_t tv_sec){ }
/**
- * @brief Return current time in UNIX notation.
- */
-inline uint32_t rtcGetSec(void){
- return rtc_lld_get_sec();
-}
-
-/**
- * @brief Return fractional part of current time (milliseconds).
+ * @brief Return return seconds since UNIX epoch.
+ *
+ * @param[in] msec pointer to variable for storing fractional part of
+ * time (milliseconds).
+ *
+ * @notapi
*/
-inline uint16_t rtcGetMsec(void){
- return rtc_lld_get_msec();
+inline uint32_t rtcGetTime(uint16_t *msec){
+ return rtc_lld_get_time(msec);
}
/**
|