Rename eeprom files to more generic data_storage

This is a preparation for futur non-volatile storage in flash memory.
This commit is contained in:
Martin Jäger
2021-03-12 18:40:22 +01:00
parent 483e09d1a2
commit a06f14b63c
7 changed files with 42 additions and 37 deletions
+33
View File
@@ -0,0 +1,33 @@
/*
* Copyright (c) The Libre Solar Project Contributors
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef DATA_STORAGE_H_
#define DATA_STORAGE_H_
#define DATA_UPDATE_INTERVAL (6*60*60) // update every 6 hours
/**
* @file
*
* @brief Handling of internal or external EEPROM to store device configuration
*/
/**
* Store current charge controller data to EEPROM
*/
void data_storage_write();
/**
* Restore charge controller data from EEPROM and write to variables in RAM
*/
void data_storage_read();
/**
* Stores data to EEPROM every 6 hours (can be called regularly)
*/
void data_storage_update();
#endif /* DATA_STORAGE_H_ */