ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
crash_handler.h
Go to the documentation of this file.
1#pragma once
2
3#ifdef USE_LIBRETINY
4
6
7#ifdef USE_LIBRETINY_CRASH_HANDLER
8
9#if defined(USE_LIBRETINY_VARIANT_RTL8710B) || defined(USE_LIBRETINY_VARIANT_RTL8720C) || defined(USE_LN882X)
10// Cortex-M families: the recorder goes in front of the SDK's fault handlers through the RAM vector table.
11#define USE_LIBRETINY_CRASH_HANDLER_VECTOR_PATCH
12#endif
13
14namespace esphome::libretiny {
15
18
21
22#ifdef USE_LIBRETINY_CRASH_HANDLER_VECTOR_PATCH
25#endif
26
27} // namespace esphome::libretiny
28
29#endif // USE_LIBRETINY_CRASH_HANDLER
30#endif // USE_LIBRETINY
void crash_handler_install()
Put the crash recorder in front of the SDK's fault handlers.
void crash_handler_log()
Log crash data if a crash was detected on previous boot.
bool crash_handler_has_data()
Returns true if crash data was found this boot, reading it first if needed.