5#ifdef USE_RP2040_CRASH_HANDLER
11#include "hardware/timer.h"
12#include "hardware/watchdog.h"
23 watchdog_reboot(0, 0, 10);
30#ifdef USE_RP2040_CRASH_HANDLER
33#if USE_RP2040_WATCHDOG_TIMEOUT > 0
34 watchdog_enable(USE_RP2040_WATCHDOG_TIMEOUT,
false);
void crash_handler_read_and_clear()
Read crash data from watchdog scratch registers and clear them.
Providing packet encoding functions for exchanging data with a remote host.
uint32_t arch_get_cpu_cycle_count()
void IRAM_ATTR HOT delayMicroseconds(uint32_t us)
uint32_t arch_get_cpu_freq_hz()
uint32_t IRAM_ATTR HOT micros()
void IRAM_ATTR HOT delay_microseconds_safe(uint32_t us)
Delay for the given amount of microseconds, possibly yielding to other processes during the wait.
constexpr ESPHOME_ALWAYS_INLINE ReturnT micros_to_millis(uint64_t us)
Convert a 64-bit microsecond count to milliseconds without calling __udivdi3 (software 64-bit divide,...
void HOT delay(uint32_t ms)
uint32_t IRAM_ATTR HOT millis()
unsigned long ulMainGetRunTimeCounterValue()