Skip to content

struct osWatchdogRecord_t ​

Evidence of one watchdog bite. More...

#include <kernel/watchdog_record.h>

Public Attributes ​

Name
uint32_tboot
uint32_tuptime_ms
uint32_tstalled_mask
char[(12)]thread

Detailed Description ​

cpp
struct osWatchdogRecord_t;

Evidence of one watchdog bite.

Lives in reboot-safe RAM and takes 36 bytes there, hence only with CW_CONFIG_WATCHDOG_RECORD (CMake: CONFIG_WATCHDOG_RECORD). Without it osGetWatchdogRecord always returns 0.

Written shortly before the watchdog bites and dropped again if the threads report back in time. A record from an earlier boot gives way to a new one: without an acknowledgement the latest bite is the one to see.

Public Attributes Documentation ​

variable boot ​

cpp
uint32_t osWatchdogRecord_t::boot

osGetRebootCount() when written; the bite ended this boot.

variable uptime_ms ​

cpp
uint32_t osWatchdogRecord_t::uptime_ms

Kernel tick count when written.

variable stalled_mask ​

cpp
uint32_t osWatchdogRecord_t::stalled_mask

Watchdog tags of the threads that had neither fed nor been suspended.

variable thread ​

cpp
char osWatchdogRecord_t::thread[(12)]

Name of the thread with the lowest of these tags, truncated; "" if it was no longer known.