Reset Cause Definitions
Definitions for all the reset cause types.
Reset cause types are built from a base definition and an extended. definition. The base definitions allow working with entire categories of resets while the extended definitions allow drilling down to very specific causes. The macros for the base and extended definitions are combined for use in the code and equated to their combined numberical equivalents. In addition, exach base and extended definition is given a corresponding 3 letter ASCII string to facilitate printing. The ASCII strings are best use with halGetExtendedResetString.
RESET_BASE_DEF(EXTERNAL, 0x03U, "EXT")
RESET_EXT_DEF(EXTERNAL, UNKNOWN, 0x00U, "UNK")
RESET_EXT_DEF(EXTERNAL, PIN, 0x01U, "PIN")
results in enums which includes the entries:
RESET_EXTERNAL = 0x03
RESET_EXTERNAL_PIN = 0x0301
For a complete listing of all reset base and extended definitions, see reset-def.h for source code.