EEPROM Restore added in Bootloader

This commit is contained in:
bsongis
2014-04-09 11:51:38 +02:00
parent ab7218e5cf
commit 5dab6ef38f
5 changed files with 102 additions and 74 deletions
+9
View File
@@ -247,4 +247,13 @@ void loadGeneralSettings();
void loadModel(int index);
#endif
// For EEPROM backup/restore
#if defined(CPUARM)
inline bool isEepromStart(const void * buffer)
{
const EeFs * eeprom = (const EeFs *)buffer;
return (eeprom->version==EEFS_VERS && eeprom->mySize==sizeof(eeFs) && eeprom->bs==BS);
}
#endif
#endif