Simple RTC class based on DS1307. Emphasis on simple. Allows you to run at 100k or 400k Hz (for newer DS1307 capable devices). MapTime() allows you to set the time() service to the same as the RTC. Uses struct tm throughout so you can use traditional time functions for manipulation.

Dependents:   AdaFruit_RGBLCD

Committer:
vtraveller
Date:
Mon Aug 11 19:10:09 2014 +0000
Revision:
8:2192f2809f59
Added helper functions for setting mbed internal clock without DS1307 device present.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
vtraveller 8:2192f2809f59 1 #ifndef __TIME_HELPER_H__
vtraveller 8:2192f2809f59 2 #define __TIME_HELPER_H__
vtraveller 8:2192f2809f59 3
vtraveller 8:2192f2809f59 4 #include <time.h>
vtraveller 8:2192f2809f59 5
vtraveller 8:2192f2809f59 6 void GetTime(tm & out_sTM);
vtraveller 8:2192f2809f59 7 void SetTime(const tm & in_sTM);
vtraveller 8:2192f2809f59 8
vtraveller 8:2192f2809f59 9 #endif /* __TIME_HELPER_H__ */