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.
Diff: time_helper.h
- Revision:
- 8:2192f2809f59
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/time_helper.h Mon Aug 11 19:10:09 2014 +0000 @@ -0,0 +1,9 @@ +#ifndef __TIME_HELPER_H__ +#define __TIME_HELPER_H__ + +#include <time.h> + +void GetTime(tm & out_sTM); +void SetTime(const tm & in_sTM); + +#endif /* __TIME_HELPER_H__ */ \ No newline at end of file