SAM Reset functionality.
Copyright (c) 2014-2020 Microchip Technology Inc. and its subsidiaries.
Enumerations | |
enum | system_reset_backup_exit_source { SYSTEM_RESET_BACKKUP_EXIT_RTC = RSTC_BKUPEXIT_RTC, SYSTEM_RESET_BACKKUP_EXIT_BBPS = RSTC_BKUPEXIT_BBPS } |
Backup exit source after a backup reset occurs. More... | |
enum | system_reset_cause { SYSTEM_RESET_CAUSE_BACKUP = RSTC_RCAUSE_BACKUP, 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_BOD33 = RSTC_RCAUSE_BODVDD, SYSTEM_RESET_CAUSE_BOD12 = 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... | |
Backup Exit Control | |
static enum system_reset_backup_exit_source | system_get_backup_exit_source (void) |
Get the backup exit source. More... | |