Microchip® Advanced Software Framework

reset.h File Reference

SAM Reset related functionality.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

#include <compiler.h>

Enumerations

enum  system_reset_cause {
  SYSTEM_RESET_CAUSE_SOFTWARE = PM_RCAUSE_SYST,
  SYSTEM_RESET_CAUSE_WDT = PM_RCAUSE_WDT,
  SYSTEM_RESET_CAUSE_EXTERNAL_RESET = PM_RCAUSE_EXT,
  SYSTEM_RESET_CAUSE_BOD33 = PM_RCAUSE_BOD33,
  SYSTEM_RESET_CAUSE_BOD12 = PM_RCAUSE_BOD12,
  SYSTEM_RESET_CAUSE_POR = PM_RCAUSE_POR
}
 Reset causes of the system. More...
 

Functions

Reset Control
static void system_reset (void)
 Reset the MCU. More...
 
static enum system_reset_cause system_get_reset_cause (void)
 Return the reset cause. More...