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