ESPHome
2026.9.1
Loading...
Searching...
No Matches
esphome
components
rp2
crash_handler.h
Go to the documentation of this file.
1
#pragma once
2
3
#ifdef USE_RP2
4
5
#include "
esphome/core/defines.h
"
6
7
#ifdef USE_RP2_CRASH_HANDLER
8
9
namespace
esphome::rp2
{
10
13
void
crash_handler_read_and_clear
();
14
16
void
crash_handler_log
();
17
19
bool
crash_handler_has_data
();
20
21
}
// namespace esphome::rp2
22
23
#endif
// USE_RP2_CRASH_HANDLER
24
#endif
// USE_RP2
defines.h
esphome::rp2
Definition
core.h:11
esphome::rp2::crash_handler_has_data
bool crash_handler_has_data()
Returns true if crash data was found this boot, reading it first if needed.
Definition
crash_handler.cpp:75
esphome::rp2::crash_handler_read_and_clear
void crash_handler_read_and_clear()
Read crash data from watchdog scratch registers and clear them.
Definition
crash_handler.cpp:80
esphome::rp2::crash_handler_log
void crash_handler_log()
Log crash data if a crash was detected on previous boot.
Definition
crash_handler.cpp:111
Generated by
1.12.0