Chip-specific reset cause functions.
Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.
#include "compiler.h"
Macros | |
Chip-specific reset causes | |
#define | CHIP_RESET_CAUSE_EXTRST (1<<EXTRF) |
#define | CHIP_RESET_CAUSE_BOD_CPU (1<<BORF) |
#define | CHIP_RESET_CAUSE_POR (1<<PORF) |
#define | CHIP_RESET_CAUSE_WDT (1<<WDRF) |
#define | CHIP_RESET_CAUSE_JTAG (1<<JTRF) |
Typedefs | |
typedef uint8_t | reset_cause_t |
Chip-specific reset cause type capable of holding all chip reset causes. More... | |
Functions | |
static void | reset_cause_clear_causes (reset_cause_t causes) |
static reset_cause_t | reset_cause_get_causes (void) |