From 634a784cd27c58c56b7ea8056df3b2e2160fa29f Mon Sep 17 00:00:00 2001 From: Christian Mehlis Date: Sat, 19 Oct 2013 20:15:41 +0200 Subject: [PATCH] add rtc_time function in public header --- drivers/include/rtc.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/include/rtc.h b/drivers/include/rtc.h index bf93582634..475d983562 100644 --- a/drivers/include/rtc.h +++ b/drivers/include/rtc.h @@ -24,6 +24,7 @@ and Telematics group (http://cst.mi.fu-berlin.de). #define RTC_SECOND 10001U #include +#include /** * @brief Initializes the RTC for calendar mode @@ -52,6 +53,12 @@ void rtc_set_localtime(struct tm *localt); */ void rtc_get_localtime(struct tm *localt); +/** + * @brief Get the current time as a struct timeval + * @param[out] time Pointer to structure to receive time + */ +time_t rtc_time(struct timeval *time); + extern int rtc_second_pid; #endif