Crash and watchdog diagnostic functions.
|
#define | halResetWasCrash() (((1 << halGetResetInfo()) & RESET_CRASH_REASON_MASK) != 0U) |
| Macro evaluating to true if the last reset was a crash, false otherwise.
|
See diagnostic.h
for source code.
#define halResetWasCrash |
( |
| ) |
(((1 << halGetResetInfo()) & RESET_CRASH_REASON_MASK) != 0U) |
const HalAssertInfoType* halGetAssertInfo |
( |
void |
| ) |
|
- Returns
- Pointer to struct containing assert filename and line.
uint32_t halGetMainStackBytesUsed |
( |
void |
| ) |
|
- Returns
- The number of bytes used in the main stack.
void halPrintCrashData |
( |
uint8_t |
port | ) |
|
- Parameters
-
port | Serial port number (0 or 1). |
void halPrintCrashDetails |
( |
uint8_t |
port | ) |
|
- Parameters
-
port | Serial port number (0 or 1). |
void halPrintCrashSummary |
( |
uint8_t |
port | ) |
|
- Parameters
-
port | Serial port number (0 or 1). |