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
TARGET_EFM32ZG_STK3200/efm32zg_rtc.h@121:672067c3ada4, 2016-04-14 (annotated)
- Committer:
- elijahorr
- Date:
- Thu Apr 14 07:28:54 2016 +0000
- Revision:
- 121:672067c3ada4
- Parent:
- 113:f141b2784e32
.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kojto | 98:8ab26030e058 | 1 | /**************************************************************************//** |
Kojto | 98:8ab26030e058 | 2 | * @file efm32zg_rtc.h |
Kojto | 98:8ab26030e058 | 3 | * @brief EFM32ZG_RTC 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_RTC |
Kojto | 98:8ab26030e058 | 38 | * @{ |
Kojto | 98:8ab26030e058 | 39 | * @brief EFM32ZG_RTC 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 | __IO uint32_t CNT; /**< Counter Value Register */ |
Kojto | 98:8ab26030e058 | 45 | __IO uint32_t COMP0; /**< Compare Value Register 0 */ |
Kojto | 98:8ab26030e058 | 46 | __IO uint32_t COMP1; /**< Compare Value Register 1 */ |
Kojto | 98:8ab26030e058 | 47 | __I uint32_t IF; /**< Interrupt Flag Register */ |
Kojto | 98:8ab26030e058 | 48 | __IO uint32_t IFS; /**< Interrupt Flag Set Register */ |
Kojto | 98:8ab26030e058 | 49 | __IO uint32_t IFC; /**< Interrupt Flag Clear Register */ |
Kojto | 98:8ab26030e058 | 50 | __IO uint32_t IEN; /**< Interrupt Enable Register */ |
Kojto | 98:8ab26030e058 | 51 | |
Kojto | 98:8ab26030e058 | 52 | __IO uint32_t FREEZE; /**< Freeze Register */ |
Kojto | 98:8ab26030e058 | 53 | __I uint32_t SYNCBUSY; /**< Synchronization Busy Register */ |
Kojto | 98:8ab26030e058 | 54 | } RTC_TypeDef; /** @} */ |
Kojto | 98:8ab26030e058 | 55 | |
Kojto | 98:8ab26030e058 | 56 | /**************************************************************************//** |
Kojto | 98:8ab26030e058 | 57 | * @defgroup EFM32ZG_RTC_BitFields |
Kojto | 98:8ab26030e058 | 58 | * @{ |
Kojto | 98:8ab26030e058 | 59 | *****************************************************************************/ |
Kojto | 98:8ab26030e058 | 60 | |
Kojto | 98:8ab26030e058 | 61 | /* Bit fields for RTC CTRL */ |
Kojto | 98:8ab26030e058 | 62 | #define _RTC_CTRL_RESETVALUE 0x00000000UL /**< Default value for RTC_CTRL */ |
Kojto | 98:8ab26030e058 | 63 | #define _RTC_CTRL_MASK 0x00000007UL /**< Mask for RTC_CTRL */ |
Kojto | 98:8ab26030e058 | 64 | #define RTC_CTRL_EN (0x1UL << 0) /**< RTC Enable */ |
Kojto | 98:8ab26030e058 | 65 | #define _RTC_CTRL_EN_SHIFT 0 /**< Shift value for RTC_EN */ |
Kojto | 98:8ab26030e058 | 66 | #define _RTC_CTRL_EN_MASK 0x1UL /**< Bit mask for RTC_EN */ |
Kojto | 98:8ab26030e058 | 67 | #define _RTC_CTRL_EN_DEFAULT 0x00000000UL /**< Mode DEFAULT for RTC_CTRL */ |
Kojto | 98:8ab26030e058 | 68 | #define RTC_CTRL_EN_DEFAULT (_RTC_CTRL_EN_DEFAULT << 0) /**< Shifted mode DEFAULT for RTC_CTRL */ |
Kojto | 98:8ab26030e058 | 69 | #define RTC_CTRL_DEBUGRUN (0x1UL << 1) /**< Debug Mode Run Enable */ |
Kojto | 98:8ab26030e058 | 70 | #define _RTC_CTRL_DEBUGRUN_SHIFT 1 /**< Shift value for RTC_DEBUGRUN */ |
Kojto | 98:8ab26030e058 | 71 | #define _RTC_CTRL_DEBUGRUN_MASK 0x2UL /**< Bit mask for RTC_DEBUGRUN */ |
Kojto | 98:8ab26030e058 | 72 | #define _RTC_CTRL_DEBUGRUN_DEFAULT 0x00000000UL /**< Mode DEFAULT for RTC_CTRL */ |
Kojto | 98:8ab26030e058 | 73 | #define RTC_CTRL_DEBUGRUN_DEFAULT (_RTC_CTRL_DEBUGRUN_DEFAULT << 1) /**< Shifted mode DEFAULT for RTC_CTRL */ |
Kojto | 98:8ab26030e058 | 74 | #define RTC_CTRL_COMP0TOP (0x1UL << 2) /**< Compare Channel 0 is Top Value */ |
Kojto | 98:8ab26030e058 | 75 | #define _RTC_CTRL_COMP0TOP_SHIFT 2 /**< Shift value for RTC_COMP0TOP */ |
Kojto | 98:8ab26030e058 | 76 | #define _RTC_CTRL_COMP0TOP_MASK 0x4UL /**< Bit mask for RTC_COMP0TOP */ |
Kojto | 98:8ab26030e058 | 77 | #define _RTC_CTRL_COMP0TOP_DEFAULT 0x00000000UL /**< Mode DEFAULT for RTC_CTRL */ |
Kojto | 98:8ab26030e058 | 78 | #define _RTC_CTRL_COMP0TOP_DISABLE 0x00000000UL /**< Mode DISABLE for RTC_CTRL */ |
Kojto | 98:8ab26030e058 | 79 | #define _RTC_CTRL_COMP0TOP_ENABLE 0x00000001UL /**< Mode ENABLE for RTC_CTRL */ |
Kojto | 98:8ab26030e058 | 80 | #define RTC_CTRL_COMP0TOP_DEFAULT (_RTC_CTRL_COMP0TOP_DEFAULT << 2) /**< Shifted mode DEFAULT for RTC_CTRL */ |
Kojto | 98:8ab26030e058 | 81 | #define RTC_CTRL_COMP0TOP_DISABLE (_RTC_CTRL_COMP0TOP_DISABLE << 2) /**< Shifted mode DISABLE for RTC_CTRL */ |
Kojto | 98:8ab26030e058 | 82 | #define RTC_CTRL_COMP0TOP_ENABLE (_RTC_CTRL_COMP0TOP_ENABLE << 2) /**< Shifted mode ENABLE for RTC_CTRL */ |
Kojto | 98:8ab26030e058 | 83 | |
Kojto | 98:8ab26030e058 | 84 | /* Bit fields for RTC CNT */ |
Kojto | 98:8ab26030e058 | 85 | #define _RTC_CNT_RESETVALUE 0x00000000UL /**< Default value for RTC_CNT */ |
Kojto | 98:8ab26030e058 | 86 | #define _RTC_CNT_MASK 0x00FFFFFFUL /**< Mask for RTC_CNT */ |
Kojto | 98:8ab26030e058 | 87 | #define _RTC_CNT_CNT_SHIFT 0 /**< Shift value for RTC_CNT */ |
Kojto | 98:8ab26030e058 | 88 | #define _RTC_CNT_CNT_MASK 0xFFFFFFUL /**< Bit mask for RTC_CNT */ |
Kojto | 98:8ab26030e058 | 89 | #define _RTC_CNT_CNT_DEFAULT 0x00000000UL /**< Mode DEFAULT for RTC_CNT */ |
Kojto | 98:8ab26030e058 | 90 | #define RTC_CNT_CNT_DEFAULT (_RTC_CNT_CNT_DEFAULT << 0) /**< Shifted mode DEFAULT for RTC_CNT */ |
Kojto | 98:8ab26030e058 | 91 | |
Kojto | 98:8ab26030e058 | 92 | /* Bit fields for RTC COMP0 */ |
Kojto | 98:8ab26030e058 | 93 | #define _RTC_COMP0_RESETVALUE 0x00000000UL /**< Default value for RTC_COMP0 */ |
Kojto | 98:8ab26030e058 | 94 | #define _RTC_COMP0_MASK 0x00FFFFFFUL /**< Mask for RTC_COMP0 */ |
Kojto | 98:8ab26030e058 | 95 | #define _RTC_COMP0_COMP0_SHIFT 0 /**< Shift value for RTC_COMP0 */ |
Kojto | 98:8ab26030e058 | 96 | #define _RTC_COMP0_COMP0_MASK 0xFFFFFFUL /**< Bit mask for RTC_COMP0 */ |
Kojto | 98:8ab26030e058 | 97 | #define _RTC_COMP0_COMP0_DEFAULT 0x00000000UL /**< Mode DEFAULT for RTC_COMP0 */ |
Kojto | 98:8ab26030e058 | 98 | #define RTC_COMP0_COMP0_DEFAULT (_RTC_COMP0_COMP0_DEFAULT << 0) /**< Shifted mode DEFAULT for RTC_COMP0 */ |
Kojto | 98:8ab26030e058 | 99 | |
Kojto | 98:8ab26030e058 | 100 | /* Bit fields for RTC COMP1 */ |
Kojto | 98:8ab26030e058 | 101 | #define _RTC_COMP1_RESETVALUE 0x00000000UL /**< Default value for RTC_COMP1 */ |
Kojto | 98:8ab26030e058 | 102 | #define _RTC_COMP1_MASK 0x00FFFFFFUL /**< Mask for RTC_COMP1 */ |
Kojto | 98:8ab26030e058 | 103 | #define _RTC_COMP1_COMP1_SHIFT 0 /**< Shift value for RTC_COMP1 */ |
Kojto | 98:8ab26030e058 | 104 | #define _RTC_COMP1_COMP1_MASK 0xFFFFFFUL /**< Bit mask for RTC_COMP1 */ |
Kojto | 98:8ab26030e058 | 105 | #define _RTC_COMP1_COMP1_DEFAULT 0x00000000UL /**< Mode DEFAULT for RTC_COMP1 */ |
Kojto | 98:8ab26030e058 | 106 | #define RTC_COMP1_COMP1_DEFAULT (_RTC_COMP1_COMP1_DEFAULT << 0) /**< Shifted mode DEFAULT for RTC_COMP1 */ |
Kojto | 98:8ab26030e058 | 107 | |
Kojto | 98:8ab26030e058 | 108 | /* Bit fields for RTC IF */ |
Kojto | 98:8ab26030e058 | 109 | #define _RTC_IF_RESETVALUE 0x00000000UL /**< Default value for RTC_IF */ |
Kojto | 98:8ab26030e058 | 110 | #define _RTC_IF_MASK 0x00000007UL /**< Mask for RTC_IF */ |
Kojto | 98:8ab26030e058 | 111 | #define RTC_IF_OF (0x1UL << 0) /**< Overflow Interrupt Flag */ |
Kojto | 98:8ab26030e058 | 112 | #define _RTC_IF_OF_SHIFT 0 /**< Shift value for RTC_OF */ |
Kojto | 98:8ab26030e058 | 113 | #define _RTC_IF_OF_MASK 0x1UL /**< Bit mask for RTC_OF */ |
Kojto | 98:8ab26030e058 | 114 | #define _RTC_IF_OF_DEFAULT 0x00000000UL /**< Mode DEFAULT for RTC_IF */ |
Kojto | 98:8ab26030e058 | 115 | #define RTC_IF_OF_DEFAULT (_RTC_IF_OF_DEFAULT << 0) /**< Shifted mode DEFAULT for RTC_IF */ |
Kojto | 98:8ab26030e058 | 116 | #define RTC_IF_COMP0 (0x1UL << 1) /**< Compare Match 0 Interrupt Flag */ |
Kojto | 98:8ab26030e058 | 117 | #define _RTC_IF_COMP0_SHIFT 1 /**< Shift value for RTC_COMP0 */ |
Kojto | 98:8ab26030e058 | 118 | #define _RTC_IF_COMP0_MASK 0x2UL /**< Bit mask for RTC_COMP0 */ |
Kojto | 98:8ab26030e058 | 119 | #define _RTC_IF_COMP0_DEFAULT 0x00000000UL /**< Mode DEFAULT for RTC_IF */ |
Kojto | 98:8ab26030e058 | 120 | #define RTC_IF_COMP0_DEFAULT (_RTC_IF_COMP0_DEFAULT << 1) /**< Shifted mode DEFAULT for RTC_IF */ |
Kojto | 98:8ab26030e058 | 121 | #define RTC_IF_COMP1 (0x1UL << 2) /**< Compare Match 1 Interrupt Flag */ |
Kojto | 98:8ab26030e058 | 122 | #define _RTC_IF_COMP1_SHIFT 2 /**< Shift value for RTC_COMP1 */ |
Kojto | 98:8ab26030e058 | 123 | #define _RTC_IF_COMP1_MASK 0x4UL /**< Bit mask for RTC_COMP1 */ |
Kojto | 98:8ab26030e058 | 124 | #define _RTC_IF_COMP1_DEFAULT 0x00000000UL /**< Mode DEFAULT for RTC_IF */ |
Kojto | 98:8ab26030e058 | 125 | #define RTC_IF_COMP1_DEFAULT (_RTC_IF_COMP1_DEFAULT << 2) /**< Shifted mode DEFAULT for RTC_IF */ |
Kojto | 98:8ab26030e058 | 126 | |
Kojto | 98:8ab26030e058 | 127 | /* Bit fields for RTC IFS */ |
Kojto | 98:8ab26030e058 | 128 | #define _RTC_IFS_RESETVALUE 0x00000000UL /**< Default value for RTC_IFS */ |
Kojto | 98:8ab26030e058 | 129 | #define _RTC_IFS_MASK 0x00000007UL /**< Mask for RTC_IFS */ |
Kojto | 98:8ab26030e058 | 130 | #define RTC_IFS_OF (0x1UL << 0) /**< Set Overflow Interrupt Flag */ |
Kojto | 98:8ab26030e058 | 131 | #define _RTC_IFS_OF_SHIFT 0 /**< Shift value for RTC_OF */ |
Kojto | 98:8ab26030e058 | 132 | #define _RTC_IFS_OF_MASK 0x1UL /**< Bit mask for RTC_OF */ |
Kojto | 98:8ab26030e058 | 133 | #define _RTC_IFS_OF_DEFAULT 0x00000000UL /**< Mode DEFAULT for RTC_IFS */ |
Kojto | 98:8ab26030e058 | 134 | #define RTC_IFS_OF_DEFAULT (_RTC_IFS_OF_DEFAULT << 0) /**< Shifted mode DEFAULT for RTC_IFS */ |
Kojto | 98:8ab26030e058 | 135 | #define RTC_IFS_COMP0 (0x1UL << 1) /**< Set Compare match 0 Interrupt Flag */ |
Kojto | 98:8ab26030e058 | 136 | #define _RTC_IFS_COMP0_SHIFT 1 /**< Shift value for RTC_COMP0 */ |
Kojto | 98:8ab26030e058 | 137 | #define _RTC_IFS_COMP0_MASK 0x2UL /**< Bit mask for RTC_COMP0 */ |
Kojto | 98:8ab26030e058 | 138 | #define _RTC_IFS_COMP0_DEFAULT 0x00000000UL /**< Mode DEFAULT for RTC_IFS */ |
Kojto | 98:8ab26030e058 | 139 | #define RTC_IFS_COMP0_DEFAULT (_RTC_IFS_COMP0_DEFAULT << 1) /**< Shifted mode DEFAULT for RTC_IFS */ |
Kojto | 98:8ab26030e058 | 140 | #define RTC_IFS_COMP1 (0x1UL << 2) /**< Set Compare match 1 Interrupt Flag */ |
Kojto | 98:8ab26030e058 | 141 | #define _RTC_IFS_COMP1_SHIFT 2 /**< Shift value for RTC_COMP1 */ |
Kojto | 98:8ab26030e058 | 142 | #define _RTC_IFS_COMP1_MASK 0x4UL /**< Bit mask for RTC_COMP1 */ |
Kojto | 98:8ab26030e058 | 143 | #define _RTC_IFS_COMP1_DEFAULT 0x00000000UL /**< Mode DEFAULT for RTC_IFS */ |
Kojto | 98:8ab26030e058 | 144 | #define RTC_IFS_COMP1_DEFAULT (_RTC_IFS_COMP1_DEFAULT << 2) /**< Shifted mode DEFAULT for RTC_IFS */ |
Kojto | 98:8ab26030e058 | 145 | |
Kojto | 98:8ab26030e058 | 146 | /* Bit fields for RTC IFC */ |
Kojto | 98:8ab26030e058 | 147 | #define _RTC_IFC_RESETVALUE 0x00000000UL /**< Default value for RTC_IFC */ |
Kojto | 98:8ab26030e058 | 148 | #define _RTC_IFC_MASK 0x00000007UL /**< Mask for RTC_IFC */ |
Kojto | 98:8ab26030e058 | 149 | #define RTC_IFC_OF (0x1UL << 0) /**< Clear Overflow Interrupt Flag */ |
Kojto | 98:8ab26030e058 | 150 | #define _RTC_IFC_OF_SHIFT 0 /**< Shift value for RTC_OF */ |
Kojto | 98:8ab26030e058 | 151 | #define _RTC_IFC_OF_MASK 0x1UL /**< Bit mask for RTC_OF */ |
Kojto | 98:8ab26030e058 | 152 | #define _RTC_IFC_OF_DEFAULT 0x00000000UL /**< Mode DEFAULT for RTC_IFC */ |
Kojto | 98:8ab26030e058 | 153 | #define RTC_IFC_OF_DEFAULT (_RTC_IFC_OF_DEFAULT << 0) /**< Shifted mode DEFAULT for RTC_IFC */ |
Kojto | 98:8ab26030e058 | 154 | #define RTC_IFC_COMP0 (0x1UL << 1) /**< Clear Compare match 0 Interrupt Flag */ |
Kojto | 98:8ab26030e058 | 155 | #define _RTC_IFC_COMP0_SHIFT 1 /**< Shift value for RTC_COMP0 */ |
Kojto | 98:8ab26030e058 | 156 | #define _RTC_IFC_COMP0_MASK 0x2UL /**< Bit mask for RTC_COMP0 */ |
Kojto | 98:8ab26030e058 | 157 | #define _RTC_IFC_COMP0_DEFAULT 0x00000000UL /**< Mode DEFAULT for RTC_IFC */ |
Kojto | 98:8ab26030e058 | 158 | #define RTC_IFC_COMP0_DEFAULT (_RTC_IFC_COMP0_DEFAULT << 1) /**< Shifted mode DEFAULT for RTC_IFC */ |
Kojto | 98:8ab26030e058 | 159 | #define RTC_IFC_COMP1 (0x1UL << 2) /**< Clear Compare match 1 Interrupt Flag */ |
Kojto | 98:8ab26030e058 | 160 | #define _RTC_IFC_COMP1_SHIFT 2 /**< Shift value for RTC_COMP1 */ |
Kojto | 98:8ab26030e058 | 161 | #define _RTC_IFC_COMP1_MASK 0x4UL /**< Bit mask for RTC_COMP1 */ |
Kojto | 98:8ab26030e058 | 162 | #define _RTC_IFC_COMP1_DEFAULT 0x00000000UL /**< Mode DEFAULT for RTC_IFC */ |
Kojto | 98:8ab26030e058 | 163 | #define RTC_IFC_COMP1_DEFAULT (_RTC_IFC_COMP1_DEFAULT << 2) /**< Shifted mode DEFAULT for RTC_IFC */ |
Kojto | 98:8ab26030e058 | 164 | |
Kojto | 98:8ab26030e058 | 165 | /* Bit fields for RTC IEN */ |
Kojto | 98:8ab26030e058 | 166 | #define _RTC_IEN_RESETVALUE 0x00000000UL /**< Default value for RTC_IEN */ |
Kojto | 98:8ab26030e058 | 167 | #define _RTC_IEN_MASK 0x00000007UL /**< Mask for RTC_IEN */ |
Kojto | 98:8ab26030e058 | 168 | #define RTC_IEN_OF (0x1UL << 0) /**< Overflow Interrupt Enable */ |
Kojto | 98:8ab26030e058 | 169 | #define _RTC_IEN_OF_SHIFT 0 /**< Shift value for RTC_OF */ |
Kojto | 98:8ab26030e058 | 170 | #define _RTC_IEN_OF_MASK 0x1UL /**< Bit mask for RTC_OF */ |
Kojto | 98:8ab26030e058 | 171 | #define _RTC_IEN_OF_DEFAULT 0x00000000UL /**< Mode DEFAULT for RTC_IEN */ |
Kojto | 98:8ab26030e058 | 172 | #define RTC_IEN_OF_DEFAULT (_RTC_IEN_OF_DEFAULT << 0) /**< Shifted mode DEFAULT for RTC_IEN */ |
Kojto | 98:8ab26030e058 | 173 | #define RTC_IEN_COMP0 (0x1UL << 1) /**< Compare Match 0 Interrupt Enable */ |
Kojto | 98:8ab26030e058 | 174 | #define _RTC_IEN_COMP0_SHIFT 1 /**< Shift value for RTC_COMP0 */ |
Kojto | 98:8ab26030e058 | 175 | #define _RTC_IEN_COMP0_MASK 0x2UL /**< Bit mask for RTC_COMP0 */ |
Kojto | 98:8ab26030e058 | 176 | #define _RTC_IEN_COMP0_DEFAULT 0x00000000UL /**< Mode DEFAULT for RTC_IEN */ |
Kojto | 98:8ab26030e058 | 177 | #define RTC_IEN_COMP0_DEFAULT (_RTC_IEN_COMP0_DEFAULT << 1) /**< Shifted mode DEFAULT for RTC_IEN */ |
Kojto | 98:8ab26030e058 | 178 | #define RTC_IEN_COMP1 (0x1UL << 2) /**< Compare Match 1 Interrupt Enable */ |
Kojto | 98:8ab26030e058 | 179 | #define _RTC_IEN_COMP1_SHIFT 2 /**< Shift value for RTC_COMP1 */ |
Kojto | 98:8ab26030e058 | 180 | #define _RTC_IEN_COMP1_MASK 0x4UL /**< Bit mask for RTC_COMP1 */ |
Kojto | 98:8ab26030e058 | 181 | #define _RTC_IEN_COMP1_DEFAULT 0x00000000UL /**< Mode DEFAULT for RTC_IEN */ |
Kojto | 98:8ab26030e058 | 182 | #define RTC_IEN_COMP1_DEFAULT (_RTC_IEN_COMP1_DEFAULT << 2) /**< Shifted mode DEFAULT for RTC_IEN */ |
Kojto | 98:8ab26030e058 | 183 | |
Kojto | 98:8ab26030e058 | 184 | /* Bit fields for RTC FREEZE */ |
Kojto | 98:8ab26030e058 | 185 | #define _RTC_FREEZE_RESETVALUE 0x00000000UL /**< Default value for RTC_FREEZE */ |
Kojto | 98:8ab26030e058 | 186 | #define _RTC_FREEZE_MASK 0x00000001UL /**< Mask for RTC_FREEZE */ |
Kojto | 98:8ab26030e058 | 187 | #define RTC_FREEZE_REGFREEZE (0x1UL << 0) /**< Register Update Freeze */ |
Kojto | 98:8ab26030e058 | 188 | #define _RTC_FREEZE_REGFREEZE_SHIFT 0 /**< Shift value for RTC_REGFREEZE */ |
Kojto | 98:8ab26030e058 | 189 | #define _RTC_FREEZE_REGFREEZE_MASK 0x1UL /**< Bit mask for RTC_REGFREEZE */ |
Kojto | 98:8ab26030e058 | 190 | #define _RTC_FREEZE_REGFREEZE_DEFAULT 0x00000000UL /**< Mode DEFAULT for RTC_FREEZE */ |
Kojto | 98:8ab26030e058 | 191 | #define _RTC_FREEZE_REGFREEZE_UPDATE 0x00000000UL /**< Mode UPDATE for RTC_FREEZE */ |
Kojto | 98:8ab26030e058 | 192 | #define _RTC_FREEZE_REGFREEZE_FREEZE 0x00000001UL /**< Mode FREEZE for RTC_FREEZE */ |
Kojto | 98:8ab26030e058 | 193 | #define RTC_FREEZE_REGFREEZE_DEFAULT (_RTC_FREEZE_REGFREEZE_DEFAULT << 0) /**< Shifted mode DEFAULT for RTC_FREEZE */ |
Kojto | 98:8ab26030e058 | 194 | #define RTC_FREEZE_REGFREEZE_UPDATE (_RTC_FREEZE_REGFREEZE_UPDATE << 0) /**< Shifted mode UPDATE for RTC_FREEZE */ |
Kojto | 98:8ab26030e058 | 195 | #define RTC_FREEZE_REGFREEZE_FREEZE (_RTC_FREEZE_REGFREEZE_FREEZE << 0) /**< Shifted mode FREEZE for RTC_FREEZE */ |
Kojto | 98:8ab26030e058 | 196 | |
Kojto | 98:8ab26030e058 | 197 | /* Bit fields for RTC SYNCBUSY */ |
Kojto | 98:8ab26030e058 | 198 | #define _RTC_SYNCBUSY_RESETVALUE 0x00000000UL /**< Default value for RTC_SYNCBUSY */ |
Kojto | 98:8ab26030e058 | 199 | #define _RTC_SYNCBUSY_MASK 0x00000007UL /**< Mask for RTC_SYNCBUSY */ |
Kojto | 98:8ab26030e058 | 200 | #define RTC_SYNCBUSY_CTRL (0x1UL << 0) /**< CTRL Register Busy */ |
Kojto | 98:8ab26030e058 | 201 | #define _RTC_SYNCBUSY_CTRL_SHIFT 0 /**< Shift value for RTC_CTRL */ |
Kojto | 98:8ab26030e058 | 202 | #define _RTC_SYNCBUSY_CTRL_MASK 0x1UL /**< Bit mask for RTC_CTRL */ |
Kojto | 98:8ab26030e058 | 203 | #define _RTC_SYNCBUSY_CTRL_DEFAULT 0x00000000UL /**< Mode DEFAULT for RTC_SYNCBUSY */ |
Kojto | 98:8ab26030e058 | 204 | #define RTC_SYNCBUSY_CTRL_DEFAULT (_RTC_SYNCBUSY_CTRL_DEFAULT << 0) /**< Shifted mode DEFAULT for RTC_SYNCBUSY */ |
Kojto | 98:8ab26030e058 | 205 | #define RTC_SYNCBUSY_COMP0 (0x1UL << 1) /**< COMP0 Register Busy */ |
Kojto | 98:8ab26030e058 | 206 | #define _RTC_SYNCBUSY_COMP0_SHIFT 1 /**< Shift value for RTC_COMP0 */ |
Kojto | 98:8ab26030e058 | 207 | #define _RTC_SYNCBUSY_COMP0_MASK 0x2UL /**< Bit mask for RTC_COMP0 */ |
Kojto | 98:8ab26030e058 | 208 | #define _RTC_SYNCBUSY_COMP0_DEFAULT 0x00000000UL /**< Mode DEFAULT for RTC_SYNCBUSY */ |
Kojto | 98:8ab26030e058 | 209 | #define RTC_SYNCBUSY_COMP0_DEFAULT (_RTC_SYNCBUSY_COMP0_DEFAULT << 1) /**< Shifted mode DEFAULT for RTC_SYNCBUSY */ |
Kojto | 98:8ab26030e058 | 210 | #define RTC_SYNCBUSY_COMP1 (0x1UL << 2) /**< COMP1 Register Busy */ |
Kojto | 98:8ab26030e058 | 211 | #define _RTC_SYNCBUSY_COMP1_SHIFT 2 /**< Shift value for RTC_COMP1 */ |
Kojto | 98:8ab26030e058 | 212 | #define _RTC_SYNCBUSY_COMP1_MASK 0x4UL /**< Bit mask for RTC_COMP1 */ |
Kojto | 98:8ab26030e058 | 213 | #define _RTC_SYNCBUSY_COMP1_DEFAULT 0x00000000UL /**< Mode DEFAULT for RTC_SYNCBUSY */ |
Kojto | 98:8ab26030e058 | 214 | #define RTC_SYNCBUSY_COMP1_DEFAULT (_RTC_SYNCBUSY_COMP1_DEFAULT << 2) /**< Shifted mode DEFAULT for RTC_SYNCBUSY */ |
Kojto | 98:8ab26030e058 | 215 | |
Kojto | 98:8ab26030e058 | 216 | /** @} End of group EFM32ZG_RTC */ |
Kojto | 113:f141b2784e32 | 217 | /** @} End of group Parts */ |
Kojto | 98:8ab26030e058 | 218 |