19#include "hardware/watchdog.h"
20#include "pico/platform/common.h"
28#define WATCHDOG_PANIC_REBOOT_TIME_MS 50U
32 LOG_ERROR(
"[FATAL] reason=%d\r\n", (
int)reason);
39 tight_loop_contents();
#define FLUSH_LOG_BEFORE_REBOOT_MS
Time to wait before rebooting to allow the logs to flush.
#define WATCHDOG_PANIC_REBOOT_TIME_MS
void fatal_panic(e2s_error_t reason)
Print error message and panic.
e2s_error_t
Common error codes returned by ether2ser modules.