add EEPROM stuff, save last relay state in EEPROM

This commit is contained in:
hg
2015-05-31 14:57:32 +02:00
parent bf179114cc
commit 0fc11af5e0
9 changed files with 236 additions and 20 deletions

25
config.h Normal file
View File

@ -0,0 +1,25 @@
/*
* config.h
*
* Created on: 11.05.2015
* Author: wn
*/
#ifndef CONFIG_H_
#define CONFIG_H_
void configInit();
bool configIsValid();
void configReset();
void configRead(int addr, uint8_t len, char *buffer);
void configWrite(int addr, uint8_t len, char *buffer);
#define CONFIG_MAGIC 0 // 4
#define CONFIG_STATES_BEGIN 4
#endif /* CONFIG_H_ */