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:
Kojto
Date:
Tue Feb 02 14:43:35 2016 +0000
Revision:
113:f141b2784e32
Parent:
98:8ab26030e058
Release 113 of the mbed library

Changes:
- new targets - Silabs Perl Gecko, TY51822
- Silabs - emlib update to 4.1.0, various bugfixes as result
- STM B96B_F446VE - add async serial support
- Freescale KLXX - rtc lock fix
- LPC11U68 and LPC1549 - pwm bugfixes - duty cycle

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 98:8ab26030e058 1 /**************************************************************************//**
Kojto 98:8ab26030e058 2 * @file efm32zg_aes.h
Kojto 98:8ab26030e058 3 * @brief EFM32ZG_AES 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_AES
Kojto 98:8ab26030e058 38 * @{
Kojto 98:8ab26030e058 39 * @brief EFM32ZG_AES 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 CMD; /**< Command Register */
Kojto 98:8ab26030e058 45 __I uint32_t STATUS; /**< Status Register */
Kojto 98:8ab26030e058 46 __IO uint32_t IEN; /**< Interrupt Enable Register */
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 DATA; /**< DATA Register */
Kojto 98:8ab26030e058 51 __IO uint32_t XORDATA; /**< XORDATA Register */
Kojto 98:8ab26030e058 52 uint32_t RESERVED0[3]; /**< Reserved for future use **/
Kojto 98:8ab26030e058 53 __IO uint32_t KEYLA; /**< KEY Low Register */
Kojto 98:8ab26030e058 54 __IO uint32_t KEYLB; /**< KEY Low Register */
Kojto 98:8ab26030e058 55 __IO uint32_t KEYLC; /**< KEY Low Register */
Kojto 98:8ab26030e058 56 __IO uint32_t KEYLD; /**< KEY Low Register */
Kojto 98:8ab26030e058 57 } AES_TypeDef; /** @} */
Kojto 98:8ab26030e058 58
Kojto 98:8ab26030e058 59 /**************************************************************************//**
Kojto 98:8ab26030e058 60 * @defgroup EFM32ZG_AES_BitFields
Kojto 98:8ab26030e058 61 * @{
Kojto 98:8ab26030e058 62 *****************************************************************************/
Kojto 98:8ab26030e058 63
Kojto 98:8ab26030e058 64 /* Bit fields for AES CTRL */
Kojto 98:8ab26030e058 65 #define _AES_CTRL_RESETVALUE 0x00000000UL /**< Default value for AES_CTRL */
Kojto 98:8ab26030e058 66 #define _AES_CTRL_MASK 0x00000071UL /**< Mask for AES_CTRL */
Kojto 98:8ab26030e058 67 #define AES_CTRL_DECRYPT (0x1UL << 0) /**< Decryption/Encryption Mode */
Kojto 98:8ab26030e058 68 #define _AES_CTRL_DECRYPT_SHIFT 0 /**< Shift value for AES_DECRYPT */
Kojto 98:8ab26030e058 69 #define _AES_CTRL_DECRYPT_MASK 0x1UL /**< Bit mask for AES_DECRYPT */
Kojto 98:8ab26030e058 70 #define _AES_CTRL_DECRYPT_DEFAULT 0x00000000UL /**< Mode DEFAULT for AES_CTRL */
Kojto 98:8ab26030e058 71 #define AES_CTRL_DECRYPT_DEFAULT (_AES_CTRL_DECRYPT_DEFAULT << 0) /**< Shifted mode DEFAULT for AES_CTRL */
Kojto 98:8ab26030e058 72 #define AES_CTRL_DATASTART (0x1UL << 4) /**< AES_DATA Write Start */
Kojto 98:8ab26030e058 73 #define _AES_CTRL_DATASTART_SHIFT 4 /**< Shift value for AES_DATASTART */
Kojto 98:8ab26030e058 74 #define _AES_CTRL_DATASTART_MASK 0x10UL /**< Bit mask for AES_DATASTART */
Kojto 98:8ab26030e058 75 #define _AES_CTRL_DATASTART_DEFAULT 0x00000000UL /**< Mode DEFAULT for AES_CTRL */
Kojto 98:8ab26030e058 76 #define AES_CTRL_DATASTART_DEFAULT (_AES_CTRL_DATASTART_DEFAULT << 4) /**< Shifted mode DEFAULT for AES_CTRL */
Kojto 98:8ab26030e058 77 #define AES_CTRL_XORSTART (0x1UL << 5) /**< AES_XORDATA Write Start */
Kojto 98:8ab26030e058 78 #define _AES_CTRL_XORSTART_SHIFT 5 /**< Shift value for AES_XORSTART */
Kojto 98:8ab26030e058 79 #define _AES_CTRL_XORSTART_MASK 0x20UL /**< Bit mask for AES_XORSTART */
Kojto 98:8ab26030e058 80 #define _AES_CTRL_XORSTART_DEFAULT 0x00000000UL /**< Mode DEFAULT for AES_CTRL */
Kojto 98:8ab26030e058 81 #define AES_CTRL_XORSTART_DEFAULT (_AES_CTRL_XORSTART_DEFAULT << 5) /**< Shifted mode DEFAULT for AES_CTRL */
Kojto 98:8ab26030e058 82 #define AES_CTRL_BYTEORDER (0x1UL << 6) /**< Configure byte order in data and key registers */
Kojto 98:8ab26030e058 83 #define _AES_CTRL_BYTEORDER_SHIFT 6 /**< Shift value for AES_BYTEORDER */
Kojto 98:8ab26030e058 84 #define _AES_CTRL_BYTEORDER_MASK 0x40UL /**< Bit mask for AES_BYTEORDER */
Kojto 98:8ab26030e058 85 #define _AES_CTRL_BYTEORDER_DEFAULT 0x00000000UL /**< Mode DEFAULT for AES_CTRL */
Kojto 98:8ab26030e058 86 #define AES_CTRL_BYTEORDER_DEFAULT (_AES_CTRL_BYTEORDER_DEFAULT << 6) /**< Shifted mode DEFAULT for AES_CTRL */
Kojto 98:8ab26030e058 87
Kojto 98:8ab26030e058 88 /* Bit fields for AES CMD */
Kojto 98:8ab26030e058 89 #define _AES_CMD_RESETVALUE 0x00000000UL /**< Default value for AES_CMD */
Kojto 98:8ab26030e058 90 #define _AES_CMD_MASK 0x00000003UL /**< Mask for AES_CMD */
Kojto 98:8ab26030e058 91 #define AES_CMD_START (0x1UL << 0) /**< Encryption/Decryption Start */
Kojto 98:8ab26030e058 92 #define _AES_CMD_START_SHIFT 0 /**< Shift value for AES_START */
Kojto 98:8ab26030e058 93 #define _AES_CMD_START_MASK 0x1UL /**< Bit mask for AES_START */
Kojto 98:8ab26030e058 94 #define _AES_CMD_START_DEFAULT 0x00000000UL /**< Mode DEFAULT for AES_CMD */
Kojto 98:8ab26030e058 95 #define AES_CMD_START_DEFAULT (_AES_CMD_START_DEFAULT << 0) /**< Shifted mode DEFAULT for AES_CMD */
Kojto 98:8ab26030e058 96 #define AES_CMD_STOP (0x1UL << 1) /**< Encryption/Decryption Stop */
Kojto 98:8ab26030e058 97 #define _AES_CMD_STOP_SHIFT 1 /**< Shift value for AES_STOP */
Kojto 98:8ab26030e058 98 #define _AES_CMD_STOP_MASK 0x2UL /**< Bit mask for AES_STOP */
Kojto 98:8ab26030e058 99 #define _AES_CMD_STOP_DEFAULT 0x00000000UL /**< Mode DEFAULT for AES_CMD */
Kojto 98:8ab26030e058 100 #define AES_CMD_STOP_DEFAULT (_AES_CMD_STOP_DEFAULT << 1) /**< Shifted mode DEFAULT for AES_CMD */
Kojto 98:8ab26030e058 101
Kojto 98:8ab26030e058 102 /* Bit fields for AES STATUS */
Kojto 98:8ab26030e058 103 #define _AES_STATUS_RESETVALUE 0x00000000UL /**< Default value for AES_STATUS */
Kojto 98:8ab26030e058 104 #define _AES_STATUS_MASK 0x00000001UL /**< Mask for AES_STATUS */
Kojto 98:8ab26030e058 105 #define AES_STATUS_RUNNING (0x1UL << 0) /**< AES Running */
Kojto 98:8ab26030e058 106 #define _AES_STATUS_RUNNING_SHIFT 0 /**< Shift value for AES_RUNNING */
Kojto 98:8ab26030e058 107 #define _AES_STATUS_RUNNING_MASK 0x1UL /**< Bit mask for AES_RUNNING */
Kojto 98:8ab26030e058 108 #define _AES_STATUS_RUNNING_DEFAULT 0x00000000UL /**< Mode DEFAULT for AES_STATUS */
Kojto 98:8ab26030e058 109 #define AES_STATUS_RUNNING_DEFAULT (_AES_STATUS_RUNNING_DEFAULT << 0) /**< Shifted mode DEFAULT for AES_STATUS */
Kojto 98:8ab26030e058 110
Kojto 98:8ab26030e058 111 /* Bit fields for AES IEN */
Kojto 98:8ab26030e058 112 #define _AES_IEN_RESETVALUE 0x00000000UL /**< Default value for AES_IEN */
Kojto 98:8ab26030e058 113 #define _AES_IEN_MASK 0x00000001UL /**< Mask for AES_IEN */
Kojto 98:8ab26030e058 114 #define AES_IEN_DONE (0x1UL << 0) /**< Encryption/Decryption Done Interrupt Enable */
Kojto 98:8ab26030e058 115 #define _AES_IEN_DONE_SHIFT 0 /**< Shift value for AES_DONE */
Kojto 98:8ab26030e058 116 #define _AES_IEN_DONE_MASK 0x1UL /**< Bit mask for AES_DONE */
Kojto 98:8ab26030e058 117 #define _AES_IEN_DONE_DEFAULT 0x00000000UL /**< Mode DEFAULT for AES_IEN */
Kojto 98:8ab26030e058 118 #define AES_IEN_DONE_DEFAULT (_AES_IEN_DONE_DEFAULT << 0) /**< Shifted mode DEFAULT for AES_IEN */
Kojto 98:8ab26030e058 119
Kojto 98:8ab26030e058 120 /* Bit fields for AES IF */
Kojto 98:8ab26030e058 121 #define _AES_IF_RESETVALUE 0x00000000UL /**< Default value for AES_IF */
Kojto 98:8ab26030e058 122 #define _AES_IF_MASK 0x00000001UL /**< Mask for AES_IF */
Kojto 98:8ab26030e058 123 #define AES_IF_DONE (0x1UL << 0) /**< Encryption/Decryption Done Interrupt Flag */
Kojto 98:8ab26030e058 124 #define _AES_IF_DONE_SHIFT 0 /**< Shift value for AES_DONE */
Kojto 98:8ab26030e058 125 #define _AES_IF_DONE_MASK 0x1UL /**< Bit mask for AES_DONE */
Kojto 98:8ab26030e058 126 #define _AES_IF_DONE_DEFAULT 0x00000000UL /**< Mode DEFAULT for AES_IF */
Kojto 98:8ab26030e058 127 #define AES_IF_DONE_DEFAULT (_AES_IF_DONE_DEFAULT << 0) /**< Shifted mode DEFAULT for AES_IF */
Kojto 98:8ab26030e058 128
Kojto 98:8ab26030e058 129 /* Bit fields for AES IFS */
Kojto 98:8ab26030e058 130 #define _AES_IFS_RESETVALUE 0x00000000UL /**< Default value for AES_IFS */
Kojto 98:8ab26030e058 131 #define _AES_IFS_MASK 0x00000001UL /**< Mask for AES_IFS */
Kojto 98:8ab26030e058 132 #define AES_IFS_DONE (0x1UL << 0) /**< Encryption/Decryption Done Interrupt Flag Set */
Kojto 98:8ab26030e058 133 #define _AES_IFS_DONE_SHIFT 0 /**< Shift value for AES_DONE */
Kojto 98:8ab26030e058 134 #define _AES_IFS_DONE_MASK 0x1UL /**< Bit mask for AES_DONE */
Kojto 98:8ab26030e058 135 #define _AES_IFS_DONE_DEFAULT 0x00000000UL /**< Mode DEFAULT for AES_IFS */
Kojto 98:8ab26030e058 136 #define AES_IFS_DONE_DEFAULT (_AES_IFS_DONE_DEFAULT << 0) /**< Shifted mode DEFAULT for AES_IFS */
Kojto 98:8ab26030e058 137
Kojto 98:8ab26030e058 138 /* Bit fields for AES IFC */
Kojto 98:8ab26030e058 139 #define _AES_IFC_RESETVALUE 0x00000000UL /**< Default value for AES_IFC */
Kojto 98:8ab26030e058 140 #define _AES_IFC_MASK 0x00000001UL /**< Mask for AES_IFC */
Kojto 98:8ab26030e058 141 #define AES_IFC_DONE (0x1UL << 0) /**< Encryption/Decryption Done Interrupt Flag Clear */
Kojto 98:8ab26030e058 142 #define _AES_IFC_DONE_SHIFT 0 /**< Shift value for AES_DONE */
Kojto 98:8ab26030e058 143 #define _AES_IFC_DONE_MASK 0x1UL /**< Bit mask for AES_DONE */
Kojto 98:8ab26030e058 144 #define _AES_IFC_DONE_DEFAULT 0x00000000UL /**< Mode DEFAULT for AES_IFC */
Kojto 98:8ab26030e058 145 #define AES_IFC_DONE_DEFAULT (_AES_IFC_DONE_DEFAULT << 0) /**< Shifted mode DEFAULT for AES_IFC */
Kojto 98:8ab26030e058 146
Kojto 98:8ab26030e058 147 /* Bit fields for AES DATA */
Kojto 98:8ab26030e058 148 #define _AES_DATA_RESETVALUE 0x00000000UL /**< Default value for AES_DATA */
Kojto 98:8ab26030e058 149 #define _AES_DATA_MASK 0xFFFFFFFFUL /**< Mask for AES_DATA */
Kojto 98:8ab26030e058 150 #define _AES_DATA_DATA_SHIFT 0 /**< Shift value for AES_DATA */
Kojto 98:8ab26030e058 151 #define _AES_DATA_DATA_MASK 0xFFFFFFFFUL /**< Bit mask for AES_DATA */
Kojto 98:8ab26030e058 152 #define _AES_DATA_DATA_DEFAULT 0x00000000UL /**< Mode DEFAULT for AES_DATA */
Kojto 98:8ab26030e058 153 #define AES_DATA_DATA_DEFAULT (_AES_DATA_DATA_DEFAULT << 0) /**< Shifted mode DEFAULT for AES_DATA */
Kojto 98:8ab26030e058 154
Kojto 98:8ab26030e058 155 /* Bit fields for AES XORDATA */
Kojto 98:8ab26030e058 156 #define _AES_XORDATA_RESETVALUE 0x00000000UL /**< Default value for AES_XORDATA */
Kojto 98:8ab26030e058 157 #define _AES_XORDATA_MASK 0xFFFFFFFFUL /**< Mask for AES_XORDATA */
Kojto 98:8ab26030e058 158 #define _AES_XORDATA_XORDATA_SHIFT 0 /**< Shift value for AES_XORDATA */
Kojto 98:8ab26030e058 159 #define _AES_XORDATA_XORDATA_MASK 0xFFFFFFFFUL /**< Bit mask for AES_XORDATA */
Kojto 98:8ab26030e058 160 #define _AES_XORDATA_XORDATA_DEFAULT 0x00000000UL /**< Mode DEFAULT for AES_XORDATA */
Kojto 98:8ab26030e058 161 #define AES_XORDATA_XORDATA_DEFAULT (_AES_XORDATA_XORDATA_DEFAULT << 0) /**< Shifted mode DEFAULT for AES_XORDATA */
Kojto 98:8ab26030e058 162
Kojto 98:8ab26030e058 163 /* Bit fields for AES KEYLA */
Kojto 98:8ab26030e058 164 #define _AES_KEYLA_RESETVALUE 0x00000000UL /**< Default value for AES_KEYLA */
Kojto 98:8ab26030e058 165 #define _AES_KEYLA_MASK 0xFFFFFFFFUL /**< Mask for AES_KEYLA */
Kojto 98:8ab26030e058 166 #define _AES_KEYLA_KEYLA_SHIFT 0 /**< Shift value for AES_KEYLA */
Kojto 98:8ab26030e058 167 #define _AES_KEYLA_KEYLA_MASK 0xFFFFFFFFUL /**< Bit mask for AES_KEYLA */
Kojto 98:8ab26030e058 168 #define _AES_KEYLA_KEYLA_DEFAULT 0x00000000UL /**< Mode DEFAULT for AES_KEYLA */
Kojto 98:8ab26030e058 169 #define AES_KEYLA_KEYLA_DEFAULT (_AES_KEYLA_KEYLA_DEFAULT << 0) /**< Shifted mode DEFAULT for AES_KEYLA */
Kojto 98:8ab26030e058 170
Kojto 98:8ab26030e058 171 /* Bit fields for AES KEYLB */
Kojto 98:8ab26030e058 172 #define _AES_KEYLB_RESETVALUE 0x00000000UL /**< Default value for AES_KEYLB */
Kojto 98:8ab26030e058 173 #define _AES_KEYLB_MASK 0xFFFFFFFFUL /**< Mask for AES_KEYLB */
Kojto 98:8ab26030e058 174 #define _AES_KEYLB_KEYLB_SHIFT 0 /**< Shift value for AES_KEYLB */
Kojto 98:8ab26030e058 175 #define _AES_KEYLB_KEYLB_MASK 0xFFFFFFFFUL /**< Bit mask for AES_KEYLB */
Kojto 98:8ab26030e058 176 #define _AES_KEYLB_KEYLB_DEFAULT 0x00000000UL /**< Mode DEFAULT for AES_KEYLB */
Kojto 98:8ab26030e058 177 #define AES_KEYLB_KEYLB_DEFAULT (_AES_KEYLB_KEYLB_DEFAULT << 0) /**< Shifted mode DEFAULT for AES_KEYLB */
Kojto 98:8ab26030e058 178
Kojto 98:8ab26030e058 179 /* Bit fields for AES KEYLC */
Kojto 98:8ab26030e058 180 #define _AES_KEYLC_RESETVALUE 0x00000000UL /**< Default value for AES_KEYLC */
Kojto 98:8ab26030e058 181 #define _AES_KEYLC_MASK 0xFFFFFFFFUL /**< Mask for AES_KEYLC */
Kojto 98:8ab26030e058 182 #define _AES_KEYLC_KEYLC_SHIFT 0 /**< Shift value for AES_KEYLC */
Kojto 98:8ab26030e058 183 #define _AES_KEYLC_KEYLC_MASK 0xFFFFFFFFUL /**< Bit mask for AES_KEYLC */
Kojto 98:8ab26030e058 184 #define _AES_KEYLC_KEYLC_DEFAULT 0x00000000UL /**< Mode DEFAULT for AES_KEYLC */
Kojto 98:8ab26030e058 185 #define AES_KEYLC_KEYLC_DEFAULT (_AES_KEYLC_KEYLC_DEFAULT << 0) /**< Shifted mode DEFAULT for AES_KEYLC */
Kojto 98:8ab26030e058 186
Kojto 98:8ab26030e058 187 /* Bit fields for AES KEYLD */
Kojto 98:8ab26030e058 188 #define _AES_KEYLD_RESETVALUE 0x00000000UL /**< Default value for AES_KEYLD */
Kojto 98:8ab26030e058 189 #define _AES_KEYLD_MASK 0xFFFFFFFFUL /**< Mask for AES_KEYLD */
Kojto 98:8ab26030e058 190 #define _AES_KEYLD_KEYLD_SHIFT 0 /**< Shift value for AES_KEYLD */
Kojto 98:8ab26030e058 191 #define _AES_KEYLD_KEYLD_MASK 0xFFFFFFFFUL /**< Bit mask for AES_KEYLD */
Kojto 98:8ab26030e058 192 #define _AES_KEYLD_KEYLD_DEFAULT 0x00000000UL /**< Mode DEFAULT for AES_KEYLD */
Kojto 98:8ab26030e058 193 #define AES_KEYLD_KEYLD_DEFAULT (_AES_KEYLD_KEYLD_DEFAULT << 0) /**< Shifted mode DEFAULT for AES_KEYLD */
Kojto 98:8ab26030e058 194
Kojto 98:8ab26030e058 195 /** @} End of group EFM32ZG_AES */
Kojto 113:f141b2784e32 196 /** @} End of group Parts */
Kojto 98:8ab26030e058 197