Crash and watchdog diagnostic functions.

Macros

#define halResetWasCrash ()   (((1 << halGetResetInfo ()) & RESET_CRASH_REASON_MASK) != 0U)
Macro evaluating to true if the last reset was a crash, false otherwise.

Functions

uint32_t halGetMainStackBytesUsed (void)
Returns the number of bytes used in the main stack.
void halPrintCrashSummary (uint8_t port)
Print a summary of crash details.
void halPrintCrashDetails (uint8_t port)
Print the complete, decoded crash details.
void halPrintCrashData (uint8_t port)
Print the complete crash data.
const HalAssertInfoType * halGetAssertInfo (void)
If last reset was from an assert, return saved assert information.

Detailed Description

Crash and watchdog diagnostic functions.

See diagnostic.h for source code.

Macro Definition Documentation

#define halResetWasCrash ( ) (((1 << halGetResetInfo ()) & RESET_CRASH_REASON_MASK) != 0U)

Macro evaluating to true if the last reset was a crash, false otherwise.

Function Documentation

const HalAssertInfoType* halGetAssertInfo ( void )

If last reset was from an assert, return saved assert information.

Returns
Pointer to struct containing assert filename and line.
uint32_t halGetMainStackBytesUsed ( void )

Returns the number of bytes used in the main stack.

Returns
The number of bytes used in the main stack.
void halPrintCrashData ( uint8_t port )

Print the complete crash data.

Parameters
port Serial port number (0 or 1).
void halPrintCrashDetails ( uint8_t port )

Print the complete, decoded crash details.

Parameters
port Serial port number (0 or 1).
void halPrintCrashSummary ( uint8_t port )

Print a summary of crash details.

Parameters
port Serial port number (0 or 1).