ether2ser 0.1.0
Ethernet <-> synchronous V.24 bridge firmware for RP2040 + W5500
Loading...
Searching...
No Matches
error.c File Reference
#include "error.h"
#include <stdbool.h>
#include "hardware/watchdog.h"
#include "pico/platform/common.h"
#include "pico/time.h"
#include "system/common.h"
Include dependency graph for error.c:

Go to the source code of this file.

Macros

#define WATCHDOG_PANIC_REBOOT_TIME_MS   50U
 

Functions

void fatal_panic (e2s_error_t reason)
 Print error message and panic.
 

Macro Definition Documentation

◆ WATCHDOG_PANIC_REBOOT_TIME_MS

#define WATCHDOG_PANIC_REBOOT_TIME_MS   50U

Definition at line 28 of file error.c.

Function Documentation

◆ fatal_panic()

void fatal_panic ( e2s_error_t  reason)

Print error message and panic.

Parameters
reasonError code.

Definition at line 30 of file error.c.

References FLUSH_LOG_BEFORE_REBOOT_MS, LOG_ERROR, and WATCHDOG_PANIC_REBOOT_TIME_MS.

Referenced by ev_set_net_settings(), main(), and w5500_driver_init().

Here is the caller graph for this function: