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);
41 return pgm_read_byte(addr);
44 return reinterpret_cast<const char *
>(pgm_read_ptr(addr));
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()
const char * progmem_read_ptr(const char *const *addr)
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.
uint16_t progmem_read_uint16(const uint16_t *addr)
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()
uint8_t progmem_read_byte(const uint8_t *addr)
unsigned long ulMainGetRunTimeCounterValue()