Prusa-Firmware/Firmware/xflash_dump.h
Yuri D'Elia 6dfef76346 xfdump: implement dump-to-xflash functionality
Update xflash_layout to include information about the dump, which sits
at the end of xflash.
2021-06-08 15:28:02 +02:00

15 lines
466 B
C

// XFLASH dumper
#pragma once
#include "xflash_layout.h"
#ifdef XFLASH_DUMP
void xfdump_reset(); // reset XFLASH dump state
bool xfdump_check_state(); // return true if a dump is present
bool xfdump_check_crash(); // return true if a dump is present and is a crash dump
void xfdump_dump(); // create a new SRAM memory dump
// create a new dump containing registers and SRAM, then reset
void xfdump_full_dump_and_reset(bool crash = false);
#endif