Chip-specific reset cause functions.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
#include "compiler.h"
Macros | |
Chip-specific reset causes | |
#define | CHIP_RESET_CAUSE_EXTRST PM_RCAUSE_EXT |
#define | CHIP_RESET_CAUSE_BOD_CPU PM_RCAUSE_BOD |
#define | CHIP_RESET_CAUSE_BOD_IO PM_RCAUSE_BOD33 |
#define | CHIP_RESET_CAUSE_OCD PM_RCAUSE_OCDRST |
#define | CHIP_RESET_CAUSE_POR PM_RCAUSE_POR |
#define | CHIP_RESET_CAUSE_POR_IO PM_RCAUSE_POR33 |
#define | CHIP_RESET_CAUSE_WDT PM_RCAUSE_WDT |
Typedefs | |
typedef uint32_t | reset_cause_t |
Chip-specific reset cause type capable of holding all chip reset causes. More... | |
Functions | |
Management | |
static reset_cause_t | reset_cause_get_causes (void) |
Get all reset causes. More... | |
static void | reset_cause_clear_causes (reset_cause_t causes) |
Clear a bit-mask of reset causes. More... | |
static void | reset_do_soft_reset (void) |
Perform a software reset of the device. More... | |