Issue #18: Protect safety memory heder with CRC

This commit is contained in:
2020-09-08 18:24:10 +02:00
parent b619fc5600
commit e0f61af709
2 changed files with 22 additions and 9 deletions

View File

@@ -55,7 +55,7 @@ struct safety_memory_header {
uint32_t config_overrides_len; /**< @brief Length of override entries in words */
uint32_t err_memory_offset; /**< @brief Offset of the error memory */
uint32_t err_memory_end; /**< @brief End of the error memory. This points to the word after the error memory, containing the CRC of the whole backup RAM. */
uint32_t magic_i; /**< @brief Invers Magic. Set to the bitwise inverse of @ref SAFETY_MEMORY_MAGIC */
uint32_t crc; /**< @brief CRC of the header */
};
struct safety_memory_boot_status {