Appearance
struct osWatchdogRecord_t
Evidence of one watchdog bite. More...
#include <kernel/watchdog_record.h>
Public Attributes
| Name | |
|---|---|
| uint32_t | boot |
| uint32_t | uptime_ms |
| uint32_t | stalled_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::bootosGetRebootCount() when written; the bite ended this boot.
variable uptime_ms
cpp
uint32_t osWatchdogRecord_t::uptime_msKernel tick count when written.
variable stalled_mask
cpp
uint32_t osWatchdogRecord_t::stalled_maskWatchdog 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.