committed by
Bertrand Songis
parent
bb2ca31dad
commit
8b4d2b698d
+14
-12
@@ -43,32 +43,34 @@ extern tmr10ms_t rambackupDirtyTime10ms;
|
||||
#define TIME_TO_RAMBACKUP() (rambackupDirtyMsk && (tmr10ms_t)(get_tmr10ms() - rambackupDirtyTime10ms) >= (tmr10ms_t)100)
|
||||
#endif
|
||||
|
||||
//
|
||||
// Generic storage interface
|
||||
//
|
||||
void storageEraseAll(bool warn);
|
||||
void storageFormat();
|
||||
void storageReadAll();
|
||||
void storageDirty(uint8_t msk);
|
||||
void storageCheck(bool immediately);
|
||||
|
||||
//
|
||||
// Generic storage functions (implemented in storage_common.cpp)
|
||||
//
|
||||
void storageDirty(uint8_t msk);
|
||||
void storageFlushCurrentModel();
|
||||
void postRadioSettingsLoad();
|
||||
void preModelLoad();
|
||||
void postModelLoad(bool alarms);
|
||||
void checkExternalAntenna();
|
||||
|
||||
#if defined(EEPROM_RLC)
|
||||
#if defined(EEPROM)
|
||||
#include "eeprom_common.h"
|
||||
#include "eeprom_rlc.h"
|
||||
#elif defined(EEPROM)
|
||||
#include "eeprom_common.h"
|
||||
#include "eeprom_raw.h"
|
||||
#elif defined(SDCARD)
|
||||
#include "sdcard_raw.h"
|
||||
#endif
|
||||
|
||||
#if defined(SDCARD_RAW) || defined(SDCARD_YAML)
|
||||
#include "sdcard_common.h"
|
||||
#endif
|
||||
|
||||
#if defined(RAMBACKUP)
|
||||
void rambackupWrite();
|
||||
bool rambackupRestore();
|
||||
unsigned int compress(uint8_t * dst, unsigned int dstsize, const uint8_t * src, unsigned int len);
|
||||
unsigned int uncompress(uint8_t * dst, unsigned int dstsize, const uint8_t * src, unsigned int len);
|
||||
#include "rambackup.h"
|
||||
#endif
|
||||
|
||||
#endif // _STORAGE_H_
|
||||
|
||||
Reference in New Issue
Block a user