mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
22 lines
366 B
C
22 lines
366 B
C
#ifdef ESP_PLATFORM
|
|
|
|
#pragma once
|
|
|
|
#include <cstdio>
|
|
|
|
#define CRASH_DATA_CALLSTACK_LIMIT 32 // bytes
|
|
|
|
struct CallstackFrame {
|
|
uint32_t pc = 0;
|
|
uint32_t sp = 0;
|
|
};
|
|
|
|
struct CrashData {
|
|
bool callstackCorrupted = false;
|
|
uint8_t callstackLength = 0;
|
|
CallstackFrame callstack[CRASH_DATA_CALLSTACK_LIMIT];
|
|
};
|
|
|
|
const CrashData* getRtcCrashData();
|
|
|
|
#endif |