53 uint32_t reset_count = 0;
55 reset_count = read_data.reset_count;
56 BackupData write_data= {};
57 write_data.reset_count=++reset_count;
58 write_data.error_code=0xDEADBEEF;
void backup_sram_write(const rosflight_firmware::BackupData &)
__STATIC_INLINE void NVIC_SystemReset(void)
System Reset.
rosflight_firmware::BackupData backup_sram_read()
bool check_backup_checksum(const rosflight_firmware::BackupData &)
uint32_t generate_backup_checksum(const rosflight_firmware::BackupData &)