diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2013-07-20 10:35:28 +0200 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2013-07-20 10:35:28 +0200 |
commit | b4af3f1fc9513d9f89df71c334862d5101807334 (patch) | |
tree | 3219bdec774d11c8fcdf33092fcd15a0e119ce84 /Projects/TempDataLogger/Lib/DS1307.h | |
parent | fc61e88a8d7fa209da63342be50faa507c393571 (diff) | |
download | lufa-b4af3f1fc9513d9f89df71c334862d5101807334.tar.gz lufa-b4af3f1fc9513d9f89df71c334862d5101807334.tar.bz2 lufa-b4af3f1fc9513d9f89df71c334862d5101807334.zip |
Add volatile software RTC to the TempDataLogger application if the dummy RTC mode is enabled.
Diffstat (limited to 'Projects/TempDataLogger/Lib/DS1307.h')
-rw-r--r-- | Projects/TempDataLogger/Lib/DS1307.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Projects/TempDataLogger/Lib/DS1307.h b/Projects/TempDataLogger/Lib/DS1307.h index dee4cb84d..2e20dbf33 100644 --- a/Projects/TempDataLogger/Lib/DS1307.h +++ b/Projects/TempDataLogger/Lib/DS1307.h @@ -5,14 +5,14 @@ www.lufa-lib.org */ -#ifndef _DS1307_H_ -#define _DS1307_H_ +#ifndef _RTC_H_ +#define _RTC_H_ /* Includes: */ #include <avr/io.h> #include <LUFA/Drivers/Peripheral/TWI.h> - + #include "Config/AppConfig.h" /* Type Defines: */ @@ -117,8 +117,10 @@ #define DS1307_ADDRESS 0xD0 /* Function Prototypes: */ - bool DS1307_SetTimeDate(const TimeDate_t* NewTimeDate); - bool DS1307_GetTimeDate(TimeDate_t* const TimeDate); + void RTC_Init(void); + void RTC_Tick500ms(void); + bool RTC_SetTimeDate(const TimeDate_t* NewTimeDate); + bool RTC_GetTimeDate(TimeDate_t* const TimeDate); #endif |