diff options
Diffstat (limited to 'firmware/export/eeprom_settings.h')
-rw-r--r-- | firmware/export/eeprom_settings.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/firmware/export/eeprom_settings.h b/firmware/export/eeprom_settings.h index 367e7b24e9..aade86bc0d 100644 --- a/firmware/export/eeprom_settings.h +++ b/firmware/export/eeprom_settings.h | |||
@@ -23,17 +23,26 @@ | |||
23 | #include <stdbool.h> | 23 | #include <stdbool.h> |
24 | #include "inttypes.h" | 24 | #include "inttypes.h" |
25 | 25 | ||
26 | #define EEPROM_SETTINGS_VERSION 0x24c01001 | 26 | #define EEPROM_SETTINGS_VERSION 0x24c01002 |
27 | #define EEPROM_SETTINGS_BL_MINVER 7 | 27 | #define EEPROM_SETTINGS_BL_MINVER 7 |
28 | 28 | ||
29 | enum boot_methods { | ||
30 | BOOT_DISK = 0, | ||
31 | BOOT_RAM, | ||
32 | BOOT_ROM, | ||
33 | BOOT_RECOVERY, | ||
34 | }; | ||
35 | |||
29 | struct eeprom_settings | 36 | struct eeprom_settings |
30 | { | 37 | { |
31 | long version; /* Settings version number */ | 38 | long version; /* Settings version number */ |
32 | bool initialized; /* Is eeprom_settings ready to be used */ | 39 | bool initialized; /* Is eeprom_settings ready to be used */ |
33 | bool disk_clean; /* Is disk intact from last reboot */ | 40 | bool disk_clean; /* Is disk intact from last reboot */ |
34 | bool boot_disk; /* Load firmware from disk (default=FLASH) */ | 41 | uint8_t bootmethod; /* The default boot method. */ |
35 | uint8_t bl_version; /* Installed bootloader version */ | 42 | uint8_t bl_version; /* Installed bootloader version */ |
36 | 43 | ||
44 | long reserved; /* A few reserved bits for the future. */ | ||
45 | |||
37 | /* This must be the last entry */ | 46 | /* This must be the last entry */ |
38 | uint32_t checksum; /* Checksum of this structure */ | 47 | uint32_t checksum; /* Checksum of this structure */ |
39 | }; | 48 | }; |