Microchip® Advanced Software Framework

reset.h File Reference

SAM C2x Reset functionality.

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

#include <compiler.h>

Enumerations

enum  system_reset_cause {
  SYSTEM_RESET_CAUSE_SOFTWARE = RSTC_RCAUSE_SYST,
  SYSTEM_RESET_CAUSE_WDT = RSTC_RCAUSE_WDT,
  SYSTEM_RESET_CAUSE_EXTERNAL_RESET = RSTC_RCAUSE_EXT,
  SYSTEM_RESET_CAUSE_BODVDD = RSTC_RCAUSE_BODVDD,
  SYSTEM_RESET_CAUSE_BODCORE = RSTC_RCAUSE_BODCORE,
  SYSTEM_RESET_CAUSE_POR = RSTC_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)
 Get the reset cause. More...