The official mbed C/C SDK provides the software platform and libraries to build your applications.

Fork of mbed by mbed official

Committer:
Kojto
Date:
Wed Apr 29 10:16:23 2015 +0100
Revision:
98:8ab26030e058
Release 98 of the mbed library

Changes:
- Silabs new targets (Giant, Zero, Happy, Leopard, Wonder Geckos)
- Asynchronous SPI, I2C, Serial
- LowPower classes
- Nordic - nordic SDK v8.0 update
- Teensy - gcc arm fix for startup
- Nucleo F411 - usb freq fix

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 98:8ab26030e058 1 /**************************************************************************//**
Kojto 98:8ab26030e058 2 * @file efm32lg_vcmp.h
Kojto 98:8ab26030e058 3 * @brief EFM32LG_VCMP register and bit field definitions
Kojto 98:8ab26030e058 4 * @version 3.20.6
Kojto 98:8ab26030e058 5 ******************************************************************************
Kojto 98:8ab26030e058 6 * @section License
Kojto 98:8ab26030e058 7 * <b>(C) Copyright 2014 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 98:8ab26030e058 33 * @defgroup EFM32LG_VCMP
Kojto 98:8ab26030e058 34 * @{
Kojto 98:8ab26030e058 35 * @brief EFM32LG_VCMP Register Declaration
Kojto 98:8ab26030e058 36 *****************************************************************************/
Kojto 98:8ab26030e058 37 typedef struct
Kojto 98:8ab26030e058 38 {
Kojto 98:8ab26030e058 39 __IO uint32_t CTRL; /**< Control Register */
Kojto 98:8ab26030e058 40 __IO uint32_t INPUTSEL; /**< Input Selection Register */
Kojto 98:8ab26030e058 41 __I uint32_t STATUS; /**< Status Register */
Kojto 98:8ab26030e058 42 __IO uint32_t IEN; /**< Interrupt Enable Register */
Kojto 98:8ab26030e058 43 __I uint32_t IF; /**< Interrupt Flag Register */
Kojto 98:8ab26030e058 44 __IO uint32_t IFS; /**< Interrupt Flag Set Register */
Kojto 98:8ab26030e058 45 __IO uint32_t IFC; /**< Interrupt Flag Clear Register */
Kojto 98:8ab26030e058 46 } VCMP_TypeDef; /** @} */
Kojto 98:8ab26030e058 47
Kojto 98:8ab26030e058 48 /**************************************************************************//**
Kojto 98:8ab26030e058 49 * @defgroup EFM32LG_VCMP_BitFields
Kojto 98:8ab26030e058 50 * @{
Kojto 98:8ab26030e058 51 *****************************************************************************/
Kojto 98:8ab26030e058 52
Kojto 98:8ab26030e058 53 /* Bit fields for VCMP CTRL */
Kojto 98:8ab26030e058 54 #define _VCMP_CTRL_RESETVALUE 0x47000000UL /**< Default value for VCMP_CTRL */
Kojto 98:8ab26030e058 55 #define _VCMP_CTRL_MASK 0x4F030715UL /**< Mask for VCMP_CTRL */
Kojto 98:8ab26030e058 56 #define VCMP_CTRL_EN (0x1UL << 0) /**< Voltage Supply Comparator Enable */
Kojto 98:8ab26030e058 57 #define _VCMP_CTRL_EN_SHIFT 0 /**< Shift value for VCMP_EN */
Kojto 98:8ab26030e058 58 #define _VCMP_CTRL_EN_MASK 0x1UL /**< Bit mask for VCMP_EN */
Kojto 98:8ab26030e058 59 #define _VCMP_CTRL_EN_DEFAULT 0x00000000UL /**< Mode DEFAULT for VCMP_CTRL */
Kojto 98:8ab26030e058 60 #define VCMP_CTRL_EN_DEFAULT (_VCMP_CTRL_EN_DEFAULT << 0) /**< Shifted mode DEFAULT for VCMP_CTRL */
Kojto 98:8ab26030e058 61 #define VCMP_CTRL_INACTVAL (0x1UL << 2) /**< Inactive Value */
Kojto 98:8ab26030e058 62 #define _VCMP_CTRL_INACTVAL_SHIFT 2 /**< Shift value for VCMP_INACTVAL */
Kojto 98:8ab26030e058 63 #define _VCMP_CTRL_INACTVAL_MASK 0x4UL /**< Bit mask for VCMP_INACTVAL */
Kojto 98:8ab26030e058 64 #define _VCMP_CTRL_INACTVAL_DEFAULT 0x00000000UL /**< Mode DEFAULT for VCMP_CTRL */
Kojto 98:8ab26030e058 65 #define VCMP_CTRL_INACTVAL_DEFAULT (_VCMP_CTRL_INACTVAL_DEFAULT << 2) /**< Shifted mode DEFAULT for VCMP_CTRL */
Kojto 98:8ab26030e058 66 #define VCMP_CTRL_HYSTEN (0x1UL << 4) /**< Hysteresis Enable */
Kojto 98:8ab26030e058 67 #define _VCMP_CTRL_HYSTEN_SHIFT 4 /**< Shift value for VCMP_HYSTEN */
Kojto 98:8ab26030e058 68 #define _VCMP_CTRL_HYSTEN_MASK 0x10UL /**< Bit mask for VCMP_HYSTEN */
Kojto 98:8ab26030e058 69 #define _VCMP_CTRL_HYSTEN_DEFAULT 0x00000000UL /**< Mode DEFAULT for VCMP_CTRL */
Kojto 98:8ab26030e058 70 #define VCMP_CTRL_HYSTEN_DEFAULT (_VCMP_CTRL_HYSTEN_DEFAULT << 4) /**< Shifted mode DEFAULT for VCMP_CTRL */
Kojto 98:8ab26030e058 71 #define _VCMP_CTRL_WARMTIME_SHIFT 8 /**< Shift value for VCMP_WARMTIME */
Kojto 98:8ab26030e058 72 #define _VCMP_CTRL_WARMTIME_MASK 0x700UL /**< Bit mask for VCMP_WARMTIME */
Kojto 98:8ab26030e058 73 #define _VCMP_CTRL_WARMTIME_DEFAULT 0x00000000UL /**< Mode DEFAULT for VCMP_CTRL */
Kojto 98:8ab26030e058 74 #define _VCMP_CTRL_WARMTIME_4CYCLES 0x00000000UL /**< Mode 4CYCLES for VCMP_CTRL */
Kojto 98:8ab26030e058 75 #define _VCMP_CTRL_WARMTIME_8CYCLES 0x00000001UL /**< Mode 8CYCLES for VCMP_CTRL */
Kojto 98:8ab26030e058 76 #define _VCMP_CTRL_WARMTIME_16CYCLES 0x00000002UL /**< Mode 16CYCLES for VCMP_CTRL */
Kojto 98:8ab26030e058 77 #define _VCMP_CTRL_WARMTIME_32CYCLES 0x00000003UL /**< Mode 32CYCLES for VCMP_CTRL */
Kojto 98:8ab26030e058 78 #define _VCMP_CTRL_WARMTIME_64CYCLES 0x00000004UL /**< Mode 64CYCLES for VCMP_CTRL */
Kojto 98:8ab26030e058 79 #define _VCMP_CTRL_WARMTIME_128CYCLES 0x00000005UL /**< Mode 128CYCLES for VCMP_CTRL */
Kojto 98:8ab26030e058 80 #define _VCMP_CTRL_WARMTIME_256CYCLES 0x00000006UL /**< Mode 256CYCLES for VCMP_CTRL */
Kojto 98:8ab26030e058 81 #define _VCMP_CTRL_WARMTIME_512CYCLES 0x00000007UL /**< Mode 512CYCLES for VCMP_CTRL */
Kojto 98:8ab26030e058 82 #define VCMP_CTRL_WARMTIME_DEFAULT (_VCMP_CTRL_WARMTIME_DEFAULT << 8) /**< Shifted mode DEFAULT for VCMP_CTRL */
Kojto 98:8ab26030e058 83 #define VCMP_CTRL_WARMTIME_4CYCLES (_VCMP_CTRL_WARMTIME_4CYCLES << 8) /**< Shifted mode 4CYCLES for VCMP_CTRL */
Kojto 98:8ab26030e058 84 #define VCMP_CTRL_WARMTIME_8CYCLES (_VCMP_CTRL_WARMTIME_8CYCLES << 8) /**< Shifted mode 8CYCLES for VCMP_CTRL */
Kojto 98:8ab26030e058 85 #define VCMP_CTRL_WARMTIME_16CYCLES (_VCMP_CTRL_WARMTIME_16CYCLES << 8) /**< Shifted mode 16CYCLES for VCMP_CTRL */
Kojto 98:8ab26030e058 86 #define VCMP_CTRL_WARMTIME_32CYCLES (_VCMP_CTRL_WARMTIME_32CYCLES << 8) /**< Shifted mode 32CYCLES for VCMP_CTRL */
Kojto 98:8ab26030e058 87 #define VCMP_CTRL_WARMTIME_64CYCLES (_VCMP_CTRL_WARMTIME_64CYCLES << 8) /**< Shifted mode 64CYCLES for VCMP_CTRL */
Kojto 98:8ab26030e058 88 #define VCMP_CTRL_WARMTIME_128CYCLES (_VCMP_CTRL_WARMTIME_128CYCLES << 8) /**< Shifted mode 128CYCLES for VCMP_CTRL */
Kojto 98:8ab26030e058 89 #define VCMP_CTRL_WARMTIME_256CYCLES (_VCMP_CTRL_WARMTIME_256CYCLES << 8) /**< Shifted mode 256CYCLES for VCMP_CTRL */
Kojto 98:8ab26030e058 90 #define VCMP_CTRL_WARMTIME_512CYCLES (_VCMP_CTRL_WARMTIME_512CYCLES << 8) /**< Shifted mode 512CYCLES for VCMP_CTRL */
Kojto 98:8ab26030e058 91 #define VCMP_CTRL_IRISE (0x1UL << 16) /**< Rising Edge Interrupt Sense */
Kojto 98:8ab26030e058 92 #define _VCMP_CTRL_IRISE_SHIFT 16 /**< Shift value for VCMP_IRISE */
Kojto 98:8ab26030e058 93 #define _VCMP_CTRL_IRISE_MASK 0x10000UL /**< Bit mask for VCMP_IRISE */
Kojto 98:8ab26030e058 94 #define _VCMP_CTRL_IRISE_DEFAULT 0x00000000UL /**< Mode DEFAULT for VCMP_CTRL */
Kojto 98:8ab26030e058 95 #define VCMP_CTRL_IRISE_DEFAULT (_VCMP_CTRL_IRISE_DEFAULT << 16) /**< Shifted mode DEFAULT for VCMP_CTRL */
Kojto 98:8ab26030e058 96 #define VCMP_CTRL_IFALL (0x1UL << 17) /**< Falling Edge Interrupt Sense */
Kojto 98:8ab26030e058 97 #define _VCMP_CTRL_IFALL_SHIFT 17 /**< Shift value for VCMP_IFALL */
Kojto 98:8ab26030e058 98 #define _VCMP_CTRL_IFALL_MASK 0x20000UL /**< Bit mask for VCMP_IFALL */
Kojto 98:8ab26030e058 99 #define _VCMP_CTRL_IFALL_DEFAULT 0x00000000UL /**< Mode DEFAULT for VCMP_CTRL */
Kojto 98:8ab26030e058 100 #define VCMP_CTRL_IFALL_DEFAULT (_VCMP_CTRL_IFALL_DEFAULT << 17) /**< Shifted mode DEFAULT for VCMP_CTRL */
Kojto 98:8ab26030e058 101 #define _VCMP_CTRL_BIASPROG_SHIFT 24 /**< Shift value for VCMP_BIASPROG */
Kojto 98:8ab26030e058 102 #define _VCMP_CTRL_BIASPROG_MASK 0xF000000UL /**< Bit mask for VCMP_BIASPROG */
Kojto 98:8ab26030e058 103 #define _VCMP_CTRL_BIASPROG_DEFAULT 0x00000007UL /**< Mode DEFAULT for VCMP_CTRL */
Kojto 98:8ab26030e058 104 #define VCMP_CTRL_BIASPROG_DEFAULT (_VCMP_CTRL_BIASPROG_DEFAULT << 24) /**< Shifted mode DEFAULT for VCMP_CTRL */
Kojto 98:8ab26030e058 105 #define VCMP_CTRL_HALFBIAS (0x1UL << 30) /**< Half Bias Current */
Kojto 98:8ab26030e058 106 #define _VCMP_CTRL_HALFBIAS_SHIFT 30 /**< Shift value for VCMP_HALFBIAS */
Kojto 98:8ab26030e058 107 #define _VCMP_CTRL_HALFBIAS_MASK 0x40000000UL /**< Bit mask for VCMP_HALFBIAS */
Kojto 98:8ab26030e058 108 #define _VCMP_CTRL_HALFBIAS_DEFAULT 0x00000001UL /**< Mode DEFAULT for VCMP_CTRL */
Kojto 98:8ab26030e058 109 #define VCMP_CTRL_HALFBIAS_DEFAULT (_VCMP_CTRL_HALFBIAS_DEFAULT << 30) /**< Shifted mode DEFAULT for VCMP_CTRL */
Kojto 98:8ab26030e058 110
Kojto 98:8ab26030e058 111 /* Bit fields for VCMP INPUTSEL */
Kojto 98:8ab26030e058 112 #define _VCMP_INPUTSEL_RESETVALUE 0x00000000UL /**< Default value for VCMP_INPUTSEL */
Kojto 98:8ab26030e058 113 #define _VCMP_INPUTSEL_MASK 0x0000013FUL /**< Mask for VCMP_INPUTSEL */
Kojto 98:8ab26030e058 114 #define _VCMP_INPUTSEL_TRIGLEVEL_SHIFT 0 /**< Shift value for VCMP_TRIGLEVEL */
Kojto 98:8ab26030e058 115 #define _VCMP_INPUTSEL_TRIGLEVEL_MASK 0x3FUL /**< Bit mask for VCMP_TRIGLEVEL */
Kojto 98:8ab26030e058 116 #define _VCMP_INPUTSEL_TRIGLEVEL_DEFAULT 0x00000000UL /**< Mode DEFAULT for VCMP_INPUTSEL */
Kojto 98:8ab26030e058 117 #define VCMP_INPUTSEL_TRIGLEVEL_DEFAULT (_VCMP_INPUTSEL_TRIGLEVEL_DEFAULT << 0) /**< Shifted mode DEFAULT for VCMP_INPUTSEL */
Kojto 98:8ab26030e058 118 #define VCMP_INPUTSEL_LPREF (0x1UL << 8) /**< Low Power Reference */
Kojto 98:8ab26030e058 119 #define _VCMP_INPUTSEL_LPREF_SHIFT 8 /**< Shift value for VCMP_LPREF */
Kojto 98:8ab26030e058 120 #define _VCMP_INPUTSEL_LPREF_MASK 0x100UL /**< Bit mask for VCMP_LPREF */
Kojto 98:8ab26030e058 121 #define _VCMP_INPUTSEL_LPREF_DEFAULT 0x00000000UL /**< Mode DEFAULT for VCMP_INPUTSEL */
Kojto 98:8ab26030e058 122 #define VCMP_INPUTSEL_LPREF_DEFAULT (_VCMP_INPUTSEL_LPREF_DEFAULT << 8) /**< Shifted mode DEFAULT for VCMP_INPUTSEL */
Kojto 98:8ab26030e058 123
Kojto 98:8ab26030e058 124 /* Bit fields for VCMP STATUS */
Kojto 98:8ab26030e058 125 #define _VCMP_STATUS_RESETVALUE 0x00000000UL /**< Default value for VCMP_STATUS */
Kojto 98:8ab26030e058 126 #define _VCMP_STATUS_MASK 0x00000003UL /**< Mask for VCMP_STATUS */
Kojto 98:8ab26030e058 127 #define VCMP_STATUS_VCMPACT (0x1UL << 0) /**< Voltage Supply Comparator Active */
Kojto 98:8ab26030e058 128 #define _VCMP_STATUS_VCMPACT_SHIFT 0 /**< Shift value for VCMP_VCMPACT */
Kojto 98:8ab26030e058 129 #define _VCMP_STATUS_VCMPACT_MASK 0x1UL /**< Bit mask for VCMP_VCMPACT */
Kojto 98:8ab26030e058 130 #define _VCMP_STATUS_VCMPACT_DEFAULT 0x00000000UL /**< Mode DEFAULT for VCMP_STATUS */
Kojto 98:8ab26030e058 131 #define VCMP_STATUS_VCMPACT_DEFAULT (_VCMP_STATUS_VCMPACT_DEFAULT << 0) /**< Shifted mode DEFAULT for VCMP_STATUS */
Kojto 98:8ab26030e058 132 #define VCMP_STATUS_VCMPOUT (0x1UL << 1) /**< Voltage Supply Comparator Output */
Kojto 98:8ab26030e058 133 #define _VCMP_STATUS_VCMPOUT_SHIFT 1 /**< Shift value for VCMP_VCMPOUT */
Kojto 98:8ab26030e058 134 #define _VCMP_STATUS_VCMPOUT_MASK 0x2UL /**< Bit mask for VCMP_VCMPOUT */
Kojto 98:8ab26030e058 135 #define _VCMP_STATUS_VCMPOUT_DEFAULT 0x00000000UL /**< Mode DEFAULT for VCMP_STATUS */
Kojto 98:8ab26030e058 136 #define VCMP_STATUS_VCMPOUT_DEFAULT (_VCMP_STATUS_VCMPOUT_DEFAULT << 1) /**< Shifted mode DEFAULT for VCMP_STATUS */
Kojto 98:8ab26030e058 137
Kojto 98:8ab26030e058 138 /* Bit fields for VCMP IEN */
Kojto 98:8ab26030e058 139 #define _VCMP_IEN_RESETVALUE 0x00000000UL /**< Default value for VCMP_IEN */
Kojto 98:8ab26030e058 140 #define _VCMP_IEN_MASK 0x00000003UL /**< Mask for VCMP_IEN */
Kojto 98:8ab26030e058 141 #define VCMP_IEN_EDGE (0x1UL << 0) /**< Edge Trigger Interrupt Enable */
Kojto 98:8ab26030e058 142 #define _VCMP_IEN_EDGE_SHIFT 0 /**< Shift value for VCMP_EDGE */
Kojto 98:8ab26030e058 143 #define _VCMP_IEN_EDGE_MASK 0x1UL /**< Bit mask for VCMP_EDGE */
Kojto 98:8ab26030e058 144 #define _VCMP_IEN_EDGE_DEFAULT 0x00000000UL /**< Mode DEFAULT for VCMP_IEN */
Kojto 98:8ab26030e058 145 #define VCMP_IEN_EDGE_DEFAULT (_VCMP_IEN_EDGE_DEFAULT << 0) /**< Shifted mode DEFAULT for VCMP_IEN */
Kojto 98:8ab26030e058 146 #define VCMP_IEN_WARMUP (0x1UL << 1) /**< Warm-up Interrupt Enable */
Kojto 98:8ab26030e058 147 #define _VCMP_IEN_WARMUP_SHIFT 1 /**< Shift value for VCMP_WARMUP */
Kojto 98:8ab26030e058 148 #define _VCMP_IEN_WARMUP_MASK 0x2UL /**< Bit mask for VCMP_WARMUP */
Kojto 98:8ab26030e058 149 #define _VCMP_IEN_WARMUP_DEFAULT 0x00000000UL /**< Mode DEFAULT for VCMP_IEN */
Kojto 98:8ab26030e058 150 #define VCMP_IEN_WARMUP_DEFAULT (_VCMP_IEN_WARMUP_DEFAULT << 1) /**< Shifted mode DEFAULT for VCMP_IEN */
Kojto 98:8ab26030e058 151
Kojto 98:8ab26030e058 152 /* Bit fields for VCMP IF */
Kojto 98:8ab26030e058 153 #define _VCMP_IF_RESETVALUE 0x00000000UL /**< Default value for VCMP_IF */
Kojto 98:8ab26030e058 154 #define _VCMP_IF_MASK 0x00000003UL /**< Mask for VCMP_IF */
Kojto 98:8ab26030e058 155 #define VCMP_IF_EDGE (0x1UL << 0) /**< Edge Triggered Interrupt Flag */
Kojto 98:8ab26030e058 156 #define _VCMP_IF_EDGE_SHIFT 0 /**< Shift value for VCMP_EDGE */
Kojto 98:8ab26030e058 157 #define _VCMP_IF_EDGE_MASK 0x1UL /**< Bit mask for VCMP_EDGE */
Kojto 98:8ab26030e058 158 #define _VCMP_IF_EDGE_DEFAULT 0x00000000UL /**< Mode DEFAULT for VCMP_IF */
Kojto 98:8ab26030e058 159 #define VCMP_IF_EDGE_DEFAULT (_VCMP_IF_EDGE_DEFAULT << 0) /**< Shifted mode DEFAULT for VCMP_IF */
Kojto 98:8ab26030e058 160 #define VCMP_IF_WARMUP (0x1UL << 1) /**< Warm-up Interrupt Flag */
Kojto 98:8ab26030e058 161 #define _VCMP_IF_WARMUP_SHIFT 1 /**< Shift value for VCMP_WARMUP */
Kojto 98:8ab26030e058 162 #define _VCMP_IF_WARMUP_MASK 0x2UL /**< Bit mask for VCMP_WARMUP */
Kojto 98:8ab26030e058 163 #define _VCMP_IF_WARMUP_DEFAULT 0x00000000UL /**< Mode DEFAULT for VCMP_IF */
Kojto 98:8ab26030e058 164 #define VCMP_IF_WARMUP_DEFAULT (_VCMP_IF_WARMUP_DEFAULT << 1) /**< Shifted mode DEFAULT for VCMP_IF */
Kojto 98:8ab26030e058 165
Kojto 98:8ab26030e058 166 /* Bit fields for VCMP IFS */
Kojto 98:8ab26030e058 167 #define _VCMP_IFS_RESETVALUE 0x00000000UL /**< Default value for VCMP_IFS */
Kojto 98:8ab26030e058 168 #define _VCMP_IFS_MASK 0x00000003UL /**< Mask for VCMP_IFS */
Kojto 98:8ab26030e058 169 #define VCMP_IFS_EDGE (0x1UL << 0) /**< Edge Triggered Interrupt Flag Set */
Kojto 98:8ab26030e058 170 #define _VCMP_IFS_EDGE_SHIFT 0 /**< Shift value for VCMP_EDGE */
Kojto 98:8ab26030e058 171 #define _VCMP_IFS_EDGE_MASK 0x1UL /**< Bit mask for VCMP_EDGE */
Kojto 98:8ab26030e058 172 #define _VCMP_IFS_EDGE_DEFAULT 0x00000000UL /**< Mode DEFAULT for VCMP_IFS */
Kojto 98:8ab26030e058 173 #define VCMP_IFS_EDGE_DEFAULT (_VCMP_IFS_EDGE_DEFAULT << 0) /**< Shifted mode DEFAULT for VCMP_IFS */
Kojto 98:8ab26030e058 174 #define VCMP_IFS_WARMUP (0x1UL << 1) /**< Warm-up Interrupt Flag Set */
Kojto 98:8ab26030e058 175 #define _VCMP_IFS_WARMUP_SHIFT 1 /**< Shift value for VCMP_WARMUP */
Kojto 98:8ab26030e058 176 #define _VCMP_IFS_WARMUP_MASK 0x2UL /**< Bit mask for VCMP_WARMUP */
Kojto 98:8ab26030e058 177 #define _VCMP_IFS_WARMUP_DEFAULT 0x00000000UL /**< Mode DEFAULT for VCMP_IFS */
Kojto 98:8ab26030e058 178 #define VCMP_IFS_WARMUP_DEFAULT (_VCMP_IFS_WARMUP_DEFAULT << 1) /**< Shifted mode DEFAULT for VCMP_IFS */
Kojto 98:8ab26030e058 179
Kojto 98:8ab26030e058 180 /* Bit fields for VCMP IFC */
Kojto 98:8ab26030e058 181 #define _VCMP_IFC_RESETVALUE 0x00000000UL /**< Default value for VCMP_IFC */
Kojto 98:8ab26030e058 182 #define _VCMP_IFC_MASK 0x00000003UL /**< Mask for VCMP_IFC */
Kojto 98:8ab26030e058 183 #define VCMP_IFC_EDGE (0x1UL << 0) /**< Edge Triggered Interrupt Flag Clear */
Kojto 98:8ab26030e058 184 #define _VCMP_IFC_EDGE_SHIFT 0 /**< Shift value for VCMP_EDGE */
Kojto 98:8ab26030e058 185 #define _VCMP_IFC_EDGE_MASK 0x1UL /**< Bit mask for VCMP_EDGE */
Kojto 98:8ab26030e058 186 #define _VCMP_IFC_EDGE_DEFAULT 0x00000000UL /**< Mode DEFAULT for VCMP_IFC */
Kojto 98:8ab26030e058 187 #define VCMP_IFC_EDGE_DEFAULT (_VCMP_IFC_EDGE_DEFAULT << 0) /**< Shifted mode DEFAULT for VCMP_IFC */
Kojto 98:8ab26030e058 188 #define VCMP_IFC_WARMUP (0x1UL << 1) /**< Warm-up Interrupt Flag Clear */
Kojto 98:8ab26030e058 189 #define _VCMP_IFC_WARMUP_SHIFT 1 /**< Shift value for VCMP_WARMUP */
Kojto 98:8ab26030e058 190 #define _VCMP_IFC_WARMUP_MASK 0x2UL /**< Bit mask for VCMP_WARMUP */
Kojto 98:8ab26030e058 191 #define _VCMP_IFC_WARMUP_DEFAULT 0x00000000UL /**< Mode DEFAULT for VCMP_IFC */
Kojto 98:8ab26030e058 192 #define VCMP_IFC_WARMUP_DEFAULT (_VCMP_IFC_WARMUP_DEFAULT << 1) /**< Shifted mode DEFAULT for VCMP_IFC */
Kojto 98:8ab26030e058 193
Kojto 98:8ab26030e058 194 /** @} End of group EFM32LG_VCMP */
Kojto 98:8ab26030e058 195
Kojto 98:8ab26030e058 196