1 //------------------------------------------------------------------------------ 2 // Copyright 2012 (c) Silicon Laboratories Inc. 3 // 4 // SPDX-License-Identifier: Zlib 5 // 6 // This siHAL software is provided 'as-is', without any express or implied 7 // warranty. In no event will the authors be held liable for any damages 8 // arising from the use of this software. 9 // 10 // Permission is granted to anyone to use this software for any purpose, 11 // including commercial applications, and to alter it and redistribute it 12 // freely, subject to the following restrictions: 13 // 14 // 1. The origin of this software must not be misrepresented; you must not 15 // claim that you wrote the original software. If you use this software 16 // in a product, an acknowledgment in the product documentation would be 17 // appreciated but is not required. 18 // 2. Altered source versions must be plainly marked as such, and must not be 19 // misrepresented as being the original software. 20 // 3. This notice may not be removed or altered from any source distribution. 21 //------------------------------------------------------------------------------ 22 // 23 // This file applies to the SIM3L1XX_RSTSRC_A module 24 // 25 // Version: 1 26 27 #ifndef __SI32_RSTSRC_A_SUPPORT_H__ 28 #define __SI32_RSTSRC_A_SUPPORT_H__ 29 30 #include <stdint.h> 31 32 #ifdef __cplusplus 33 extern "C" { 34 #endif 35 36 //----------------------------------------------------------------------------- 37 // Define the RSTSRC Enum type 38 39 typedef enum SI32_RSTSRC_Enum 40 { 41 SI32_PIN_RESET = 0, 42 SI32_POWER_ON_RESET = 1, 43 SI32_VDD_MON_RESET = 2, 44 SI32_CORE_RESET = 3, 45 SI32_MCD_RESET = 4, 46 SI32_WDT_RESET = 5, 47 SI32_SW_RESET = 6, 48 SI32_CMP0_RESET = 7, 49 SI32_CMP1_RESET = 8, 50 SI32_LPCPFAIL_RESET = 9, 51 SI32_RTC0_RESET = 10, 52 SI32_PMU_WAKEUP_RESET = 11, 53 SI32_RESET_ERROR = 12 54 } SI32_RSTSRC_Enum_Type; 55 56 #ifdef __cplusplus 57 } 58 #endif 59 60 #endif // __SI32_RSTSRC_A_SUPPORT_H__ 61 62 //-eof-------------------------------------------------------------------------- 63