/*
 * SaveData.h
 *
 *  Created on: Feb 5, 2017
 *      Author: User
 */

#ifndef SOURCES_SAVEDATA_H_
#define SOURCES_SAVEDATA_H_

#include "Cpu.h"
#include "Events.h"
#include "clockMan1.h"
#include "pin_init.h"
#include "osa1.h"
#include "i2cCom1.h"
#include "tpmTmr1.h"
#include "DbgCs1.h"
#include "TLC3335.h"
#include "DS3231_RealTime.h"
#include "MCP9801_Temp.h"

#define SAVE_DATA_PERIOD	10

extern volatile uint32_t irqOldCount;
extern DS3231_realTime	realTimeConfig;
extern LTC3335_Config drvConfig;
extern MCP9801_temperature tempConfig;

typedef struct
{
	uint8_t		timePeriod;
	bool 		saveDataFlag;
}save_data_t;


void SaveData(save_data_t *config);

#endif /* SOURCES_SAVEDATA_H_ */
