Crash and watchdog diagnostic functions. More...

Macros

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

Functions

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

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.

Definition at line 504 of file diagnostic.h .

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).