1 /***************************************************************************//**
\r
3 * @brief Reset Management Unit (RMU) peripheral API
\r
5 *******************************************************************************
\r
7 * <b>(C) Copyright 2014 Silicon Labs, http://www.silabs.com</b>
\r
8 *******************************************************************************
\r
10 * Permission is granted to anyone to use this software for any purpose,
\r
11 * including commercial applications, and to alter it and redistribute it
\r
12 * freely, subject to the following restrictions:
\r
14 * 1. The origin of this software must not be misrepresented; you must not
\r
15 * claim that you wrote the original software.
\r
16 * 2. Altered source versions must be plainly marked as such, and must not be
\r
17 * misrepresented as being the original software.
\r
18 * 3. This notice may not be removed or altered from any source distribution.
\r
20 * DISCLAIMER OF WARRANTY/LIMITATION OF REMEDIES: Silicon Labs has no
\r
21 * obligation to support this Software. Silicon Labs is providing the
\r
22 * Software "AS IS", with no express or implied warranties of any kind,
\r
23 * including, but not limited to, any implied warranties of merchantability
\r
24 * or fitness for any particular purpose or warranties against infringement
\r
25 * of any proprietary rights of a third party.
\r
27 * Silicon Labs will not be liable for any consequential, incidental, or
\r
28 * special damages, or any other relief, or for any claim by any third party,
\r
29 * arising from your use of this Software.
\r
31 ******************************************************************************/
\r
34 #ifndef __SILICON_LABS_EM_RMU_H_
\r
35 #define __SILICON_LABS_EM_RMU_H_
\r
37 #include "em_device.h"
\r
38 #if defined(RMU_COUNT) && (RMU_COUNT > 0)
\r
40 #include <stdbool.h>
\r
46 /***************************************************************************//**
\r
47 * @addtogroup EM_Library
\r
49 ******************************************************************************/
\r
51 /***************************************************************************//**
\r
54 ******************************************************************************/
\r
56 /*******************************************************************************
\r
57 ******************************** ENUMS ************************************
\r
58 ******************************************************************************/
\r
60 /** RMU controlled peripheral reset control and reset source control */
\r
63 #if defined( RMU_CTRL_BURSTEN )
\r
64 /** Reset control over Backup Power Domain */
\r
65 rmuResetBU = _RMU_CTRL_BURSTEN_SHIFT,
\r
67 /** Allow Cortex-M3 lock up signal */
\r
68 rmuResetLockUp = _RMU_CTRL_LOCKUPRDIS_SHIFT
\r
69 } RMU_Reset_TypeDef;
\r
71 /*******************************************************************************
\r
72 ***************************** PROTOTYPES **********************************
\r
73 ******************************************************************************/
\r
75 /** RMU_LockupResetDisable kept for backwards compatibility */
\r
76 #define RMU_LockupResetDisable(A) RMU_ResetControl(rmuResetLockUp, A)
\r
78 void RMU_ResetControl(RMU_Reset_TypeDef reset, bool enable);
\r
79 void RMU_ResetCauseClear(void);
\r
80 uint32_t RMU_ResetCauseGet(void);
\r
82 /** @} (end addtogroup RMU) */
\r
83 /** @} (end addtogroup EM_Library) */
\r
89 #endif /* defined(RMU_COUNT) && (RMU_COUNT > 0) */
\r
90 #endif /* __SILICON_LABS_EM_RMU_H_ */
\r