Fork of the official mbed C/C SDK provides the software platform and libraries to build your applications for RenBED.

Dependents:   1-RenBuggyTimed RenBED_RGB RenBED_RGB_PWM RenBED_RGB

Fork of mbed by mbed official

Committer:
elijahorr
Date:
Thu Apr 14 07:28:54 2016 +0000
Revision:
121:672067c3ada4
Parent:
113:f141b2784e32
.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 98:8ab26030e058 1 /**************************************************************************//**
Kojto 98:8ab26030e058 2 * @file efm32zg_emu.h
Kojto 98:8ab26030e058 3 * @brief EFM32ZG_EMU register and bit field definitions
Kojto 113:f141b2784e32 4 * @version 4.2.0
Kojto 98:8ab26030e058 5 ******************************************************************************
Kojto 98:8ab26030e058 6 * @section License
Kojto 113:f141b2784e32 7 * <b>Copyright 2015 Silicon Laboratories, Inc. http://www.silabs.com</b>
Kojto 98:8ab26030e058 8 ******************************************************************************
Kojto 98:8ab26030e058 9 *
Kojto 98:8ab26030e058 10 * Permission is granted to anyone to use this software for any purpose,
Kojto 98:8ab26030e058 11 * including commercial applications, and to alter it and redistribute it
Kojto 98:8ab26030e058 12 * freely, subject to the following restrictions:
Kojto 98:8ab26030e058 13 *
Kojto 98:8ab26030e058 14 * 1. The origin of this software must not be misrepresented; you must not
Kojto 98:8ab26030e058 15 * claim that you wrote the original software.@n
Kojto 98:8ab26030e058 16 * 2. Altered source versions must be plainly marked as such, and must not be
Kojto 98:8ab26030e058 17 * misrepresented as being the original software.@n
Kojto 98:8ab26030e058 18 * 3. This notice may not be removed or altered from any source distribution.
Kojto 98:8ab26030e058 19 *
Kojto 98:8ab26030e058 20 * DISCLAIMER OF WARRANTY/LIMITATION OF REMEDIES: Silicon Laboratories, Inc.
Kojto 98:8ab26030e058 21 * has no obligation to support this Software. Silicon Laboratories, Inc. is
Kojto 98:8ab26030e058 22 * providing the Software "AS IS", with no express or implied warranties of any
Kojto 98:8ab26030e058 23 * kind, including, but not limited to, any implied warranties of
Kojto 98:8ab26030e058 24 * merchantability or fitness for any particular purpose or warranties against
Kojto 98:8ab26030e058 25 * infringement of any proprietary rights of a third party.
Kojto 98:8ab26030e058 26 *
Kojto 98:8ab26030e058 27 * Silicon Laboratories, Inc. will not be liable for any consequential,
Kojto 98:8ab26030e058 28 * incidental, or special damages, or any other relief, or for any claim by
Kojto 98:8ab26030e058 29 * any third party, arising from your use of this Software.
Kojto 98:8ab26030e058 30 *
Kojto 98:8ab26030e058 31 *****************************************************************************/
Kojto 98:8ab26030e058 32 /**************************************************************************//**
Kojto 113:f141b2784e32 33 * @addtogroup Parts
Kojto 113:f141b2784e32 34 * @{
Kojto 113:f141b2784e32 35 ******************************************************************************/
Kojto 113:f141b2784e32 36 /**************************************************************************//**
Kojto 98:8ab26030e058 37 * @defgroup EFM32ZG_EMU
Kojto 98:8ab26030e058 38 * @{
Kojto 98:8ab26030e058 39 * @brief EFM32ZG_EMU Register Declaration
Kojto 98:8ab26030e058 40 *****************************************************************************/
Kojto 98:8ab26030e058 41 typedef struct
Kojto 98:8ab26030e058 42 {
Kojto 98:8ab26030e058 43 __IO uint32_t CTRL; /**< Control Register */
Kojto 98:8ab26030e058 44
Kojto 98:8ab26030e058 45 uint32_t RESERVED0[1]; /**< Reserved for future use **/
Kojto 98:8ab26030e058 46 __IO uint32_t LOCK; /**< Configuration Lock Register */
Kojto 98:8ab26030e058 47
Kojto 98:8ab26030e058 48 uint32_t RESERVED1[6]; /**< Reserved for future use **/
Kojto 98:8ab26030e058 49 __IO uint32_t AUXCTRL; /**< Auxiliary Control Register */
Kojto 98:8ab26030e058 50 } EMU_TypeDef; /** @} */
Kojto 98:8ab26030e058 51
Kojto 98:8ab26030e058 52 /**************************************************************************//**
Kojto 98:8ab26030e058 53 * @defgroup EFM32ZG_EMU_BitFields
Kojto 98:8ab26030e058 54 * @{
Kojto 98:8ab26030e058 55 *****************************************************************************/
Kojto 98:8ab26030e058 56
Kojto 98:8ab26030e058 57 /* Bit fields for EMU CTRL */
Kojto 98:8ab26030e058 58 #define _EMU_CTRL_RESETVALUE 0x00000000UL /**< Default value for EMU_CTRL */
Kojto 98:8ab26030e058 59 #define _EMU_CTRL_MASK 0x0000000FUL /**< Mask for EMU_CTRL */
Kojto 98:8ab26030e058 60 #define EMU_CTRL_EMVREG (0x1UL << 0) /**< Energy Mode Voltage Regulator Control */
Kojto 98:8ab26030e058 61 #define _EMU_CTRL_EMVREG_SHIFT 0 /**< Shift value for EMU_EMVREG */
Kojto 98:8ab26030e058 62 #define _EMU_CTRL_EMVREG_MASK 0x1UL /**< Bit mask for EMU_EMVREG */
Kojto 98:8ab26030e058 63 #define _EMU_CTRL_EMVREG_DEFAULT 0x00000000UL /**< Mode DEFAULT for EMU_CTRL */
Kojto 98:8ab26030e058 64 #define _EMU_CTRL_EMVREG_REDUCED 0x00000000UL /**< Mode REDUCED for EMU_CTRL */
Kojto 98:8ab26030e058 65 #define _EMU_CTRL_EMVREG_FULL 0x00000001UL /**< Mode FULL for EMU_CTRL */
Kojto 98:8ab26030e058 66 #define EMU_CTRL_EMVREG_DEFAULT (_EMU_CTRL_EMVREG_DEFAULT << 0) /**< Shifted mode DEFAULT for EMU_CTRL */
Kojto 98:8ab26030e058 67 #define EMU_CTRL_EMVREG_REDUCED (_EMU_CTRL_EMVREG_REDUCED << 0) /**< Shifted mode REDUCED for EMU_CTRL */
Kojto 98:8ab26030e058 68 #define EMU_CTRL_EMVREG_FULL (_EMU_CTRL_EMVREG_FULL << 0) /**< Shifted mode FULL for EMU_CTRL */
Kojto 98:8ab26030e058 69 #define EMU_CTRL_EM2BLOCK (0x1UL << 1) /**< Energy Mode 2 Block */
Kojto 98:8ab26030e058 70 #define _EMU_CTRL_EM2BLOCK_SHIFT 1 /**< Shift value for EMU_EM2BLOCK */
Kojto 98:8ab26030e058 71 #define _EMU_CTRL_EM2BLOCK_MASK 0x2UL /**< Bit mask for EMU_EM2BLOCK */
Kojto 98:8ab26030e058 72 #define _EMU_CTRL_EM2BLOCK_DEFAULT 0x00000000UL /**< Mode DEFAULT for EMU_CTRL */
Kojto 98:8ab26030e058 73 #define EMU_CTRL_EM2BLOCK_DEFAULT (_EMU_CTRL_EM2BLOCK_DEFAULT << 1) /**< Shifted mode DEFAULT for EMU_CTRL */
Kojto 98:8ab26030e058 74 #define _EMU_CTRL_EM4CTRL_SHIFT 2 /**< Shift value for EMU_EM4CTRL */
Kojto 98:8ab26030e058 75 #define _EMU_CTRL_EM4CTRL_MASK 0xCUL /**< Bit mask for EMU_EM4CTRL */
Kojto 98:8ab26030e058 76 #define _EMU_CTRL_EM4CTRL_DEFAULT 0x00000000UL /**< Mode DEFAULT for EMU_CTRL */
Kojto 98:8ab26030e058 77 #define EMU_CTRL_EM4CTRL_DEFAULT (_EMU_CTRL_EM4CTRL_DEFAULT << 2) /**< Shifted mode DEFAULT for EMU_CTRL */
Kojto 98:8ab26030e058 78
Kojto 98:8ab26030e058 79 /* Bit fields for EMU LOCK */
Kojto 98:8ab26030e058 80 #define _EMU_LOCK_RESETVALUE 0x00000000UL /**< Default value for EMU_LOCK */
Kojto 98:8ab26030e058 81 #define _EMU_LOCK_MASK 0x0000FFFFUL /**< Mask for EMU_LOCK */
Kojto 98:8ab26030e058 82 #define _EMU_LOCK_LOCKKEY_SHIFT 0 /**< Shift value for EMU_LOCKKEY */
Kojto 98:8ab26030e058 83 #define _EMU_LOCK_LOCKKEY_MASK 0xFFFFUL /**< Bit mask for EMU_LOCKKEY */
Kojto 98:8ab26030e058 84 #define _EMU_LOCK_LOCKKEY_DEFAULT 0x00000000UL /**< Mode DEFAULT for EMU_LOCK */
Kojto 98:8ab26030e058 85 #define _EMU_LOCK_LOCKKEY_LOCK 0x00000000UL /**< Mode LOCK for EMU_LOCK */
Kojto 98:8ab26030e058 86 #define _EMU_LOCK_LOCKKEY_UNLOCKED 0x00000000UL /**< Mode UNLOCKED for EMU_LOCK */
Kojto 98:8ab26030e058 87 #define _EMU_LOCK_LOCKKEY_LOCKED 0x00000001UL /**< Mode LOCKED for EMU_LOCK */
Kojto 98:8ab26030e058 88 #define _EMU_LOCK_LOCKKEY_UNLOCK 0x0000ADE8UL /**< Mode UNLOCK for EMU_LOCK */
Kojto 98:8ab26030e058 89 #define EMU_LOCK_LOCKKEY_DEFAULT (_EMU_LOCK_LOCKKEY_DEFAULT << 0) /**< Shifted mode DEFAULT for EMU_LOCK */
Kojto 98:8ab26030e058 90 #define EMU_LOCK_LOCKKEY_LOCK (_EMU_LOCK_LOCKKEY_LOCK << 0) /**< Shifted mode LOCK for EMU_LOCK */
Kojto 98:8ab26030e058 91 #define EMU_LOCK_LOCKKEY_UNLOCKED (_EMU_LOCK_LOCKKEY_UNLOCKED << 0) /**< Shifted mode UNLOCKED for EMU_LOCK */
Kojto 98:8ab26030e058 92 #define EMU_LOCK_LOCKKEY_LOCKED (_EMU_LOCK_LOCKKEY_LOCKED << 0) /**< Shifted mode LOCKED for EMU_LOCK */
Kojto 98:8ab26030e058 93 #define EMU_LOCK_LOCKKEY_UNLOCK (_EMU_LOCK_LOCKKEY_UNLOCK << 0) /**< Shifted mode UNLOCK for EMU_LOCK */
Kojto 98:8ab26030e058 94
Kojto 98:8ab26030e058 95 /* Bit fields for EMU AUXCTRL */
Kojto 98:8ab26030e058 96 #define _EMU_AUXCTRL_RESETVALUE 0x00000000UL /**< Default value for EMU_AUXCTRL */
Kojto 98:8ab26030e058 97 #define _EMU_AUXCTRL_MASK 0x00000001UL /**< Mask for EMU_AUXCTRL */
Kojto 98:8ab26030e058 98 #define EMU_AUXCTRL_HRCCLR (0x1UL << 0) /**< Hard Reset Cause Clear */
Kojto 98:8ab26030e058 99 #define _EMU_AUXCTRL_HRCCLR_SHIFT 0 /**< Shift value for EMU_HRCCLR */
Kojto 98:8ab26030e058 100 #define _EMU_AUXCTRL_HRCCLR_MASK 0x1UL /**< Bit mask for EMU_HRCCLR */
Kojto 98:8ab26030e058 101 #define _EMU_AUXCTRL_HRCCLR_DEFAULT 0x00000000UL /**< Mode DEFAULT for EMU_AUXCTRL */
Kojto 98:8ab26030e058 102 #define EMU_AUXCTRL_HRCCLR_DEFAULT (_EMU_AUXCTRL_HRCCLR_DEFAULT << 0) /**< Shifted mode DEFAULT for EMU_AUXCTRL */
Kojto 98:8ab26030e058 103
Kojto 98:8ab26030e058 104 /** @} End of group EFM32ZG_EMU */
Kojto 113:f141b2784e32 105 /** @} End of group Parts */
Kojto 98:8ab26030e058 106