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.
time_helper.h
- Committer:
- vtraveller
- Date:
- 2015-01-24
- Revision:
- 17:bdc15c054ac1
- Parent:
- 8:2192f2809f59
File content as of revision 17:bdc15c054ac1:
#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__ */