Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-dev by
targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG/device/efm32hg_emu.h@150:02e0a0aed4ec, 2016-11-08 (annotated)
- Committer:
- <>
- Date:
- Tue Nov 08 17:45:16 2016 +0000
- Revision:
- 150:02e0a0aed4ec
This updates the lib to the mbed lib v129
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
<> | 150:02e0a0aed4ec | 1 | /**************************************************************************//** |
<> | 150:02e0a0aed4ec | 2 | * @file efm32hg_emu.h |
<> | 150:02e0a0aed4ec | 3 | * @brief EFM32HG_EMU register and bit field definitions |
<> | 150:02e0a0aed4ec | 4 | * @version 5.0.0 |
<> | 150:02e0a0aed4ec | 5 | ****************************************************************************** |
<> | 150:02e0a0aed4ec | 6 | * @section License |
<> | 150:02e0a0aed4ec | 7 | * <b>Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com</b> |
<> | 150:02e0a0aed4ec | 8 | ****************************************************************************** |
<> | 150:02e0a0aed4ec | 9 | * |
<> | 150:02e0a0aed4ec | 10 | * Permission is granted to anyone to use this software for any purpose, |
<> | 150:02e0a0aed4ec | 11 | * including commercial applications, and to alter it and redistribute it |
<> | 150:02e0a0aed4ec | 12 | * freely, subject to the following restrictions: |
<> | 150:02e0a0aed4ec | 13 | * |
<> | 150:02e0a0aed4ec | 14 | * 1. The origin of this software must not be misrepresented; you must not |
<> | 150:02e0a0aed4ec | 15 | * claim that you wrote the original software.@n |
<> | 150:02e0a0aed4ec | 16 | * 2. Altered source versions must be plainly marked as such, and must not be |
<> | 150:02e0a0aed4ec | 17 | * misrepresented as being the original software.@n |
<> | 150:02e0a0aed4ec | 18 | * 3. This notice may not be removed or altered from any source distribution. |
<> | 150:02e0a0aed4ec | 19 | * |
<> | 150:02e0a0aed4ec | 20 | * DISCLAIMER OF WARRANTY/LIMITATION OF REMEDIES: Silicon Laboratories, Inc. |
<> | 150:02e0a0aed4ec | 21 | * has no obligation to support this Software. Silicon Laboratories, Inc. is |
<> | 150:02e0a0aed4ec | 22 | * providing the Software "AS IS", with no express or implied warranties of any |
<> | 150:02e0a0aed4ec | 23 | * kind, including, but not limited to, any implied warranties of |
<> | 150:02e0a0aed4ec | 24 | * merchantability or fitness for any particular purpose or warranties against |
<> | 150:02e0a0aed4ec | 25 | * infringement of any proprietary rights of a third party. |
<> | 150:02e0a0aed4ec | 26 | * |
<> | 150:02e0a0aed4ec | 27 | * Silicon Laboratories, Inc. will not be liable for any consequential, |
<> | 150:02e0a0aed4ec | 28 | * incidental, or special damages, or any other relief, or for any claim by |
<> | 150:02e0a0aed4ec | 29 | * any third party, arising from your use of this Software. |
<> | 150:02e0a0aed4ec | 30 | * |
<> | 150:02e0a0aed4ec | 31 | *****************************************************************************/ |
<> | 150:02e0a0aed4ec | 32 | /**************************************************************************//** |
<> | 150:02e0a0aed4ec | 33 | * @addtogroup Parts |
<> | 150:02e0a0aed4ec | 34 | * @{ |
<> | 150:02e0a0aed4ec | 35 | ******************************************************************************/ |
<> | 150:02e0a0aed4ec | 36 | /**************************************************************************//** |
<> | 150:02e0a0aed4ec | 37 | * @defgroup EFM32HG_EMU |
<> | 150:02e0a0aed4ec | 38 | * @{ |
<> | 150:02e0a0aed4ec | 39 | * @brief EFM32HG_EMU Register Declaration |
<> | 150:02e0a0aed4ec | 40 | *****************************************************************************/ |
<> | 150:02e0a0aed4ec | 41 | typedef struct |
<> | 150:02e0a0aed4ec | 42 | { |
<> | 150:02e0a0aed4ec | 43 | __IOM uint32_t CTRL; /**< Control Register */ |
<> | 150:02e0a0aed4ec | 44 | |
<> | 150:02e0a0aed4ec | 45 | uint32_t RESERVED0[1]; /**< Reserved for future use **/ |
<> | 150:02e0a0aed4ec | 46 | __IOM uint32_t LOCK; /**< Configuration Lock Register */ |
<> | 150:02e0a0aed4ec | 47 | |
<> | 150:02e0a0aed4ec | 48 | uint32_t RESERVED1[6]; /**< Reserved for future use **/ |
<> | 150:02e0a0aed4ec | 49 | __IOM uint32_t AUXCTRL; /**< Auxiliary Control Register */ |
<> | 150:02e0a0aed4ec | 50 | } EMU_TypeDef; /** @} */ |
<> | 150:02e0a0aed4ec | 51 | |
<> | 150:02e0a0aed4ec | 52 | /**************************************************************************//** |
<> | 150:02e0a0aed4ec | 53 | * @defgroup EFM32HG_EMU_BitFields |
<> | 150:02e0a0aed4ec | 54 | * @{ |
<> | 150:02e0a0aed4ec | 55 | *****************************************************************************/ |
<> | 150:02e0a0aed4ec | 56 | |
<> | 150:02e0a0aed4ec | 57 | /* Bit fields for EMU CTRL */ |
<> | 150:02e0a0aed4ec | 58 | #define _EMU_CTRL_RESETVALUE 0x00000000UL /**< Default value for EMU_CTRL */ |
<> | 150:02e0a0aed4ec | 59 | #define _EMU_CTRL_MASK 0x0000000FUL /**< Mask for EMU_CTRL */ |
<> | 150:02e0a0aed4ec | 60 | #define EMU_CTRL_EMVREG (0x1UL << 0) /**< Energy Mode Voltage Regulator Control */ |
<> | 150:02e0a0aed4ec | 61 | #define _EMU_CTRL_EMVREG_SHIFT 0 /**< Shift value for EMU_EMVREG */ |
<> | 150:02e0a0aed4ec | 62 | #define _EMU_CTRL_EMVREG_MASK 0x1UL /**< Bit mask for EMU_EMVREG */ |
<> | 150:02e0a0aed4ec | 63 | #define _EMU_CTRL_EMVREG_DEFAULT 0x00000000UL /**< Mode DEFAULT for EMU_CTRL */ |
<> | 150:02e0a0aed4ec | 64 | #define _EMU_CTRL_EMVREG_REDUCED 0x00000000UL /**< Mode REDUCED for EMU_CTRL */ |
<> | 150:02e0a0aed4ec | 65 | #define _EMU_CTRL_EMVREG_FULL 0x00000001UL /**< Mode FULL for EMU_CTRL */ |
<> | 150:02e0a0aed4ec | 66 | #define EMU_CTRL_EMVREG_DEFAULT (_EMU_CTRL_EMVREG_DEFAULT << 0) /**< Shifted mode DEFAULT for EMU_CTRL */ |
<> | 150:02e0a0aed4ec | 67 | #define EMU_CTRL_EMVREG_REDUCED (_EMU_CTRL_EMVREG_REDUCED << 0) /**< Shifted mode REDUCED for EMU_CTRL */ |
<> | 150:02e0a0aed4ec | 68 | #define EMU_CTRL_EMVREG_FULL (_EMU_CTRL_EMVREG_FULL << 0) /**< Shifted mode FULL for EMU_CTRL */ |
<> | 150:02e0a0aed4ec | 69 | #define EMU_CTRL_EM2BLOCK (0x1UL << 1) /**< Energy Mode 2 Block */ |
<> | 150:02e0a0aed4ec | 70 | #define _EMU_CTRL_EM2BLOCK_SHIFT 1 /**< Shift value for EMU_EM2BLOCK */ |
<> | 150:02e0a0aed4ec | 71 | #define _EMU_CTRL_EM2BLOCK_MASK 0x2UL /**< Bit mask for EMU_EM2BLOCK */ |
<> | 150:02e0a0aed4ec | 72 | #define _EMU_CTRL_EM2BLOCK_DEFAULT 0x00000000UL /**< Mode DEFAULT for EMU_CTRL */ |
<> | 150:02e0a0aed4ec | 73 | #define EMU_CTRL_EM2BLOCK_DEFAULT (_EMU_CTRL_EM2BLOCK_DEFAULT << 1) /**< Shifted mode DEFAULT for EMU_CTRL */ |
<> | 150:02e0a0aed4ec | 74 | #define _EMU_CTRL_EM4CTRL_SHIFT 2 /**< Shift value for EMU_EM4CTRL */ |
<> | 150:02e0a0aed4ec | 75 | #define _EMU_CTRL_EM4CTRL_MASK 0xCUL /**< Bit mask for EMU_EM4CTRL */ |
<> | 150:02e0a0aed4ec | 76 | #define _EMU_CTRL_EM4CTRL_DEFAULT 0x00000000UL /**< Mode DEFAULT for EMU_CTRL */ |
<> | 150:02e0a0aed4ec | 77 | #define EMU_CTRL_EM4CTRL_DEFAULT (_EMU_CTRL_EM4CTRL_DEFAULT << 2) /**< Shifted mode DEFAULT for EMU_CTRL */ |
<> | 150:02e0a0aed4ec | 78 | |
<> | 150:02e0a0aed4ec | 79 | /* Bit fields for EMU LOCK */ |
<> | 150:02e0a0aed4ec | 80 | #define _EMU_LOCK_RESETVALUE 0x00000000UL /**< Default value for EMU_LOCK */ |
<> | 150:02e0a0aed4ec | 81 | #define _EMU_LOCK_MASK 0x0000FFFFUL /**< Mask for EMU_LOCK */ |
<> | 150:02e0a0aed4ec | 82 | #define _EMU_LOCK_LOCKKEY_SHIFT 0 /**< Shift value for EMU_LOCKKEY */ |
<> | 150:02e0a0aed4ec | 83 | #define _EMU_LOCK_LOCKKEY_MASK 0xFFFFUL /**< Bit mask for EMU_LOCKKEY */ |
<> | 150:02e0a0aed4ec | 84 | #define _EMU_LOCK_LOCKKEY_DEFAULT 0x00000000UL /**< Mode DEFAULT for EMU_LOCK */ |
<> | 150:02e0a0aed4ec | 85 | #define _EMU_LOCK_LOCKKEY_LOCK 0x00000000UL /**< Mode LOCK for EMU_LOCK */ |
<> | 150:02e0a0aed4ec | 86 | #define _EMU_LOCK_LOCKKEY_UNLOCKED 0x00000000UL /**< Mode UNLOCKED for EMU_LOCK */ |
<> | 150:02e0a0aed4ec | 87 | #define _EMU_LOCK_LOCKKEY_LOCKED 0x00000001UL /**< Mode LOCKED for EMU_LOCK */ |
<> | 150:02e0a0aed4ec | 88 | #define _EMU_LOCK_LOCKKEY_UNLOCK 0x0000ADE8UL /**< Mode UNLOCK for EMU_LOCK */ |
<> | 150:02e0a0aed4ec | 89 | #define EMU_LOCK_LOCKKEY_DEFAULT (_EMU_LOCK_LOCKKEY_DEFAULT << 0) /**< Shifted mode DEFAULT for EMU_LOCK */ |
<> | 150:02e0a0aed4ec | 90 | #define EMU_LOCK_LOCKKEY_LOCK (_EMU_LOCK_LOCKKEY_LOCK << 0) /**< Shifted mode LOCK for EMU_LOCK */ |
<> | 150:02e0a0aed4ec | 91 | #define EMU_LOCK_LOCKKEY_UNLOCKED (_EMU_LOCK_LOCKKEY_UNLOCKED << 0) /**< Shifted mode UNLOCKED for EMU_LOCK */ |
<> | 150:02e0a0aed4ec | 92 | #define EMU_LOCK_LOCKKEY_LOCKED (_EMU_LOCK_LOCKKEY_LOCKED << 0) /**< Shifted mode LOCKED for EMU_LOCK */ |
<> | 150:02e0a0aed4ec | 93 | #define EMU_LOCK_LOCKKEY_UNLOCK (_EMU_LOCK_LOCKKEY_UNLOCK << 0) /**< Shifted mode UNLOCK for EMU_LOCK */ |
<> | 150:02e0a0aed4ec | 94 | |
<> | 150:02e0a0aed4ec | 95 | /* Bit fields for EMU AUXCTRL */ |
<> | 150:02e0a0aed4ec | 96 | #define _EMU_AUXCTRL_RESETVALUE 0x00000000UL /**< Default value for EMU_AUXCTRL */ |
<> | 150:02e0a0aed4ec | 97 | #define _EMU_AUXCTRL_MASK 0x00000001UL /**< Mask for EMU_AUXCTRL */ |
<> | 150:02e0a0aed4ec | 98 | #define EMU_AUXCTRL_HRCCLR (0x1UL << 0) /**< Hard Reset Cause Clear */ |
<> | 150:02e0a0aed4ec | 99 | #define _EMU_AUXCTRL_HRCCLR_SHIFT 0 /**< Shift value for EMU_HRCCLR */ |
<> | 150:02e0a0aed4ec | 100 | #define _EMU_AUXCTRL_HRCCLR_MASK 0x1UL /**< Bit mask for EMU_HRCCLR */ |
<> | 150:02e0a0aed4ec | 101 | #define _EMU_AUXCTRL_HRCCLR_DEFAULT 0x00000000UL /**< Mode DEFAULT for EMU_AUXCTRL */ |
<> | 150:02e0a0aed4ec | 102 | #define EMU_AUXCTRL_HRCCLR_DEFAULT (_EMU_AUXCTRL_HRCCLR_DEFAULT << 0) /**< Shifted mode DEFAULT for EMU_AUXCTRL */ |
<> | 150:02e0a0aed4ec | 103 | |
<> | 150:02e0a0aed4ec | 104 | /** @} End of group EFM32HG_EMU */ |
<> | 150:02e0a0aed4ec | 105 | /** @} End of group Parts */ |
<> | 150:02e0a0aed4ec | 106 |