1 /**************************************************************************//** 2 * @file 3 * @brief EFR32BG27 MSC register and bit field definitions 4 ****************************************************************************** 5 * # License 6 * <b>Copyright 2023 Silicon Laboratories, Inc. www.silabs.com</b> 7 ****************************************************************************** 8 * 9 * SPDX-License-Identifier: Zlib 10 * 11 * The licensor of this software is Silicon Laboratories Inc. 12 * 13 * This software is provided 'as-is', without any express or implied 14 * warranty. In no event will the authors be held liable for any damages 15 * arising from the use of this software. 16 * 17 * Permission is granted to anyone to use this software for any purpose, 18 * including commercial applications, and to alter it and redistribute it 19 * freely, subject to the following restrictions: 20 * 21 * 1. The origin of this software must not be misrepresented; you must not 22 * claim that you wrote the original software. If you use this software 23 * in a product, an acknowledgment in the product documentation would be 24 * appreciated but is not required. 25 * 2. Altered source versions must be plainly marked as such, and must not be 26 * misrepresented as being the original software. 27 * 3. This notice may not be removed or altered from any source distribution. 28 * 29 *****************************************************************************/ 30 #ifndef EFR32BG27_MSC_H 31 #define EFR32BG27_MSC_H 32 #define MSC_HAS_SET_CLEAR 33 34 /**************************************************************************//** 35 * @addtogroup Parts 36 * @{ 37 ******************************************************************************/ 38 /**************************************************************************//** 39 * @defgroup EFR32BG27_MSC MSC 40 * @{ 41 * @brief EFR32BG27 MSC Register Declaration. 42 *****************************************************************************/ 43 44 /** MSC Register Declaration. */ 45 typedef struct { 46 __IM uint32_t IPVERSION; /**< IP version ID */ 47 __IOM uint32_t READCTRL; /**< Read Control Register */ 48 __IOM uint32_t RDATACTRL; /**< Read Data Control Register */ 49 __IOM uint32_t WRITECTRL; /**< Write Control Register */ 50 __IOM uint32_t WRITECMD; /**< Write Command Register */ 51 __IOM uint32_t ADDRB; /**< Page Erase/Write Address Buffer */ 52 __IOM uint32_t WDATA; /**< Write Data Register */ 53 __IM uint32_t STATUS; /**< Status Register */ 54 __IOM uint32_t IF; /**< Interrupt Flag Register */ 55 __IOM uint32_t IEN; /**< Interrupt Enable Register */ 56 uint32_t RESERVED0[3U]; /**< Reserved for future use */ 57 __IM uint32_t USERDATASIZE; /**< User Data Region Size Register */ 58 __IOM uint32_t CMD; /**< Command Register */ 59 __IOM uint32_t LOCK; /**< Configuration Lock Register */ 60 __IOM uint32_t MISCLOCKWORD; /**< Mass erase and User data page lock word */ 61 uint32_t RESERVED1[3U]; /**< Reserved for future use */ 62 __IOM uint32_t PWRCTRL; /**< Power control register */ 63 uint32_t RESERVED2[51U]; /**< Reserved for future use */ 64 __IOM uint32_t PAGELOCK0; /**< Main space page 0-31 lock word */ 65 __IOM uint32_t PAGELOCK1; /**< Main space page 32-63 lock word */ 66 __IOM uint32_t PAGELOCK2; /**< Main space page 64-95 lock word */ 67 uint32_t RESERVED3[1U]; /**< Reserved for future use */ 68 uint32_t RESERVED4[4U]; /**< Reserved for future use */ 69 uint32_t RESERVED5[4U]; /**< Reserved for future use */ 70 uint32_t RESERVED6[4U]; /**< Reserved for future use */ 71 uint32_t RESERVED7[4U]; /**< Reserved for future use */ 72 uint32_t RESERVED8[12U]; /**< Reserved for future use */ 73 uint32_t RESERVED9[1U]; /**< Reserved for future use */ 74 uint32_t RESERVED10[919U]; /**< Reserved for future use */ 75 __IM uint32_t IPVERSION_SET; /**< IP version ID */ 76 __IOM uint32_t READCTRL_SET; /**< Read Control Register */ 77 __IOM uint32_t RDATACTRL_SET; /**< Read Data Control Register */ 78 __IOM uint32_t WRITECTRL_SET; /**< Write Control Register */ 79 __IOM uint32_t WRITECMD_SET; /**< Write Command Register */ 80 __IOM uint32_t ADDRB_SET; /**< Page Erase/Write Address Buffer */ 81 __IOM uint32_t WDATA_SET; /**< Write Data Register */ 82 __IM uint32_t STATUS_SET; /**< Status Register */ 83 __IOM uint32_t IF_SET; /**< Interrupt Flag Register */ 84 __IOM uint32_t IEN_SET; /**< Interrupt Enable Register */ 85 uint32_t RESERVED11[3U]; /**< Reserved for future use */ 86 __IM uint32_t USERDATASIZE_SET; /**< User Data Region Size Register */ 87 __IOM uint32_t CMD_SET; /**< Command Register */ 88 __IOM uint32_t LOCK_SET; /**< Configuration Lock Register */ 89 __IOM uint32_t MISCLOCKWORD_SET; /**< Mass erase and User data page lock word */ 90 uint32_t RESERVED12[3U]; /**< Reserved for future use */ 91 __IOM uint32_t PWRCTRL_SET; /**< Power control register */ 92 uint32_t RESERVED13[51U]; /**< Reserved for future use */ 93 __IOM uint32_t PAGELOCK0_SET; /**< Main space page 0-31 lock word */ 94 __IOM uint32_t PAGELOCK1_SET; /**< Main space page 32-63 lock word */ 95 __IOM uint32_t PAGELOCK2_SET; /**< Main space page 64-95 lock word */ 96 uint32_t RESERVED14[1U]; /**< Reserved for future use */ 97 uint32_t RESERVED15[4U]; /**< Reserved for future use */ 98 uint32_t RESERVED16[4U]; /**< Reserved for future use */ 99 uint32_t RESERVED17[4U]; /**< Reserved for future use */ 100 uint32_t RESERVED18[4U]; /**< Reserved for future use */ 101 uint32_t RESERVED19[12U]; /**< Reserved for future use */ 102 uint32_t RESERVED20[1U]; /**< Reserved for future use */ 103 uint32_t RESERVED21[919U]; /**< Reserved for future use */ 104 __IM uint32_t IPVERSION_CLR; /**< IP version ID */ 105 __IOM uint32_t READCTRL_CLR; /**< Read Control Register */ 106 __IOM uint32_t RDATACTRL_CLR; /**< Read Data Control Register */ 107 __IOM uint32_t WRITECTRL_CLR; /**< Write Control Register */ 108 __IOM uint32_t WRITECMD_CLR; /**< Write Command Register */ 109 __IOM uint32_t ADDRB_CLR; /**< Page Erase/Write Address Buffer */ 110 __IOM uint32_t WDATA_CLR; /**< Write Data Register */ 111 __IM uint32_t STATUS_CLR; /**< Status Register */ 112 __IOM uint32_t IF_CLR; /**< Interrupt Flag Register */ 113 __IOM uint32_t IEN_CLR; /**< Interrupt Enable Register */ 114 uint32_t RESERVED22[3U]; /**< Reserved for future use */ 115 __IM uint32_t USERDATASIZE_CLR; /**< User Data Region Size Register */ 116 __IOM uint32_t CMD_CLR; /**< Command Register */ 117 __IOM uint32_t LOCK_CLR; /**< Configuration Lock Register */ 118 __IOM uint32_t MISCLOCKWORD_CLR; /**< Mass erase and User data page lock word */ 119 uint32_t RESERVED23[3U]; /**< Reserved for future use */ 120 __IOM uint32_t PWRCTRL_CLR; /**< Power control register */ 121 uint32_t RESERVED24[51U]; /**< Reserved for future use */ 122 __IOM uint32_t PAGELOCK0_CLR; /**< Main space page 0-31 lock word */ 123 __IOM uint32_t PAGELOCK1_CLR; /**< Main space page 32-63 lock word */ 124 __IOM uint32_t PAGELOCK2_CLR; /**< Main space page 64-95 lock word */ 125 uint32_t RESERVED25[1U]; /**< Reserved for future use */ 126 uint32_t RESERVED26[4U]; /**< Reserved for future use */ 127 uint32_t RESERVED27[4U]; /**< Reserved for future use */ 128 uint32_t RESERVED28[4U]; /**< Reserved for future use */ 129 uint32_t RESERVED29[4U]; /**< Reserved for future use */ 130 uint32_t RESERVED30[12U]; /**< Reserved for future use */ 131 uint32_t RESERVED31[1U]; /**< Reserved for future use */ 132 uint32_t RESERVED32[919U]; /**< Reserved for future use */ 133 __IM uint32_t IPVERSION_TGL; /**< IP version ID */ 134 __IOM uint32_t READCTRL_TGL; /**< Read Control Register */ 135 __IOM uint32_t RDATACTRL_TGL; /**< Read Data Control Register */ 136 __IOM uint32_t WRITECTRL_TGL; /**< Write Control Register */ 137 __IOM uint32_t WRITECMD_TGL; /**< Write Command Register */ 138 __IOM uint32_t ADDRB_TGL; /**< Page Erase/Write Address Buffer */ 139 __IOM uint32_t WDATA_TGL; /**< Write Data Register */ 140 __IM uint32_t STATUS_TGL; /**< Status Register */ 141 __IOM uint32_t IF_TGL; /**< Interrupt Flag Register */ 142 __IOM uint32_t IEN_TGL; /**< Interrupt Enable Register */ 143 uint32_t RESERVED33[3U]; /**< Reserved for future use */ 144 __IM uint32_t USERDATASIZE_TGL; /**< User Data Region Size Register */ 145 __IOM uint32_t CMD_TGL; /**< Command Register */ 146 __IOM uint32_t LOCK_TGL; /**< Configuration Lock Register */ 147 __IOM uint32_t MISCLOCKWORD_TGL; /**< Mass erase and User data page lock word */ 148 uint32_t RESERVED34[3U]; /**< Reserved for future use */ 149 __IOM uint32_t PWRCTRL_TGL; /**< Power control register */ 150 uint32_t RESERVED35[51U]; /**< Reserved for future use */ 151 __IOM uint32_t PAGELOCK0_TGL; /**< Main space page 0-31 lock word */ 152 __IOM uint32_t PAGELOCK1_TGL; /**< Main space page 32-63 lock word */ 153 __IOM uint32_t PAGELOCK2_TGL; /**< Main space page 64-95 lock word */ 154 uint32_t RESERVED36[1U]; /**< Reserved for future use */ 155 uint32_t RESERVED37[4U]; /**< Reserved for future use */ 156 uint32_t RESERVED38[4U]; /**< Reserved for future use */ 157 uint32_t RESERVED39[4U]; /**< Reserved for future use */ 158 uint32_t RESERVED40[4U]; /**< Reserved for future use */ 159 uint32_t RESERVED41[12U]; /**< Reserved for future use */ 160 uint32_t RESERVED42[1U]; /**< Reserved for future use */ 161 } MSC_TypeDef; 162 /** @} End of group EFR32BG27_MSC */ 163 164 /**************************************************************************//** 165 * @addtogroup EFR32BG27_MSC 166 * @{ 167 * @defgroup EFR32BG27_MSC_BitFields MSC Bit Fields 168 * @{ 169 *****************************************************************************/ 170 171 /* Bit fields for MSC IPVERSION */ 172 #define _MSC_IPVERSION_RESETVALUE 0x00000005UL /**< Default value for MSC_IPVERSION */ 173 #define _MSC_IPVERSION_MASK 0xFFFFFFFFUL /**< Mask for MSC_IPVERSION */ 174 #define _MSC_IPVERSION_IPVERSION_SHIFT 0 /**< Shift value for MSC_IPVERSION */ 175 #define _MSC_IPVERSION_IPVERSION_MASK 0xFFFFFFFFUL /**< Bit mask for MSC_IPVERSION */ 176 #define _MSC_IPVERSION_IPVERSION_DEFAULT 0x00000005UL /**< Mode DEFAULT for MSC_IPVERSION */ 177 #define MSC_IPVERSION_IPVERSION_DEFAULT (_MSC_IPVERSION_IPVERSION_DEFAULT << 0) /**< Shifted mode DEFAULT for MSC_IPVERSION */ 178 179 /* Bit fields for MSC READCTRL */ 180 #define _MSC_READCTRL_RESETVALUE 0x00200000UL /**< Default value for MSC_READCTRL */ 181 #define _MSC_READCTRL_MASK 0x00300000UL /**< Mask for MSC_READCTRL */ 182 #define _MSC_READCTRL_MODE_SHIFT 20 /**< Shift value for MSC_MODE */ 183 #define _MSC_READCTRL_MODE_MASK 0x300000UL /**< Bit mask for MSC_MODE */ 184 #define _MSC_READCTRL_MODE_DEFAULT 0x00000002UL /**< Mode DEFAULT for MSC_READCTRL */ 185 #define _MSC_READCTRL_MODE_WS0 0x00000000UL /**< Mode WS0 for MSC_READCTRL */ 186 #define _MSC_READCTRL_MODE_WS1 0x00000001UL /**< Mode WS1 for MSC_READCTRL */ 187 #define _MSC_READCTRL_MODE_WS2 0x00000002UL /**< Mode WS2 for MSC_READCTRL */ 188 #define _MSC_READCTRL_MODE_WS3 0x00000003UL /**< Mode WS3 for MSC_READCTRL */ 189 #define MSC_READCTRL_MODE_DEFAULT (_MSC_READCTRL_MODE_DEFAULT << 20) /**< Shifted mode DEFAULT for MSC_READCTRL */ 190 #define MSC_READCTRL_MODE_WS0 (_MSC_READCTRL_MODE_WS0 << 20) /**< Shifted mode WS0 for MSC_READCTRL */ 191 #define MSC_READCTRL_MODE_WS1 (_MSC_READCTRL_MODE_WS1 << 20) /**< Shifted mode WS1 for MSC_READCTRL */ 192 #define MSC_READCTRL_MODE_WS2 (_MSC_READCTRL_MODE_WS2 << 20) /**< Shifted mode WS2 for MSC_READCTRL */ 193 #define MSC_READCTRL_MODE_WS3 (_MSC_READCTRL_MODE_WS3 << 20) /**< Shifted mode WS3 for MSC_READCTRL */ 194 195 /* Bit fields for MSC RDATACTRL */ 196 #define _MSC_RDATACTRL_RESETVALUE 0x00001000UL /**< Default value for MSC_RDATACTRL */ 197 #define _MSC_RDATACTRL_MASK 0x00001002UL /**< Mask for MSC_RDATACTRL */ 198 #define MSC_RDATACTRL_AFDIS (0x1UL << 1) /**< Automatic Invalidate Disable */ 199 #define _MSC_RDATACTRL_AFDIS_SHIFT 1 /**< Shift value for MSC_AFDIS */ 200 #define _MSC_RDATACTRL_AFDIS_MASK 0x2UL /**< Bit mask for MSC_AFDIS */ 201 #define _MSC_RDATACTRL_AFDIS_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_RDATACTRL */ 202 #define MSC_RDATACTRL_AFDIS_DEFAULT (_MSC_RDATACTRL_AFDIS_DEFAULT << 1) /**< Shifted mode DEFAULT for MSC_RDATACTRL */ 203 #define MSC_RDATACTRL_DOUTBUFEN (0x1UL << 12) /**< Flash dout pipeline buffer enable */ 204 #define _MSC_RDATACTRL_DOUTBUFEN_SHIFT 12 /**< Shift value for MSC_DOUTBUFEN */ 205 #define _MSC_RDATACTRL_DOUTBUFEN_MASK 0x1000UL /**< Bit mask for MSC_DOUTBUFEN */ 206 #define _MSC_RDATACTRL_DOUTBUFEN_DEFAULT 0x00000001UL /**< Mode DEFAULT for MSC_RDATACTRL */ 207 #define MSC_RDATACTRL_DOUTBUFEN_DEFAULT (_MSC_RDATACTRL_DOUTBUFEN_DEFAULT << 12) /**< Shifted mode DEFAULT for MSC_RDATACTRL */ 208 209 /* Bit fields for MSC WRITECTRL */ 210 #define _MSC_WRITECTRL_RESETVALUE 0x00000000UL /**< Default value for MSC_WRITECTRL */ 211 #define _MSC_WRITECTRL_MASK 0x03FF000BUL /**< Mask for MSC_WRITECTRL */ 212 #define MSC_WRITECTRL_WREN (0x1UL << 0) /**< Enable Write/Erase Controller */ 213 #define _MSC_WRITECTRL_WREN_SHIFT 0 /**< Shift value for MSC_WREN */ 214 #define _MSC_WRITECTRL_WREN_MASK 0x1UL /**< Bit mask for MSC_WREN */ 215 #define _MSC_WRITECTRL_WREN_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_WRITECTRL */ 216 #define MSC_WRITECTRL_WREN_DEFAULT (_MSC_WRITECTRL_WREN_DEFAULT << 0) /**< Shifted mode DEFAULT for MSC_WRITECTRL */ 217 #define MSC_WRITECTRL_IRQERASEABORT (0x1UL << 1) /**< Abort Page Erase on Interrupt */ 218 #define _MSC_WRITECTRL_IRQERASEABORT_SHIFT 1 /**< Shift value for MSC_IRQERASEABORT */ 219 #define _MSC_WRITECTRL_IRQERASEABORT_MASK 0x2UL /**< Bit mask for MSC_IRQERASEABORT */ 220 #define _MSC_WRITECTRL_IRQERASEABORT_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_WRITECTRL */ 221 #define MSC_WRITECTRL_IRQERASEABORT_DEFAULT (_MSC_WRITECTRL_IRQERASEABORT_DEFAULT << 1) /**< Shifted mode DEFAULT for MSC_WRITECTRL */ 222 #define MSC_WRITECTRL_LPWRITE (0x1UL << 3) /**< Low-Power Write */ 223 #define _MSC_WRITECTRL_LPWRITE_SHIFT 3 /**< Shift value for MSC_LPWRITE */ 224 #define _MSC_WRITECTRL_LPWRITE_MASK 0x8UL /**< Bit mask for MSC_LPWRITE */ 225 #define _MSC_WRITECTRL_LPWRITE_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_WRITECTRL */ 226 #define MSC_WRITECTRL_LPWRITE_DEFAULT (_MSC_WRITECTRL_LPWRITE_DEFAULT << 3) /**< Shifted mode DEFAULT for MSC_WRITECTRL */ 227 #define _MSC_WRITECTRL_RANGECOUNT_SHIFT 16 /**< Shift value for MSC_RANGECOUNT */ 228 #define _MSC_WRITECTRL_RANGECOUNT_MASK 0x3FF0000UL /**< Bit mask for MSC_RANGECOUNT */ 229 #define _MSC_WRITECTRL_RANGECOUNT_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_WRITECTRL */ 230 #define MSC_WRITECTRL_RANGECOUNT_DEFAULT (_MSC_WRITECTRL_RANGECOUNT_DEFAULT << 16) /**< Shifted mode DEFAULT for MSC_WRITECTRL */ 231 232 /* Bit fields for MSC WRITECMD */ 233 #define _MSC_WRITECMD_RESETVALUE 0x00000000UL /**< Default value for MSC_WRITECMD */ 234 #define _MSC_WRITECMD_MASK 0x00001136UL /**< Mask for MSC_WRITECMD */ 235 #define MSC_WRITECMD_ERASEPAGE (0x1UL << 1) /**< Erase Page */ 236 #define _MSC_WRITECMD_ERASEPAGE_SHIFT 1 /**< Shift value for MSC_ERASEPAGE */ 237 #define _MSC_WRITECMD_ERASEPAGE_MASK 0x2UL /**< Bit mask for MSC_ERASEPAGE */ 238 #define _MSC_WRITECMD_ERASEPAGE_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_WRITECMD */ 239 #define MSC_WRITECMD_ERASEPAGE_DEFAULT (_MSC_WRITECMD_ERASEPAGE_DEFAULT << 1) /**< Shifted mode DEFAULT for MSC_WRITECMD */ 240 #define MSC_WRITECMD_WRITEEND (0x1UL << 2) /**< End Write Mode */ 241 #define _MSC_WRITECMD_WRITEEND_SHIFT 2 /**< Shift value for MSC_WRITEEND */ 242 #define _MSC_WRITECMD_WRITEEND_MASK 0x4UL /**< Bit mask for MSC_WRITEEND */ 243 #define _MSC_WRITECMD_WRITEEND_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_WRITECMD */ 244 #define MSC_WRITECMD_WRITEEND_DEFAULT (_MSC_WRITECMD_WRITEEND_DEFAULT << 2) /**< Shifted mode DEFAULT for MSC_WRITECMD */ 245 #define MSC_WRITECMD_ERASERANGE (0x1UL << 4) /**< Erase range of pages */ 246 #define _MSC_WRITECMD_ERASERANGE_SHIFT 4 /**< Shift value for MSC_ERASERANGE */ 247 #define _MSC_WRITECMD_ERASERANGE_MASK 0x10UL /**< Bit mask for MSC_ERASERANGE */ 248 #define _MSC_WRITECMD_ERASERANGE_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_WRITECMD */ 249 #define MSC_WRITECMD_ERASERANGE_DEFAULT (_MSC_WRITECMD_ERASERANGE_DEFAULT << 4) /**< Shifted mode DEFAULT for MSC_WRITECMD */ 250 #define MSC_WRITECMD_ERASEABORT (0x1UL << 5) /**< Abort erase sequence */ 251 #define _MSC_WRITECMD_ERASEABORT_SHIFT 5 /**< Shift value for MSC_ERASEABORT */ 252 #define _MSC_WRITECMD_ERASEABORT_MASK 0x20UL /**< Bit mask for MSC_ERASEABORT */ 253 #define _MSC_WRITECMD_ERASEABORT_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_WRITECMD */ 254 #define MSC_WRITECMD_ERASEABORT_DEFAULT (_MSC_WRITECMD_ERASEABORT_DEFAULT << 5) /**< Shifted mode DEFAULT for MSC_WRITECMD */ 255 #define MSC_WRITECMD_ERASEMAIN0 (0x1UL << 8) /**< Mass erase region 0 */ 256 #define _MSC_WRITECMD_ERASEMAIN0_SHIFT 8 /**< Shift value for MSC_ERASEMAIN0 */ 257 #define _MSC_WRITECMD_ERASEMAIN0_MASK 0x100UL /**< Bit mask for MSC_ERASEMAIN0 */ 258 #define _MSC_WRITECMD_ERASEMAIN0_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_WRITECMD */ 259 #define MSC_WRITECMD_ERASEMAIN0_DEFAULT (_MSC_WRITECMD_ERASEMAIN0_DEFAULT << 8) /**< Shifted mode DEFAULT for MSC_WRITECMD */ 260 #define MSC_WRITECMD_CLEARWDATA (0x1UL << 12) /**< Clear WDATA state */ 261 #define _MSC_WRITECMD_CLEARWDATA_SHIFT 12 /**< Shift value for MSC_CLEARWDATA */ 262 #define _MSC_WRITECMD_CLEARWDATA_MASK 0x1000UL /**< Bit mask for MSC_CLEARWDATA */ 263 #define _MSC_WRITECMD_CLEARWDATA_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_WRITECMD */ 264 #define MSC_WRITECMD_CLEARWDATA_DEFAULT (_MSC_WRITECMD_CLEARWDATA_DEFAULT << 12) /**< Shifted mode DEFAULT for MSC_WRITECMD */ 265 266 /* Bit fields for MSC ADDRB */ 267 #define _MSC_ADDRB_RESETVALUE 0x00000000UL /**< Default value for MSC_ADDRB */ 268 #define _MSC_ADDRB_MASK 0xFFFFFFFFUL /**< Mask for MSC_ADDRB */ 269 #define _MSC_ADDRB_ADDRB_SHIFT 0 /**< Shift value for MSC_ADDRB */ 270 #define _MSC_ADDRB_ADDRB_MASK 0xFFFFFFFFUL /**< Bit mask for MSC_ADDRB */ 271 #define _MSC_ADDRB_ADDRB_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_ADDRB */ 272 #define MSC_ADDRB_ADDRB_DEFAULT (_MSC_ADDRB_ADDRB_DEFAULT << 0) /**< Shifted mode DEFAULT for MSC_ADDRB */ 273 274 /* Bit fields for MSC WDATA */ 275 #define _MSC_WDATA_RESETVALUE 0x00000000UL /**< Default value for MSC_WDATA */ 276 #define _MSC_WDATA_MASK 0xFFFFFFFFUL /**< Mask for MSC_WDATA */ 277 #define _MSC_WDATA_DATAW_SHIFT 0 /**< Shift value for MSC_DATAW */ 278 #define _MSC_WDATA_DATAW_MASK 0xFFFFFFFFUL /**< Bit mask for MSC_DATAW */ 279 #define _MSC_WDATA_DATAW_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_WDATA */ 280 #define MSC_WDATA_DATAW_DEFAULT (_MSC_WDATA_DATAW_DEFAULT << 0) /**< Shifted mode DEFAULT for MSC_WDATA */ 281 282 /* Bit fields for MSC STATUS */ 283 #define _MSC_STATUS_RESETVALUE 0x08000008UL /**< Default value for MSC_STATUS */ 284 #define _MSC_STATUS_MASK 0xF90100FFUL /**< Mask for MSC_STATUS */ 285 #define MSC_STATUS_BUSY (0x1UL << 0) /**< Erase/Write Busy */ 286 #define _MSC_STATUS_BUSY_SHIFT 0 /**< Shift value for MSC_BUSY */ 287 #define _MSC_STATUS_BUSY_MASK 0x1UL /**< Bit mask for MSC_BUSY */ 288 #define _MSC_STATUS_BUSY_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_STATUS */ 289 #define MSC_STATUS_BUSY_DEFAULT (_MSC_STATUS_BUSY_DEFAULT << 0) /**< Shifted mode DEFAULT for MSC_STATUS */ 290 #define MSC_STATUS_LOCKED (0x1UL << 1) /**< Access Locked */ 291 #define _MSC_STATUS_LOCKED_SHIFT 1 /**< Shift value for MSC_LOCKED */ 292 #define _MSC_STATUS_LOCKED_MASK 0x2UL /**< Bit mask for MSC_LOCKED */ 293 #define _MSC_STATUS_LOCKED_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_STATUS */ 294 #define MSC_STATUS_LOCKED_DEFAULT (_MSC_STATUS_LOCKED_DEFAULT << 1) /**< Shifted mode DEFAULT for MSC_STATUS */ 295 #define MSC_STATUS_INVADDR (0x1UL << 2) /**< Invalid Write Address or Erase Page */ 296 #define _MSC_STATUS_INVADDR_SHIFT 2 /**< Shift value for MSC_INVADDR */ 297 #define _MSC_STATUS_INVADDR_MASK 0x4UL /**< Bit mask for MSC_INVADDR */ 298 #define _MSC_STATUS_INVADDR_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_STATUS */ 299 #define MSC_STATUS_INVADDR_DEFAULT (_MSC_STATUS_INVADDR_DEFAULT << 2) /**< Shifted mode DEFAULT for MSC_STATUS */ 300 #define MSC_STATUS_WDATAREADY (0x1UL << 3) /**< WDATA Write Ready */ 301 #define _MSC_STATUS_WDATAREADY_SHIFT 3 /**< Shift value for MSC_WDATAREADY */ 302 #define _MSC_STATUS_WDATAREADY_MASK 0x8UL /**< Bit mask for MSC_WDATAREADY */ 303 #define _MSC_STATUS_WDATAREADY_DEFAULT 0x00000001UL /**< Mode DEFAULT for MSC_STATUS */ 304 #define MSC_STATUS_WDATAREADY_DEFAULT (_MSC_STATUS_WDATAREADY_DEFAULT << 3) /**< Shifted mode DEFAULT for MSC_STATUS */ 305 #define MSC_STATUS_ERASEABORTED (0x1UL << 4) /**< Erase Operation Aborted */ 306 #define _MSC_STATUS_ERASEABORTED_SHIFT 4 /**< Shift value for MSC_ERASEABORTED */ 307 #define _MSC_STATUS_ERASEABORTED_MASK 0x10UL /**< Bit mask for MSC_ERASEABORTED */ 308 #define _MSC_STATUS_ERASEABORTED_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_STATUS */ 309 #define MSC_STATUS_ERASEABORTED_DEFAULT (_MSC_STATUS_ERASEABORTED_DEFAULT << 4) /**< Shifted mode DEFAULT for MSC_STATUS */ 310 #define MSC_STATUS_PENDING (0x1UL << 5) /**< Write Command In Queue */ 311 #define _MSC_STATUS_PENDING_SHIFT 5 /**< Shift value for MSC_PENDING */ 312 #define _MSC_STATUS_PENDING_MASK 0x20UL /**< Bit mask for MSC_PENDING */ 313 #define _MSC_STATUS_PENDING_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_STATUS */ 314 #define MSC_STATUS_PENDING_DEFAULT (_MSC_STATUS_PENDING_DEFAULT << 5) /**< Shifted mode DEFAULT for MSC_STATUS */ 315 #define MSC_STATUS_TIMEOUT (0x1UL << 6) /**< Write Command Timeout */ 316 #define _MSC_STATUS_TIMEOUT_SHIFT 6 /**< Shift value for MSC_TIMEOUT */ 317 #define _MSC_STATUS_TIMEOUT_MASK 0x40UL /**< Bit mask for MSC_TIMEOUT */ 318 #define _MSC_STATUS_TIMEOUT_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_STATUS */ 319 #define MSC_STATUS_TIMEOUT_DEFAULT (_MSC_STATUS_TIMEOUT_DEFAULT << 6) /**< Shifted mode DEFAULT for MSC_STATUS */ 320 #define MSC_STATUS_RANGEPARTIAL (0x1UL << 7) /**< EraseRange with skipped locked pages */ 321 #define _MSC_STATUS_RANGEPARTIAL_SHIFT 7 /**< Shift value for MSC_RANGEPARTIAL */ 322 #define _MSC_STATUS_RANGEPARTIAL_MASK 0x80UL /**< Bit mask for MSC_RANGEPARTIAL */ 323 #define _MSC_STATUS_RANGEPARTIAL_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_STATUS */ 324 #define MSC_STATUS_RANGEPARTIAL_DEFAULT (_MSC_STATUS_RANGEPARTIAL_DEFAULT << 7) /**< Shifted mode DEFAULT for MSC_STATUS */ 325 #define MSC_STATUS_REGLOCK (0x1UL << 16) /**< Register Lock Status */ 326 #define _MSC_STATUS_REGLOCK_SHIFT 16 /**< Shift value for MSC_REGLOCK */ 327 #define _MSC_STATUS_REGLOCK_MASK 0x10000UL /**< Bit mask for MSC_REGLOCK */ 328 #define _MSC_STATUS_REGLOCK_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_STATUS */ 329 #define _MSC_STATUS_REGLOCK_UNLOCKED 0x00000000UL /**< Mode UNLOCKED for MSC_STATUS */ 330 #define _MSC_STATUS_REGLOCK_LOCKED 0x00000001UL /**< Mode LOCKED for MSC_STATUS */ 331 #define MSC_STATUS_REGLOCK_DEFAULT (_MSC_STATUS_REGLOCK_DEFAULT << 16) /**< Shifted mode DEFAULT for MSC_STATUS */ 332 #define MSC_STATUS_REGLOCK_UNLOCKED (_MSC_STATUS_REGLOCK_UNLOCKED << 16) /**< Shifted mode UNLOCKED for MSC_STATUS */ 333 #define MSC_STATUS_REGLOCK_LOCKED (_MSC_STATUS_REGLOCK_LOCKED << 16) /**< Shifted mode LOCKED for MSC_STATUS */ 334 #define MSC_STATUS_PWRON (0x1UL << 24) /**< Flash Power On Status */ 335 #define _MSC_STATUS_PWRON_SHIFT 24 /**< Shift value for MSC_PWRON */ 336 #define _MSC_STATUS_PWRON_MASK 0x1000000UL /**< Bit mask for MSC_PWRON */ 337 #define _MSC_STATUS_PWRON_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_STATUS */ 338 #define MSC_STATUS_PWRON_DEFAULT (_MSC_STATUS_PWRON_DEFAULT << 24) /**< Shifted mode DEFAULT for MSC_STATUS */ 339 #define MSC_STATUS_WREADY (0x1UL << 27) /**< Flash Write Ready */ 340 #define _MSC_STATUS_WREADY_SHIFT 27 /**< Shift value for MSC_WREADY */ 341 #define _MSC_STATUS_WREADY_MASK 0x8000000UL /**< Bit mask for MSC_WREADY */ 342 #define _MSC_STATUS_WREADY_DEFAULT 0x00000001UL /**< Mode DEFAULT for MSC_STATUS */ 343 #define MSC_STATUS_WREADY_DEFAULT (_MSC_STATUS_WREADY_DEFAULT << 27) /**< Shifted mode DEFAULT for MSC_STATUS */ 344 #define _MSC_STATUS_PWRUPCKBDFAILCOUNT_SHIFT 28 /**< Shift value for MSC_PWRUPCKBDFAILCOUNT */ 345 #define _MSC_STATUS_PWRUPCKBDFAILCOUNT_MASK 0xF0000000UL /**< Bit mask for MSC_PWRUPCKBDFAILCOUNT */ 346 #define _MSC_STATUS_PWRUPCKBDFAILCOUNT_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_STATUS */ 347 #define MSC_STATUS_PWRUPCKBDFAILCOUNT_DEFAULT (_MSC_STATUS_PWRUPCKBDFAILCOUNT_DEFAULT << 28) /**< Shifted mode DEFAULT for MSC_STATUS */ 348 349 /* Bit fields for MSC IF */ 350 #define _MSC_IF_RESETVALUE 0x00000000UL /**< Default value for MSC_IF */ 351 #define _MSC_IF_MASK 0x00000307UL /**< Mask for MSC_IF */ 352 #define MSC_IF_ERASE (0x1UL << 0) /**< Host Erase Done Interrupt Read Flag */ 353 #define _MSC_IF_ERASE_SHIFT 0 /**< Shift value for MSC_ERASE */ 354 #define _MSC_IF_ERASE_MASK 0x1UL /**< Bit mask for MSC_ERASE */ 355 #define _MSC_IF_ERASE_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_IF */ 356 #define MSC_IF_ERASE_DEFAULT (_MSC_IF_ERASE_DEFAULT << 0) /**< Shifted mode DEFAULT for MSC_IF */ 357 #define MSC_IF_WRITE (0x1UL << 1) /**< Host Write Done Interrupt Read Flag */ 358 #define _MSC_IF_WRITE_SHIFT 1 /**< Shift value for MSC_WRITE */ 359 #define _MSC_IF_WRITE_MASK 0x2UL /**< Bit mask for MSC_WRITE */ 360 #define _MSC_IF_WRITE_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_IF */ 361 #define MSC_IF_WRITE_DEFAULT (_MSC_IF_WRITE_DEFAULT << 1) /**< Shifted mode DEFAULT for MSC_IF */ 362 #define MSC_IF_WDATAOV (0x1UL << 2) /**< Host write buffer overflow */ 363 #define _MSC_IF_WDATAOV_SHIFT 2 /**< Shift value for MSC_WDATAOV */ 364 #define _MSC_IF_WDATAOV_MASK 0x4UL /**< Bit mask for MSC_WDATAOV */ 365 #define _MSC_IF_WDATAOV_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_IF */ 366 #define MSC_IF_WDATAOV_DEFAULT (_MSC_IF_WDATAOV_DEFAULT << 2) /**< Shifted mode DEFAULT for MSC_IF */ 367 #define MSC_IF_PWRUPF (0x1UL << 8) /**< Flash Power Up Sequence Complete Flag */ 368 #define _MSC_IF_PWRUPF_SHIFT 8 /**< Shift value for MSC_PWRUPF */ 369 #define _MSC_IF_PWRUPF_MASK 0x100UL /**< Bit mask for MSC_PWRUPF */ 370 #define _MSC_IF_PWRUPF_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_IF */ 371 #define MSC_IF_PWRUPF_DEFAULT (_MSC_IF_PWRUPF_DEFAULT << 8) /**< Shifted mode DEFAULT for MSC_IF */ 372 #define MSC_IF_PWROFF (0x1UL << 9) /**< Flash Power Off Sequence Complete Flag */ 373 #define _MSC_IF_PWROFF_SHIFT 9 /**< Shift value for MSC_PWROFF */ 374 #define _MSC_IF_PWROFF_MASK 0x200UL /**< Bit mask for MSC_PWROFF */ 375 #define _MSC_IF_PWROFF_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_IF */ 376 #define MSC_IF_PWROFF_DEFAULT (_MSC_IF_PWROFF_DEFAULT << 9) /**< Shifted mode DEFAULT for MSC_IF */ 377 378 /* Bit fields for MSC IEN */ 379 #define _MSC_IEN_RESETVALUE 0x00000000UL /**< Default value for MSC_IEN */ 380 #define _MSC_IEN_MASK 0x00000307UL /**< Mask for MSC_IEN */ 381 #define MSC_IEN_ERASE (0x1UL << 0) /**< Erase Done Interrupt enable */ 382 #define _MSC_IEN_ERASE_SHIFT 0 /**< Shift value for MSC_ERASE */ 383 #define _MSC_IEN_ERASE_MASK 0x1UL /**< Bit mask for MSC_ERASE */ 384 #define _MSC_IEN_ERASE_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_IEN */ 385 #define MSC_IEN_ERASE_DEFAULT (_MSC_IEN_ERASE_DEFAULT << 0) /**< Shifted mode DEFAULT for MSC_IEN */ 386 #define MSC_IEN_WRITE (0x1UL << 1) /**< Write Done Interrupt enable */ 387 #define _MSC_IEN_WRITE_SHIFT 1 /**< Shift value for MSC_WRITE */ 388 #define _MSC_IEN_WRITE_MASK 0x2UL /**< Bit mask for MSC_WRITE */ 389 #define _MSC_IEN_WRITE_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_IEN */ 390 #define MSC_IEN_WRITE_DEFAULT (_MSC_IEN_WRITE_DEFAULT << 1) /**< Shifted mode DEFAULT for MSC_IEN */ 391 #define MSC_IEN_WDATAOV (0x1UL << 2) /**< write data buffer overflow irq enable */ 392 #define _MSC_IEN_WDATAOV_SHIFT 2 /**< Shift value for MSC_WDATAOV */ 393 #define _MSC_IEN_WDATAOV_MASK 0x4UL /**< Bit mask for MSC_WDATAOV */ 394 #define _MSC_IEN_WDATAOV_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_IEN */ 395 #define MSC_IEN_WDATAOV_DEFAULT (_MSC_IEN_WDATAOV_DEFAULT << 2) /**< Shifted mode DEFAULT for MSC_IEN */ 396 #define MSC_IEN_PWRUPF (0x1UL << 8) /**< Flash Power Up Seq done irq enable */ 397 #define _MSC_IEN_PWRUPF_SHIFT 8 /**< Shift value for MSC_PWRUPF */ 398 #define _MSC_IEN_PWRUPF_MASK 0x100UL /**< Bit mask for MSC_PWRUPF */ 399 #define _MSC_IEN_PWRUPF_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_IEN */ 400 #define MSC_IEN_PWRUPF_DEFAULT (_MSC_IEN_PWRUPF_DEFAULT << 8) /**< Shifted mode DEFAULT for MSC_IEN */ 401 #define MSC_IEN_PWROFF (0x1UL << 9) /**< Flash Power Off Seq done irq enable */ 402 #define _MSC_IEN_PWROFF_SHIFT 9 /**< Shift value for MSC_PWROFF */ 403 #define _MSC_IEN_PWROFF_MASK 0x200UL /**< Bit mask for MSC_PWROFF */ 404 #define _MSC_IEN_PWROFF_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_IEN */ 405 #define MSC_IEN_PWROFF_DEFAULT (_MSC_IEN_PWROFF_DEFAULT << 9) /**< Shifted mode DEFAULT for MSC_IEN */ 406 407 /* Bit fields for MSC USERDATASIZE */ 408 #define _MSC_USERDATASIZE_RESETVALUE 0x00000004UL /**< Default value for MSC_USERDATASIZE */ 409 #define _MSC_USERDATASIZE_MASK 0x0000003FUL /**< Mask for MSC_USERDATASIZE */ 410 #define _MSC_USERDATASIZE_USERDATASIZE_SHIFT 0 /**< Shift value for MSC_USERDATASIZE */ 411 #define _MSC_USERDATASIZE_USERDATASIZE_MASK 0x3FUL /**< Bit mask for MSC_USERDATASIZE */ 412 #define _MSC_USERDATASIZE_USERDATASIZE_DEFAULT 0x00000004UL /**< Mode DEFAULT for MSC_USERDATASIZE */ 413 #define MSC_USERDATASIZE_USERDATASIZE_DEFAULT (_MSC_USERDATASIZE_USERDATASIZE_DEFAULT << 0) /**< Shifted mode DEFAULT for MSC_USERDATASIZE */ 414 415 /* Bit fields for MSC CMD */ 416 #define _MSC_CMD_RESETVALUE 0x00000000UL /**< Default value for MSC_CMD */ 417 #define _MSC_CMD_MASK 0x00000011UL /**< Mask for MSC_CMD */ 418 #define MSC_CMD_PWRUP (0x1UL << 0) /**< Flash Power Up Command */ 419 #define _MSC_CMD_PWRUP_SHIFT 0 /**< Shift value for MSC_PWRUP */ 420 #define _MSC_CMD_PWRUP_MASK 0x1UL /**< Bit mask for MSC_PWRUP */ 421 #define _MSC_CMD_PWRUP_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_CMD */ 422 #define MSC_CMD_PWRUP_DEFAULT (_MSC_CMD_PWRUP_DEFAULT << 0) /**< Shifted mode DEFAULT for MSC_CMD */ 423 #define MSC_CMD_PWROFF (0x1UL << 4) /**< Flash power off/sleep command */ 424 #define _MSC_CMD_PWROFF_SHIFT 4 /**< Shift value for MSC_PWROFF */ 425 #define _MSC_CMD_PWROFF_MASK 0x10UL /**< Bit mask for MSC_PWROFF */ 426 #define _MSC_CMD_PWROFF_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_CMD */ 427 #define MSC_CMD_PWROFF_DEFAULT (_MSC_CMD_PWROFF_DEFAULT << 4) /**< Shifted mode DEFAULT for MSC_CMD */ 428 429 /* Bit fields for MSC LOCK */ 430 #define _MSC_LOCK_RESETVALUE 0x00000000UL /**< Default value for MSC_LOCK */ 431 #define _MSC_LOCK_MASK 0x0000FFFFUL /**< Mask for MSC_LOCK */ 432 #define _MSC_LOCK_LOCKKEY_SHIFT 0 /**< Shift value for MSC_LOCKKEY */ 433 #define _MSC_LOCK_LOCKKEY_MASK 0xFFFFUL /**< Bit mask for MSC_LOCKKEY */ 434 #define _MSC_LOCK_LOCKKEY_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_LOCK */ 435 #define _MSC_LOCK_LOCKKEY_LOCK 0x00000000UL /**< Mode LOCK for MSC_LOCK */ 436 #define _MSC_LOCK_LOCKKEY_UNLOCK 0x00001B71UL /**< Mode UNLOCK for MSC_LOCK */ 437 #define MSC_LOCK_LOCKKEY_DEFAULT (_MSC_LOCK_LOCKKEY_DEFAULT << 0) /**< Shifted mode DEFAULT for MSC_LOCK */ 438 #define MSC_LOCK_LOCKKEY_LOCK (_MSC_LOCK_LOCKKEY_LOCK << 0) /**< Shifted mode LOCK for MSC_LOCK */ 439 #define MSC_LOCK_LOCKKEY_UNLOCK (_MSC_LOCK_LOCKKEY_UNLOCK << 0) /**< Shifted mode UNLOCK for MSC_LOCK */ 440 441 /* Bit fields for MSC MISCLOCKWORD */ 442 #define _MSC_MISCLOCKWORD_RESETVALUE 0x00000011UL /**< Default value for MSC_MISCLOCKWORD */ 443 #define _MSC_MISCLOCKWORD_MASK 0x00000011UL /**< Mask for MSC_MISCLOCKWORD */ 444 #define MSC_MISCLOCKWORD_MELOCKBIT (0x1UL << 0) /**< Mass Erase Lock */ 445 #define _MSC_MISCLOCKWORD_MELOCKBIT_SHIFT 0 /**< Shift value for MSC_MELOCKBIT */ 446 #define _MSC_MISCLOCKWORD_MELOCKBIT_MASK 0x1UL /**< Bit mask for MSC_MELOCKBIT */ 447 #define _MSC_MISCLOCKWORD_MELOCKBIT_DEFAULT 0x00000001UL /**< Mode DEFAULT for MSC_MISCLOCKWORD */ 448 #define MSC_MISCLOCKWORD_MELOCKBIT_DEFAULT (_MSC_MISCLOCKWORD_MELOCKBIT_DEFAULT << 0) /**< Shifted mode DEFAULT for MSC_MISCLOCKWORD */ 449 #define MSC_MISCLOCKWORD_UDLOCKBIT (0x1UL << 4) /**< User Data Lock */ 450 #define _MSC_MISCLOCKWORD_UDLOCKBIT_SHIFT 4 /**< Shift value for MSC_UDLOCKBIT */ 451 #define _MSC_MISCLOCKWORD_UDLOCKBIT_MASK 0x10UL /**< Bit mask for MSC_UDLOCKBIT */ 452 #define _MSC_MISCLOCKWORD_UDLOCKBIT_DEFAULT 0x00000001UL /**< Mode DEFAULT for MSC_MISCLOCKWORD */ 453 #define MSC_MISCLOCKWORD_UDLOCKBIT_DEFAULT (_MSC_MISCLOCKWORD_UDLOCKBIT_DEFAULT << 4) /**< Shifted mode DEFAULT for MSC_MISCLOCKWORD */ 454 455 /* Bit fields for MSC PWRCTRL */ 456 #define _MSC_PWRCTRL_RESETVALUE 0x00100002UL /**< Default value for MSC_PWRCTRL */ 457 #define _MSC_PWRCTRL_MASK 0x00FF0013UL /**< Mask for MSC_PWRCTRL */ 458 #define MSC_PWRCTRL_PWROFFONEM1ENTRY (0x1UL << 0) /**< Power down Flash macro when enter EM1 */ 459 #define _MSC_PWRCTRL_PWROFFONEM1ENTRY_SHIFT 0 /**< Shift value for MSC_PWROFFONEM1ENTRY */ 460 #define _MSC_PWRCTRL_PWROFFONEM1ENTRY_MASK 0x1UL /**< Bit mask for MSC_PWROFFONEM1ENTRY */ 461 #define _MSC_PWRCTRL_PWROFFONEM1ENTRY_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_PWRCTRL */ 462 #define MSC_PWRCTRL_PWROFFONEM1ENTRY_DEFAULT (_MSC_PWRCTRL_PWROFFONEM1ENTRY_DEFAULT << 0) /**< Shifted mode DEFAULT for MSC_PWRCTRL */ 463 #define MSC_PWRCTRL_PWROFFONEM1PENTRY (0x1UL << 1) /**< Power down Flash macro when enter EM1P */ 464 #define _MSC_PWRCTRL_PWROFFONEM1PENTRY_SHIFT 1 /**< Shift value for MSC_PWROFFONEM1PENTRY */ 465 #define _MSC_PWRCTRL_PWROFFONEM1PENTRY_MASK 0x2UL /**< Bit mask for MSC_PWROFFONEM1PENTRY */ 466 #define _MSC_PWRCTRL_PWROFFONEM1PENTRY_DEFAULT 0x00000001UL /**< Mode DEFAULT for MSC_PWRCTRL */ 467 #define MSC_PWRCTRL_PWROFFONEM1PENTRY_DEFAULT (_MSC_PWRCTRL_PWROFFONEM1PENTRY_DEFAULT << 1) /**< Shifted mode DEFAULT for MSC_PWRCTRL */ 468 #define MSC_PWRCTRL_PWROFFENTRYAGAIN (0x1UL << 4) /**< POWER down flash again in EM1/EM1p */ 469 #define _MSC_PWRCTRL_PWROFFENTRYAGAIN_SHIFT 4 /**< Shift value for MSC_PWROFFENTRYAGAIN */ 470 #define _MSC_PWRCTRL_PWROFFENTRYAGAIN_MASK 0x10UL /**< Bit mask for MSC_PWROFFENTRYAGAIN */ 471 #define _MSC_PWRCTRL_PWROFFENTRYAGAIN_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_PWRCTRL */ 472 #define MSC_PWRCTRL_PWROFFENTRYAGAIN_DEFAULT (_MSC_PWRCTRL_PWROFFENTRYAGAIN_DEFAULT << 4) /**< Shifted mode DEFAULT for MSC_PWRCTRL */ 473 #define _MSC_PWRCTRL_PWROFFDLY_SHIFT 16 /**< Shift value for MSC_PWROFFDLY */ 474 #define _MSC_PWRCTRL_PWROFFDLY_MASK 0xFF0000UL /**< Bit mask for MSC_PWROFFDLY */ 475 #define _MSC_PWRCTRL_PWROFFDLY_DEFAULT 0x00000010UL /**< Mode DEFAULT for MSC_PWRCTRL */ 476 #define MSC_PWRCTRL_PWROFFDLY_DEFAULT (_MSC_PWRCTRL_PWROFFDLY_DEFAULT << 16) /**< Shifted mode DEFAULT for MSC_PWRCTRL */ 477 478 /* Bit fields for MSC PAGELOCK0 */ 479 #define _MSC_PAGELOCK0_RESETVALUE 0x00000000UL /**< Default value for MSC_PAGELOCK0 */ 480 #define _MSC_PAGELOCK0_MASK 0xFFFFFFFFUL /**< Mask for MSC_PAGELOCK0 */ 481 #define _MSC_PAGELOCK0_LOCKBIT_SHIFT 0 /**< Shift value for MSC_LOCKBIT */ 482 #define _MSC_PAGELOCK0_LOCKBIT_MASK 0xFFFFFFFFUL /**< Bit mask for MSC_LOCKBIT */ 483 #define _MSC_PAGELOCK0_LOCKBIT_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_PAGELOCK0 */ 484 #define MSC_PAGELOCK0_LOCKBIT_DEFAULT (_MSC_PAGELOCK0_LOCKBIT_DEFAULT << 0) /**< Shifted mode DEFAULT for MSC_PAGELOCK0 */ 485 486 /* Bit fields for MSC PAGELOCK1 */ 487 #define _MSC_PAGELOCK1_RESETVALUE 0x00000000UL /**< Default value for MSC_PAGELOCK1 */ 488 #define _MSC_PAGELOCK1_MASK 0xFFFFFFFFUL /**< Mask for MSC_PAGELOCK1 */ 489 #define _MSC_PAGELOCK1_LOCKBIT_SHIFT 0 /**< Shift value for MSC_LOCKBIT */ 490 #define _MSC_PAGELOCK1_LOCKBIT_MASK 0xFFFFFFFFUL /**< Bit mask for MSC_LOCKBIT */ 491 #define _MSC_PAGELOCK1_LOCKBIT_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_PAGELOCK1 */ 492 #define MSC_PAGELOCK1_LOCKBIT_DEFAULT (_MSC_PAGELOCK1_LOCKBIT_DEFAULT << 0) /**< Shifted mode DEFAULT for MSC_PAGELOCK1 */ 493 494 /* Bit fields for MSC PAGELOCK2 */ 495 #define _MSC_PAGELOCK2_RESETVALUE 0x00000000UL /**< Default value for MSC_PAGELOCK2 */ 496 #define _MSC_PAGELOCK2_MASK 0xFFFFFFFFUL /**< Mask for MSC_PAGELOCK2 */ 497 #define _MSC_PAGELOCK2_LOCKBIT_SHIFT 0 /**< Shift value for MSC_LOCKBIT */ 498 #define _MSC_PAGELOCK2_LOCKBIT_MASK 0xFFFFFFFFUL /**< Bit mask for MSC_LOCKBIT */ 499 #define _MSC_PAGELOCK2_LOCKBIT_DEFAULT 0x00000000UL /**< Mode DEFAULT for MSC_PAGELOCK2 */ 500 #define MSC_PAGELOCK2_LOCKBIT_DEFAULT (_MSC_PAGELOCK2_LOCKBIT_DEFAULT << 0) /**< Shifted mode DEFAULT for MSC_PAGELOCK2 */ 501 502 /** @} End of group EFR32BG27_MSC_BitFields */ 503 /** @} End of group EFR32BG27_MSC */ 504 /** @} End of group Parts */ 505 506 #endif /* EFR32BG27_MSC_H */ 507