00001 /******************************************************************************/ 00013 #ifndef RESETREASON_H_ 00014 #define RESETREASON_H_ 00015 00016 // \cond 00017 // Possible reset reasons. 00018 typedef enum 00019 { 00020 POWER_ON_RESET = 0x1, // The supply voltage was below reset threshold. 00021 EXTERNAL_RESET = 0x2, // Low level was present on RESET pin. 00022 BROWN_OUT_RESET = 0x4, // The supply voltage was below Brown-out reset threshold. 00023 WDT_RESET = 0x8, // Watch Dog Timer period expired. 00024 JTAG_RESET = 0x10, // MCU was reset by JTAG. 00025 WARM_RESET = 0x11 // MCU was reset by software. 00026 }HAL_ResetReason_t; 00027 // \endcond 00028 00029 /**************************************************************************/ 00041 HAL_ResetReason_t HAL_ReadResetReason(); 00042 00043 /**************************************************************************/ 00046 void HAL_WarmReset(void); 00047 00048 #endif 00049 // resetReason.h