6dfef76346
Update xflash_layout to include information about the dump, which sits at the end of xflash.
15 lines
466 B
C
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
|