aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/src/rtc.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/src/rtc.c')
-rw-r--r--os/hal/src/rtc.c18
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);
}
/**