Crash and Watchdog Diagnostics
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
◆ halResetWasCrash
#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
602
of file
diagnostic.h
.
Function Documentation
◆ halGetAssertInfo()
const HalAssertInfoType* halGetAssertInfo | ( | void |
|
) |
If last reset was from an assert, return saved assert information.
- Returns
- Pointer to struct containing assert filename and line.
◆ halGetMainStackBytesUsed()
uint32_t halGetMainStackBytesUsed | ( | void |
|
) |
Returns the number of bytes used in the main stack.
- Returns
- The number of bytes used in the main stack.
◆ halPrintCrashData()
void halPrintCrashData | ( | uint8_t |
port
|
) |
Print the complete crash data.
- Parameters
-
port
Serial port number (0 or 1).
◆ halPrintCrashDetails()
void halPrintCrashDetails | ( | uint8_t |
port
|
) |
Print the complete, decoded crash details.
- Parameters
-
port
Serial port number (0 or 1).
◆ halPrintCrashSummary()
void halPrintCrashSummary | ( | uint8_t |
port
|
) |
Print a summary of crash details.
- Parameters
-
port
Serial port number (0 or 1).