add rtc_time function in public header
This commit is contained in:
parent
f8eb0b0a9f
commit
634a784cd2
@ -24,6 +24,7 @@ and Telematics group (http://cst.mi.fu-berlin.de).
|
|||||||
#define RTC_SECOND 10001U
|
#define RTC_SECOND 10001U
|
||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
#include <sys/time.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Initializes the RTC for calendar mode
|
* @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);
|
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;
|
extern int rtc_second_pid;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user