The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
TARGET_MAX32625NEXPAQ/TOOLCHAIN_IAR/flc_regs.h@171:3a7713b1edbc, 2018-11-08 (annotated)
- Committer:
- AnnaBridge
- Date:
- Thu Nov 08 11:45:42 2018 +0000
- Revision:
- 171:3a7713b1edbc
- Parent:
- TARGET_MAX32625PICO/TARGET_Maxim/TARGET_MAX32625/device/flc_regs.h@169:a7c7b631e539
mbed library. Release version 164
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Anna Bridge |
169:a7c7b631e539 | 1 | /******************************************************************************* |
Anna Bridge |
169:a7c7b631e539 | 2 | * Copyright (C) 2016 Maxim Integrated Products, Inc., All Rights Reserved. |
Anna Bridge |
169:a7c7b631e539 | 3 | * |
Anna Bridge |
169:a7c7b631e539 | 4 | * Permission is hereby granted, free of charge, to any person obtaining a |
Anna Bridge |
169:a7c7b631e539 | 5 | * copy of this software and associated documentation files (the "Software"), |
Anna Bridge |
169:a7c7b631e539 | 6 | * to deal in the Software without restriction, including without limitation |
Anna Bridge |
169:a7c7b631e539 | 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
Anna Bridge |
169:a7c7b631e539 | 8 | * and/or sell copies of the Software, and to permit persons to whom the |
Anna Bridge |
169:a7c7b631e539 | 9 | * Software is furnished to do so, subject to the following conditions: |
Anna Bridge |
169:a7c7b631e539 | 10 | * |
Anna Bridge |
169:a7c7b631e539 | 11 | * The above copyright notice and this permission notice shall be included |
Anna Bridge |
169:a7c7b631e539 | 12 | * in all copies or substantial portions of the Software. |
Anna Bridge |
169:a7c7b631e539 | 13 | * |
Anna Bridge |
169:a7c7b631e539 | 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
Anna Bridge |
169:a7c7b631e539 | 15 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
Anna Bridge |
169:a7c7b631e539 | 16 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
Anna Bridge |
169:a7c7b631e539 | 17 | * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES |
Anna Bridge |
169:a7c7b631e539 | 18 | * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
Anna Bridge |
169:a7c7b631e539 | 19 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
Anna Bridge |
169:a7c7b631e539 | 20 | * OTHER DEALINGS IN THE SOFTWARE. |
Anna Bridge |
169:a7c7b631e539 | 21 | * |
Anna Bridge |
169:a7c7b631e539 | 22 | * Except as contained in this notice, the name of Maxim Integrated |
Anna Bridge |
169:a7c7b631e539 | 23 | * Products, Inc. shall not be used except as stated in the Maxim Integrated |
Anna Bridge |
169:a7c7b631e539 | 24 | * Products, Inc. Branding Policy. |
Anna Bridge |
169:a7c7b631e539 | 25 | * |
Anna Bridge |
169:a7c7b631e539 | 26 | * The mere transfer of this software does not imply any licenses |
Anna Bridge |
169:a7c7b631e539 | 27 | * of trade secrets, proprietary technology, copyrights, patents, |
Anna Bridge |
169:a7c7b631e539 | 28 | * trademarks, maskwork rights, or any other form of intellectual |
Anna Bridge |
169:a7c7b631e539 | 29 | * property whatsoever. Maxim Integrated Products, Inc. retains all |
Anna Bridge |
169:a7c7b631e539 | 30 | * ownership rights. |
Anna Bridge |
169:a7c7b631e539 | 31 | ******************************************************************************/ |
Anna Bridge |
169:a7c7b631e539 | 32 | |
Anna Bridge |
169:a7c7b631e539 | 33 | #ifndef _MXC_FLC_REGS_H_ |
Anna Bridge |
169:a7c7b631e539 | 34 | #define _MXC_FLC_REGS_H_ |
Anna Bridge |
169:a7c7b631e539 | 35 | |
Anna Bridge |
169:a7c7b631e539 | 36 | #ifdef __cplusplus |
Anna Bridge |
169:a7c7b631e539 | 37 | extern "C" { |
Anna Bridge |
169:a7c7b631e539 | 38 | #endif |
Anna Bridge |
169:a7c7b631e539 | 39 | |
Anna Bridge |
169:a7c7b631e539 | 40 | #include <stdint.h> |
Anna Bridge |
169:a7c7b631e539 | 41 | #include "mxc_device.h" |
Anna Bridge |
169:a7c7b631e539 | 42 | |
Anna Bridge |
169:a7c7b631e539 | 43 | /* |
Anna Bridge |
169:a7c7b631e539 | 44 | If types are not defined elsewhere (CMSIS) define them here |
Anna Bridge |
169:a7c7b631e539 | 45 | */ |
Anna Bridge |
169:a7c7b631e539 | 46 | #ifndef __IO |
Anna Bridge |
169:a7c7b631e539 | 47 | #define __IO volatile |
Anna Bridge |
169:a7c7b631e539 | 48 | #endif |
Anna Bridge |
169:a7c7b631e539 | 49 | #ifndef __I |
Anna Bridge |
169:a7c7b631e539 | 50 | #define __I volatile const |
Anna Bridge |
169:a7c7b631e539 | 51 | #endif |
Anna Bridge |
169:a7c7b631e539 | 52 | #ifndef __O |
Anna Bridge |
169:a7c7b631e539 | 53 | #define __O volatile |
Anna Bridge |
169:a7c7b631e539 | 54 | #endif |
Anna Bridge |
169:a7c7b631e539 | 55 | |
Anna Bridge |
169:a7c7b631e539 | 56 | |
Anna Bridge |
169:a7c7b631e539 | 57 | #define MXC_V_FLC_ERASE_CODE_PAGE_ERASE ((uint8_t)0x55) |
Anna Bridge |
169:a7c7b631e539 | 58 | #define MXC_V_FLC_ERASE_CODE_MASS_ERASE ((uint8_t)0xAA) |
Anna Bridge |
169:a7c7b631e539 | 59 | #define MXC_V_FLC_FLSH_UNLOCK_KEY ((uint8_t)0x2) |
Anna Bridge |
169:a7c7b631e539 | 60 | |
Anna Bridge |
169:a7c7b631e539 | 61 | /* |
Anna Bridge |
169:a7c7b631e539 | 62 | Typedefed structure(s) for module registers (per instance or section) with direct 32-bit |
Anna Bridge |
169:a7c7b631e539 | 63 | access to each register in module. |
Anna Bridge |
169:a7c7b631e539 | 64 | */ |
Anna Bridge |
169:a7c7b631e539 | 65 | |
Anna Bridge |
169:a7c7b631e539 | 66 | /* Offset Register Description |
Anna Bridge |
169:a7c7b631e539 | 67 | ============= ============================================================================ */ |
Anna Bridge |
169:a7c7b631e539 | 68 | typedef struct { |
Anna Bridge |
169:a7c7b631e539 | 69 | __IO uint32_t faddr; /* 0x0000 Flash Operation Address */ |
Anna Bridge |
169:a7c7b631e539 | 70 | __IO uint32_t fckdiv; /* 0x0004 Flash Clock Pulse Divisor */ |
Anna Bridge |
169:a7c7b631e539 | 71 | __IO uint32_t ctrl; /* 0x0008 Flash Control Register */ |
Anna Bridge |
169:a7c7b631e539 | 72 | __I uint32_t rsv00C[6]; /* 0x000C-0x0020 */ |
Anna Bridge |
169:a7c7b631e539 | 73 | __IO uint32_t intr; /* 0x0024 Flash Controller Interrupt Flags and Enable/Disable 0 */ |
Anna Bridge |
169:a7c7b631e539 | 74 | __I uint32_t rsv028[2]; /* 0x0028-0x002C */ |
Anna Bridge |
169:a7c7b631e539 | 75 | __IO uint32_t fdata; /* 0x0030 Flash Operation Data Register */ |
Anna Bridge |
169:a7c7b631e539 | 76 | __I uint32_t rsv034[7]; /* 0x0034-0x004C */ |
Anna Bridge |
169:a7c7b631e539 | 77 | __IO uint32_t perform; /* 0x0050 Flash Performance Settings */ |
Anna Bridge |
169:a7c7b631e539 | 78 | __IO uint32_t tacc; /* 0x0054 Flash Read Cycle Config */ |
Anna Bridge |
169:a7c7b631e539 | 79 | __IO uint32_t tprog; /* 0x0058 Flash Write Cycle Config */ |
Anna Bridge |
169:a7c7b631e539 | 80 | __I uint32_t rsv05C[9]; /* 0x005C-0x007C */ |
Anna Bridge |
169:a7c7b631e539 | 81 | __IO uint32_t status; /* 0x0080 Security Status Flags */ |
Anna Bridge |
169:a7c7b631e539 | 82 | __I uint32_t rsv084; /* 0x0084 */ |
Anna Bridge |
169:a7c7b631e539 | 83 | __IO uint32_t security; /* 0x0088 Flash Controller Security Settings */ |
Anna Bridge |
169:a7c7b631e539 | 84 | __I uint32_t rsv08C[4]; /* 0x008C-0x0098 */ |
Anna Bridge |
169:a7c7b631e539 | 85 | __IO uint32_t bypass; /* 0x009C Status Flags for DSB Operations */ |
Anna Bridge |
169:a7c7b631e539 | 86 | __I uint32_t rsv0A0[24]; /* 0x00A0-0x00FC */ |
Anna Bridge |
169:a7c7b631e539 | 87 | __IO uint32_t user_option; /* 0x0100 Used to set DSB Access code and Auto-Lock in info block */ |
Anna Bridge |
169:a7c7b631e539 | 88 | __I uint32_t rsv104[15]; /* 0x0104-0x013C */ |
Anna Bridge |
169:a7c7b631e539 | 89 | __IO uint32_t ctrl2; /* 0x0140 Flash Control Register 2 */ |
Anna Bridge |
169:a7c7b631e539 | 90 | __IO uint32_t intfl1; /* 0x0144 Interrupt Flags Register 1 */ |
Anna Bridge |
169:a7c7b631e539 | 91 | __IO uint32_t inten1; /* 0x0148 Interrupt Enable/Disable Register 1 */ |
Anna Bridge |
169:a7c7b631e539 | 92 | __I uint32_t rsv14C[9]; /* 0x014C-0x016C */ |
Anna Bridge |
169:a7c7b631e539 | 93 | __IO uint32_t bl_ctrl; /* 0x0170 Bootloader Control Register */ |
Anna Bridge |
169:a7c7b631e539 | 94 | __IO uint32_t twk; /* 0x0174 PDM33 Register */ |
Anna Bridge |
169:a7c7b631e539 | 95 | __I uint32_t rsv178; /* 0x0178 */ |
Anna Bridge |
169:a7c7b631e539 | 96 | __IO uint32_t slm; /* 0x017C Sleep Mode Register */ |
Anna Bridge |
169:a7c7b631e539 | 97 | __I uint32_t rsv180[32]; /* 0x0180-0x01FC */ |
Anna Bridge |
169:a7c7b631e539 | 98 | __IO uint32_t disable_xr0; /* 0x0200 Disable Flash Page Exec/Read Register 0 */ |
Anna Bridge |
169:a7c7b631e539 | 99 | __IO uint32_t disable_xr1; /* 0x0204 Disable Flash Page Exec/Read Register 1 */ |
Anna Bridge |
169:a7c7b631e539 | 100 | __IO uint32_t disable_xr2; /* 0x0208 Disable Flash Page Exec/Read Register 2 */ |
Anna Bridge |
169:a7c7b631e539 | 101 | __IO uint32_t disable_xr3; /* 0x020C Disable Flash Page Exec/Read Register 3 */ |
Anna Bridge |
169:a7c7b631e539 | 102 | __IO uint32_t disable_xr4; /* 0x0210 Disable Flash Page Exec/Read Register 4 */ |
Anna Bridge |
169:a7c7b631e539 | 103 | __IO uint32_t disable_xr5; /* 0x0214 Disable Flash Page Exec/Read Register 5 */ |
Anna Bridge |
169:a7c7b631e539 | 104 | __IO uint32_t disable_xr6; /* 0x0218 Disable Flash Page Exec/Read Register 6 */ |
Anna Bridge |
169:a7c7b631e539 | 105 | __IO uint32_t disable_xr7; /* 0x021C Disable Flash Page Exec/Read Register 7 */ |
Anna Bridge |
169:a7c7b631e539 | 106 | __I uint32_t rsv220[56]; /* 0x0220-0x02FC */ |
Anna Bridge |
169:a7c7b631e539 | 107 | __IO uint32_t disable_we0; /* 0x0300 Disable Flash Page Write/Erase Register 0 */ |
Anna Bridge |
169:a7c7b631e539 | 108 | __IO uint32_t disable_we1; /* 0x0304 Disable Flash Page Write/Erase Register 1 */ |
Anna Bridge |
169:a7c7b631e539 | 109 | __IO uint32_t disable_we2; /* 0x0308 Disable Flash Page Write/Erase Register 2 */ |
Anna Bridge |
169:a7c7b631e539 | 110 | __IO uint32_t disable_we3; /* 0x030C Disable Flash Page Write/Erase Register 3 */ |
Anna Bridge |
169:a7c7b631e539 | 111 | __IO uint32_t disable_we4; /* 0x0310 Disable Flash Page Write/Erase Register 4 */ |
Anna Bridge |
169:a7c7b631e539 | 112 | __IO uint32_t disable_we5; /* 0x0314 Disable Flash Page Write/Erase Register 5 */ |
Anna Bridge |
169:a7c7b631e539 | 113 | __IO uint32_t disable_we6; /* 0x0318 Disable Flash Page Write/Erase Register 6 */ |
Anna Bridge |
169:a7c7b631e539 | 114 | __IO uint32_t disable_we7; /* 0x031C Disable Flash Page Write/Erase Register 7 */ |
Anna Bridge |
169:a7c7b631e539 | 115 | } mxc_flc_regs_t; |
Anna Bridge |
169:a7c7b631e539 | 116 | |
Anna Bridge |
169:a7c7b631e539 | 117 | |
Anna Bridge |
169:a7c7b631e539 | 118 | /* |
Anna Bridge |
169:a7c7b631e539 | 119 | Register offsets for module FLC. |
Anna Bridge |
169:a7c7b631e539 | 120 | */ |
Anna Bridge |
169:a7c7b631e539 | 121 | |
Anna Bridge |
169:a7c7b631e539 | 122 | #define MXC_R_FLC_OFFS_FADDR ((uint32_t)0x00000000UL) |
Anna Bridge |
169:a7c7b631e539 | 123 | #define MXC_R_FLC_OFFS_FCKDIV ((uint32_t)0x00000004UL) |
Anna Bridge |
169:a7c7b631e539 | 124 | #define MXC_R_FLC_OFFS_CTRL ((uint32_t)0x00000008UL) |
Anna Bridge |
169:a7c7b631e539 | 125 | #define MXC_R_FLC_OFFS_INTR ((uint32_t)0x00000024UL) |
Anna Bridge |
169:a7c7b631e539 | 126 | #define MXC_R_FLC_OFFS_FDATA ((uint32_t)0x00000030UL) |
Anna Bridge |
169:a7c7b631e539 | 127 | #define MXC_R_FLC_OFFS_PERFORM ((uint32_t)0x00000050UL) |
Anna Bridge |
169:a7c7b631e539 | 128 | #define MXC_R_FLC_OFFS_TACC ((uint32_t)0x00000054UL) |
Anna Bridge |
169:a7c7b631e539 | 129 | #define MXC_R_FLC_OFFS_TPROG ((uint32_t)0x00000058UL) |
Anna Bridge |
169:a7c7b631e539 | 130 | #define MXC_R_FLC_OFFS_STATUS ((uint32_t)0x00000080UL) |
Anna Bridge |
169:a7c7b631e539 | 131 | #define MXC_R_FLC_OFFS_SECURITY ((uint32_t)0x00000088UL) |
Anna Bridge |
169:a7c7b631e539 | 132 | #define MXC_R_FLC_OFFS_BYPASS ((uint32_t)0x0000009CUL) |
Anna Bridge |
169:a7c7b631e539 | 133 | #define MXC_R_FLC_OFFS_USER_OPTION ((uint32_t)0x00000100UL) |
Anna Bridge |
169:a7c7b631e539 | 134 | #define MXC_R_FLC_OFFS_CTRL2 ((uint32_t)0x00000140UL) |
Anna Bridge |
169:a7c7b631e539 | 135 | #define MXC_R_FLC_OFFS_INTFL1 ((uint32_t)0x00000144UL) |
Anna Bridge |
169:a7c7b631e539 | 136 | #define MXC_R_FLC_OFFS_INTEN1 ((uint32_t)0x00000148UL) |
Anna Bridge |
169:a7c7b631e539 | 137 | #define MXC_R_FLC_OFFS_BL_CTRL ((uint32_t)0x00000170UL) |
Anna Bridge |
169:a7c7b631e539 | 138 | #define MXC_R_FLC_OFFS_TWK ((uint32_t)0x00000174UL) |
Anna Bridge |
169:a7c7b631e539 | 139 | #define MXC_R_FLC_OFFS_SLM ((uint32_t)0x0000017CUL) |
Anna Bridge |
169:a7c7b631e539 | 140 | #define MXC_R_FLC_OFFS_DISABLE_XR0 ((uint32_t)0x00000200UL) |
Anna Bridge |
169:a7c7b631e539 | 141 | #define MXC_R_FLC_OFFS_DISABLE_XR1 ((uint32_t)0x00000204UL) |
Anna Bridge |
169:a7c7b631e539 | 142 | #define MXC_R_FLC_OFFS_DISABLE_XR2 ((uint32_t)0x00000208UL) |
Anna Bridge |
169:a7c7b631e539 | 143 | #define MXC_R_FLC_OFFS_DISABLE_XR3 ((uint32_t)0x0000020CUL) |
Anna Bridge |
169:a7c7b631e539 | 144 | #define MXC_R_FLC_OFFS_DISABLE_XR4 ((uint32_t)0x00000210UL) |
Anna Bridge |
169:a7c7b631e539 | 145 | #define MXC_R_FLC_OFFS_DISABLE_XR5 ((uint32_t)0x00000214UL) |
Anna Bridge |
169:a7c7b631e539 | 146 | #define MXC_R_FLC_OFFS_DISABLE_XR6 ((uint32_t)0x00000218UL) |
Anna Bridge |
169:a7c7b631e539 | 147 | #define MXC_R_FLC_OFFS_DISABLE_XR7 ((uint32_t)0x0000021CUL) |
Anna Bridge |
169:a7c7b631e539 | 148 | #define MXC_R_FLC_OFFS_DISABLE_WE0 ((uint32_t)0x00000300UL) |
Anna Bridge |
169:a7c7b631e539 | 149 | #define MXC_R_FLC_OFFS_DISABLE_WE1 ((uint32_t)0x00000304UL) |
Anna Bridge |
169:a7c7b631e539 | 150 | #define MXC_R_FLC_OFFS_DISABLE_WE2 ((uint32_t)0x00000308UL) |
Anna Bridge |
169:a7c7b631e539 | 151 | #define MXC_R_FLC_OFFS_DISABLE_WE3 ((uint32_t)0x0000030CUL) |
Anna Bridge |
169:a7c7b631e539 | 152 | #define MXC_R_FLC_OFFS_DISABLE_WE4 ((uint32_t)0x00000310UL) |
Anna Bridge |
169:a7c7b631e539 | 153 | #define MXC_R_FLC_OFFS_DISABLE_WE5 ((uint32_t)0x00000314UL) |
Anna Bridge |
169:a7c7b631e539 | 154 | #define MXC_R_FLC_OFFS_DISABLE_WE6 ((uint32_t)0x00000318UL) |
Anna Bridge |
169:a7c7b631e539 | 155 | #define MXC_R_FLC_OFFS_DISABLE_WE7 ((uint32_t)0x0000031CUL) |
Anna Bridge |
169:a7c7b631e539 | 156 | |
Anna Bridge |
169:a7c7b631e539 | 157 | |
Anna Bridge |
169:a7c7b631e539 | 158 | /* |
Anna Bridge |
169:a7c7b631e539 | 159 | Field positions and masks for module FLC. |
Anna Bridge |
169:a7c7b631e539 | 160 | */ |
Anna Bridge |
169:a7c7b631e539 | 161 | |
Anna Bridge |
169:a7c7b631e539 | 162 | #define MXC_F_FLC_FADDR_FADDR_POS 0 |
Anna Bridge |
169:a7c7b631e539 | 163 | #define MXC_F_FLC_FADDR_FADDR ((uint32_t)(0x003FFFFFUL << MXC_F_FLC_FADDR_FADDR_POS)) |
Anna Bridge |
169:a7c7b631e539 | 164 | |
Anna Bridge |
169:a7c7b631e539 | 165 | #define MXC_F_FLC_FCKDIV_FCKDIV_POS 0 |
Anna Bridge |
169:a7c7b631e539 | 166 | #define MXC_F_FLC_FCKDIV_FCKDIV ((uint32_t)(0x0000007FUL << MXC_F_FLC_FCKDIV_FCKDIV_POS)) |
Anna Bridge |
169:a7c7b631e539 | 167 | #define MXC_F_FLC_FCKDIV_AUTO_FCKDIV_RESULT_POS 16 |
Anna Bridge |
169:a7c7b631e539 | 168 | #define MXC_F_FLC_FCKDIV_AUTO_FCKDIV_RESULT ((uint32_t)(0x0000FFFFUL << MXC_F_FLC_FCKDIV_AUTO_FCKDIV_RESULT_POS)) |
Anna Bridge |
169:a7c7b631e539 | 169 | |
Anna Bridge |
169:a7c7b631e539 | 170 | #define MXC_F_FLC_CTRL_WRITE_POS 0 |
Anna Bridge |
169:a7c7b631e539 | 171 | #define MXC_F_FLC_CTRL_WRITE ((uint32_t)(0x00000001UL << MXC_F_FLC_CTRL_WRITE_POS)) |
Anna Bridge |
169:a7c7b631e539 | 172 | #define MXC_F_FLC_CTRL_MASS_ERASE_POS 1 |
Anna Bridge |
169:a7c7b631e539 | 173 | #define MXC_F_FLC_CTRL_MASS_ERASE ((uint32_t)(0x00000001UL << MXC_F_FLC_CTRL_MASS_ERASE_POS)) |
Anna Bridge |
169:a7c7b631e539 | 174 | #define MXC_F_FLC_CTRL_PAGE_ERASE_POS 2 |
Anna Bridge |
169:a7c7b631e539 | 175 | #define MXC_F_FLC_CTRL_PAGE_ERASE ((uint32_t)(0x00000001UL << MXC_F_FLC_CTRL_PAGE_ERASE_POS)) |
Anna Bridge |
169:a7c7b631e539 | 176 | #define MXC_F_FLC_CTRL_ERASE_CODE_POS 8 |
Anna Bridge |
169:a7c7b631e539 | 177 | #define MXC_F_FLC_CTRL_ERASE_CODE ((uint32_t)(0x000000FFUL << MXC_F_FLC_CTRL_ERASE_CODE_POS)) |
Anna Bridge |
169:a7c7b631e539 | 178 | #define MXC_F_FLC_CTRL_INFO_BLOCK_UNLOCK_POS 16 |
Anna Bridge |
169:a7c7b631e539 | 179 | #define MXC_F_FLC_CTRL_INFO_BLOCK_UNLOCK ((uint32_t)(0x00000001UL << MXC_F_FLC_CTRL_INFO_BLOCK_UNLOCK_POS)) |
Anna Bridge |
169:a7c7b631e539 | 180 | #define MXC_F_FLC_CTRL_WRITE_ENABLE_POS 17 |
Anna Bridge |
169:a7c7b631e539 | 181 | #define MXC_F_FLC_CTRL_WRITE_ENABLE ((uint32_t)(0x00000001UL << MXC_F_FLC_CTRL_WRITE_ENABLE_POS)) |
Anna Bridge |
169:a7c7b631e539 | 182 | #define MXC_F_FLC_CTRL_PENDING_POS 24 |
Anna Bridge |
169:a7c7b631e539 | 183 | #define MXC_F_FLC_CTRL_PENDING ((uint32_t)(0x00000001UL << MXC_F_FLC_CTRL_PENDING_POS)) |
Anna Bridge |
169:a7c7b631e539 | 184 | #define MXC_F_FLC_CTRL_INFO_BLOCK_VALID_POS 25 |
Anna Bridge |
169:a7c7b631e539 | 185 | #define MXC_F_FLC_CTRL_INFO_BLOCK_VALID ((uint32_t)(0x00000001UL << MXC_F_FLC_CTRL_INFO_BLOCK_VALID_POS)) |
Anna Bridge |
169:a7c7b631e539 | 186 | #define MXC_F_FLC_CTRL_AUTO_INCRE_MODE_POS 27 |
Anna Bridge |
169:a7c7b631e539 | 187 | #define MXC_F_FLC_CTRL_AUTO_INCRE_MODE ((uint32_t)(0x00000001UL << MXC_F_FLC_CTRL_AUTO_INCRE_MODE_POS)) |
Anna Bridge |
169:a7c7b631e539 | 188 | #define MXC_F_FLC_CTRL_FLSH_UNLOCK_POS 28 |
Anna Bridge |
169:a7c7b631e539 | 189 | #define MXC_F_FLC_CTRL_FLSH_UNLOCK ((uint32_t)(0x0000000FUL << MXC_F_FLC_CTRL_FLSH_UNLOCK_POS)) |
Anna Bridge |
169:a7c7b631e539 | 190 | |
Anna Bridge |
169:a7c7b631e539 | 191 | #define MXC_F_FLC_INTR_FINISHED_IF_POS 0 |
Anna Bridge |
169:a7c7b631e539 | 192 | #define MXC_F_FLC_INTR_FINISHED_IF ((uint32_t)(0x00000001UL << MXC_F_FLC_INTR_FINISHED_IF_POS)) |
Anna Bridge |
169:a7c7b631e539 | 193 | #define MXC_F_FLC_INTR_FAILED_IF_POS 1 |
Anna Bridge |
169:a7c7b631e539 | 194 | #define MXC_F_FLC_INTR_FAILED_IF ((uint32_t)(0x00000001UL << MXC_F_FLC_INTR_FAILED_IF_POS)) |
Anna Bridge |
169:a7c7b631e539 | 195 | #define MXC_F_FLC_INTR_FINISHED_IE_POS 8 |
Anna Bridge |
169:a7c7b631e539 | 196 | #define MXC_F_FLC_INTR_FINISHED_IE ((uint32_t)(0x00000001UL << MXC_F_FLC_INTR_FINISHED_IE_POS)) |
Anna Bridge |
169:a7c7b631e539 | 197 | #define MXC_F_FLC_INTR_FAILED_IE_POS 9 |
Anna Bridge |
169:a7c7b631e539 | 198 | #define MXC_F_FLC_INTR_FAILED_IE ((uint32_t)(0x00000001UL << MXC_F_FLC_INTR_FAILED_IE_POS)) |
Anna Bridge |
169:a7c7b631e539 | 199 | #define MXC_F_FLC_INTR_FAIL_FLAGS_POS 16 |
Anna Bridge |
169:a7c7b631e539 | 200 | #define MXC_F_FLC_INTR_FAIL_FLAGS ((uint32_t)(0x0000FFFFUL << MXC_F_FLC_INTR_FAIL_FLAGS_POS)) |
Anna Bridge |
169:a7c7b631e539 | 201 | |
Anna Bridge |
169:a7c7b631e539 | 202 | #define MXC_F_FLC_PERFORM_DELAY_SE_EN_POS 0 |
Anna Bridge |
169:a7c7b631e539 | 203 | #define MXC_F_FLC_PERFORM_DELAY_SE_EN ((uint32_t)(0x00000001UL << MXC_F_FLC_PERFORM_DELAY_SE_EN_POS)) |
Anna Bridge |
169:a7c7b631e539 | 204 | #define MXC_F_FLC_PERFORM_FAST_READ_MODE_EN_POS 8 |
Anna Bridge |
169:a7c7b631e539 | 205 | #define MXC_F_FLC_PERFORM_FAST_READ_MODE_EN ((uint32_t)(0x00000001UL << MXC_F_FLC_PERFORM_FAST_READ_MODE_EN_POS)) |
Anna Bridge |
169:a7c7b631e539 | 206 | #define MXC_F_FLC_PERFORM_EN_PREVENT_FAIL_POS 12 |
Anna Bridge |
169:a7c7b631e539 | 207 | #define MXC_F_FLC_PERFORM_EN_PREVENT_FAIL ((uint32_t)(0x00000001UL << MXC_F_FLC_PERFORM_EN_PREVENT_FAIL_POS)) |
Anna Bridge |
169:a7c7b631e539 | 208 | #define MXC_F_FLC_PERFORM_EN_BACK2BACK_RDS_POS 16 |
Anna Bridge |
169:a7c7b631e539 | 209 | #define MXC_F_FLC_PERFORM_EN_BACK2BACK_RDS ((uint32_t)(0x00000001UL << MXC_F_FLC_PERFORM_EN_BACK2BACK_RDS_POS)) |
Anna Bridge |
169:a7c7b631e539 | 210 | #define MXC_F_FLC_PERFORM_EN_BACK2BACK_WRS_POS 20 |
Anna Bridge |
169:a7c7b631e539 | 211 | #define MXC_F_FLC_PERFORM_EN_BACK2BACK_WRS ((uint32_t)(0x00000001UL << MXC_F_FLC_PERFORM_EN_BACK2BACK_WRS_POS)) |
Anna Bridge |
169:a7c7b631e539 | 212 | #define MXC_F_FLC_PERFORM_EN_MERGE_GRAB_GNT_POS 24 |
Anna Bridge |
169:a7c7b631e539 | 213 | #define MXC_F_FLC_PERFORM_EN_MERGE_GRAB_GNT ((uint32_t)(0x00000001UL << MXC_F_FLC_PERFORM_EN_MERGE_GRAB_GNT_POS)) |
Anna Bridge |
169:a7c7b631e539 | 214 | #define MXC_F_FLC_PERFORM_AUTO_TACC_POS 28 |
Anna Bridge |
169:a7c7b631e539 | 215 | #define MXC_F_FLC_PERFORM_AUTO_TACC ((uint32_t)(0x00000001UL << MXC_F_FLC_PERFORM_AUTO_TACC_POS)) |
Anna Bridge |
169:a7c7b631e539 | 216 | #define MXC_F_FLC_PERFORM_AUTO_CLKDIV_POS 29 |
Anna Bridge |
169:a7c7b631e539 | 217 | #define MXC_F_FLC_PERFORM_AUTO_CLKDIV ((uint32_t)(0x00000001UL << MXC_F_FLC_PERFORM_AUTO_CLKDIV_POS)) |
Anna Bridge |
169:a7c7b631e539 | 218 | |
Anna Bridge |
169:a7c7b631e539 | 219 | #define MXC_F_FLC_STATUS_JTAG_LOCK_WINDOW_POS 0 |
Anna Bridge |
169:a7c7b631e539 | 220 | #define MXC_F_FLC_STATUS_JTAG_LOCK_WINDOW ((uint32_t)(0x00000001UL << MXC_F_FLC_STATUS_JTAG_LOCK_WINDOW_POS)) |
Anna Bridge |
169:a7c7b631e539 | 221 | #define MXC_F_FLC_STATUS_JTAG_LOCK_STATIC_POS 1 |
Anna Bridge |
169:a7c7b631e539 | 222 | #define MXC_F_FLC_STATUS_JTAG_LOCK_STATIC ((uint32_t)(0x00000001UL << MXC_F_FLC_STATUS_JTAG_LOCK_STATIC_POS)) |
Anna Bridge |
169:a7c7b631e539 | 223 | #define MXC_F_FLC_STATUS_AUTO_LOCK_POS 3 |
Anna Bridge |
169:a7c7b631e539 | 224 | #define MXC_F_FLC_STATUS_AUTO_LOCK ((uint32_t)(0x00000001UL << MXC_F_FLC_STATUS_AUTO_LOCK_POS)) |
Anna Bridge |
169:a7c7b631e539 | 225 | #define MXC_F_FLC_STATUS_TRIM_UPDATE_DONE_POS 29 |
Anna Bridge |
169:a7c7b631e539 | 226 | #define MXC_F_FLC_STATUS_TRIM_UPDATE_DONE ((uint32_t)(0x00000001UL << MXC_F_FLC_STATUS_TRIM_UPDATE_DONE_POS)) |
Anna Bridge |
169:a7c7b631e539 | 227 | #define MXC_F_FLC_STATUS_INFO_BLOCK_VALID_POS 30 |
Anna Bridge |
169:a7c7b631e539 | 228 | #define MXC_F_FLC_STATUS_INFO_BLOCK_VALID ((uint32_t)(0x00000001UL << MXC_F_FLC_STATUS_INFO_BLOCK_VALID_POS)) |
Anna Bridge |
169:a7c7b631e539 | 229 | |
Anna Bridge |
169:a7c7b631e539 | 230 | #define MXC_F_FLC_SECURITY_DEBUG_DISABLE_POS 0 |
Anna Bridge |
169:a7c7b631e539 | 231 | #define MXC_F_FLC_SECURITY_DEBUG_DISABLE ((uint32_t)(0x000000FFUL << MXC_F_FLC_SECURITY_DEBUG_DISABLE_POS)) |
Anna Bridge |
169:a7c7b631e539 | 232 | #define MXC_F_FLC_SECURITY_MASS_ERASE_LOCK_POS 8 |
Anna Bridge |
169:a7c7b631e539 | 233 | #define MXC_F_FLC_SECURITY_MASS_ERASE_LOCK ((uint32_t)(0x0000000FUL << MXC_F_FLC_SECURITY_MASS_ERASE_LOCK_POS)) |
Anna Bridge |
169:a7c7b631e539 | 234 | #define MXC_F_FLC_SECURITY_DISABLE_AHB_WR_POS 16 |
Anna Bridge |
169:a7c7b631e539 | 235 | #define MXC_F_FLC_SECURITY_DISABLE_AHB_WR ((uint32_t)(0x0000000FUL << MXC_F_FLC_SECURITY_DISABLE_AHB_WR_POS)) |
Anna Bridge |
169:a7c7b631e539 | 236 | #define MXC_F_FLC_SECURITY_FLC_SETTINGS_LOCK_POS 24 |
Anna Bridge |
169:a7c7b631e539 | 237 | #define MXC_F_FLC_SECURITY_FLC_SETTINGS_LOCK ((uint32_t)(0x0000000FUL << MXC_F_FLC_SECURITY_FLC_SETTINGS_LOCK_POS)) |
Anna Bridge |
169:a7c7b631e539 | 238 | #define MXC_F_FLC_SECURITY_SECURITY_LOCK_POS 28 |
Anna Bridge |
169:a7c7b631e539 | 239 | #define MXC_F_FLC_SECURITY_SECURITY_LOCK ((uint32_t)(0x0000000FUL << MXC_F_FLC_SECURITY_SECURITY_LOCK_POS)) |
Anna Bridge |
169:a7c7b631e539 | 240 | |
Anna Bridge |
169:a7c7b631e539 | 241 | #define MXC_F_FLC_BYPASS_DESTRUCT_BYPASS_ERASE_POS 0 |
Anna Bridge |
169:a7c7b631e539 | 242 | #define MXC_F_FLC_BYPASS_DESTRUCT_BYPASS_ERASE ((uint32_t)(0x00000001UL << MXC_F_FLC_BYPASS_DESTRUCT_BYPASS_ERASE_POS)) |
Anna Bridge |
169:a7c7b631e539 | 243 | #define MXC_F_FLC_BYPASS_SUPERWIPE_ERASE_POS 1 |
Anna Bridge |
169:a7c7b631e539 | 244 | #define MXC_F_FLC_BYPASS_SUPERWIPE_ERASE ((uint32_t)(0x00000001UL << MXC_F_FLC_BYPASS_SUPERWIPE_ERASE_POS)) |
Anna Bridge |
169:a7c7b631e539 | 245 | #define MXC_F_FLC_BYPASS_DESTRUCT_BYPASS_COMPLETE_POS 2 |
Anna Bridge |
169:a7c7b631e539 | 246 | #define MXC_F_FLC_BYPASS_DESTRUCT_BYPASS_COMPLETE ((uint32_t)(0x00000001UL << MXC_F_FLC_BYPASS_DESTRUCT_BYPASS_COMPLETE_POS)) |
Anna Bridge |
169:a7c7b631e539 | 247 | #define MXC_F_FLC_BYPASS_SUPERWIPE_COMPLETE_POS 3 |
Anna Bridge |
169:a7c7b631e539 | 248 | #define MXC_F_FLC_BYPASS_SUPERWIPE_COMPLETE ((uint32_t)(0x00000001UL << MXC_F_FLC_BYPASS_SUPERWIPE_COMPLETE_POS)) |
Anna Bridge |
169:a7c7b631e539 | 249 | |
Anna Bridge |
169:a7c7b631e539 | 250 | #define MXC_F_FLC_CTRL2_FLASH_LVE_POS 0 |
Anna Bridge |
169:a7c7b631e539 | 251 | #define MXC_F_FLC_CTRL2_FLASH_LVE ((uint32_t)(0x00000001UL << MXC_F_FLC_CTRL2_FLASH_LVE_POS)) |
Anna Bridge |
169:a7c7b631e539 | 252 | #define MXC_F_FLC_CTRL2_FRC_FCLK1_ON_POS 1 |
Anna Bridge |
169:a7c7b631e539 | 253 | #define MXC_F_FLC_CTRL2_FRC_FCLK1_ON ((uint32_t)(0x00000001UL << MXC_F_FLC_CTRL2_FRC_FCLK1_ON_POS)) |
Anna Bridge |
169:a7c7b631e539 | 254 | #define MXC_F_FLC_CTRL2_EN_WRITE_ALL_ZEROES_POS 3 |
Anna Bridge |
169:a7c7b631e539 | 255 | #define MXC_F_FLC_CTRL2_EN_WRITE_ALL_ZEROES ((uint32_t)(0x00000001UL << MXC_F_FLC_CTRL2_EN_WRITE_ALL_ZEROES_POS)) |
Anna Bridge |
169:a7c7b631e539 | 256 | #define MXC_F_FLC_CTRL2_EN_CHANGE_POS 4 |
Anna Bridge |
169:a7c7b631e539 | 257 | #define MXC_F_FLC_CTRL2_EN_CHANGE ((uint32_t)(0x00000001UL << MXC_F_FLC_CTRL2_EN_CHANGE_POS)) |
Anna Bridge |
169:a7c7b631e539 | 258 | #define MXC_F_FLC_CTRL2_SLOW_CLK_POS 5 |
Anna Bridge |
169:a7c7b631e539 | 259 | #define MXC_F_FLC_CTRL2_SLOW_CLK ((uint32_t)(0x00000001UL << MXC_F_FLC_CTRL2_SLOW_CLK_POS)) |
Anna Bridge |
169:a7c7b631e539 | 260 | #define MXC_F_FLC_CTRL2_ENABLE_RAM_HRESP_POS 6 |
Anna Bridge |
169:a7c7b631e539 | 261 | #define MXC_F_FLC_CTRL2_ENABLE_RAM_HRESP ((uint32_t)(0x00000001UL << MXC_F_FLC_CTRL2_ENABLE_RAM_HRESP_POS)) |
Anna Bridge |
169:a7c7b631e539 | 262 | #define MXC_F_FLC_CTRL2_BYPASS_AHB_FAIL_POS 8 |
Anna Bridge |
169:a7c7b631e539 | 263 | #define MXC_F_FLC_CTRL2_BYPASS_AHB_FAIL ((uint32_t)(0x000000FFUL << MXC_F_FLC_CTRL2_BYPASS_AHB_FAIL_POS)) |
Anna Bridge |
169:a7c7b631e539 | 264 | |
Anna Bridge |
169:a7c7b631e539 | 265 | #define MXC_F_FLC_INTFL1_SRAM_ADDR_WRAPPED_POS 0 |
Anna Bridge |
169:a7c7b631e539 | 266 | #define MXC_F_FLC_INTFL1_SRAM_ADDR_WRAPPED ((uint32_t)(0x00000001UL << MXC_F_FLC_INTFL1_SRAM_ADDR_WRAPPED_POS)) |
Anna Bridge |
169:a7c7b631e539 | 267 | #define MXC_F_FLC_INTFL1_INVALID_FLASH_ADDR_POS 1 |
Anna Bridge |
169:a7c7b631e539 | 268 | #define MXC_F_FLC_INTFL1_INVALID_FLASH_ADDR ((uint32_t)(0x00000001UL << MXC_F_FLC_INTFL1_INVALID_FLASH_ADDR_POS)) |
Anna Bridge |
169:a7c7b631e539 | 269 | #define MXC_F_FLC_INTFL1_FLASH_READ_LOCKED_POS 2 |
Anna Bridge |
169:a7c7b631e539 | 270 | #define MXC_F_FLC_INTFL1_FLASH_READ_LOCKED ((uint32_t)(0x00000001UL << MXC_F_FLC_INTFL1_FLASH_READ_LOCKED_POS)) |
Anna Bridge |
169:a7c7b631e539 | 271 | #define MXC_F_FLC_INTFL1_TRIM_UPDATE_DONE_POS 3 |
Anna Bridge |
169:a7c7b631e539 | 272 | #define MXC_F_FLC_INTFL1_TRIM_UPDATE_DONE ((uint32_t)(0x00000001UL << MXC_F_FLC_INTFL1_TRIM_UPDATE_DONE_POS)) |
Anna Bridge |
169:a7c7b631e539 | 273 | #define MXC_F_FLC_INTFL1_FLC_STATE_DONE_POS 4 |
Anna Bridge |
169:a7c7b631e539 | 274 | #define MXC_F_FLC_INTFL1_FLC_STATE_DONE ((uint32_t)(0x00000001UL << MXC_F_FLC_INTFL1_FLC_STATE_DONE_POS)) |
Anna Bridge |
169:a7c7b631e539 | 275 | #define MXC_F_FLC_INTFL1_FLC_PROG_COMPLETE_POS 5 |
Anna Bridge |
169:a7c7b631e539 | 276 | #define MXC_F_FLC_INTFL1_FLC_PROG_COMPLETE ((uint32_t)(0x00000001UL << MXC_F_FLC_INTFL1_FLC_PROG_COMPLETE_POS)) |
Anna Bridge |
169:a7c7b631e539 | 277 | |
Anna Bridge |
169:a7c7b631e539 | 278 | #define MXC_F_FLC_INTEN1_SRAM_ADDR_WRAPPED_POS 0 |
Anna Bridge |
169:a7c7b631e539 | 279 | #define MXC_F_FLC_INTEN1_SRAM_ADDR_WRAPPED ((uint32_t)(0x00000001UL << MXC_F_FLC_INTEN1_SRAM_ADDR_WRAPPED_POS)) |
Anna Bridge |
169:a7c7b631e539 | 280 | #define MXC_F_FLC_INTEN1_INVALID_FLASH_ADDR_POS 1 |
Anna Bridge |
169:a7c7b631e539 | 281 | #define MXC_F_FLC_INTEN1_INVALID_FLASH_ADDR ((uint32_t)(0x00000001UL << MXC_F_FLC_INTEN1_INVALID_FLASH_ADDR_POS)) |
Anna Bridge |
169:a7c7b631e539 | 282 | #define MXC_F_FLC_INTEN1_FLASH_READ_LOCKED_POS 2 |
Anna Bridge |
169:a7c7b631e539 | 283 | #define MXC_F_FLC_INTEN1_FLASH_READ_LOCKED ((uint32_t)(0x00000001UL << MXC_F_FLC_INTEN1_FLASH_READ_LOCKED_POS)) |
Anna Bridge |
169:a7c7b631e539 | 284 | #define MXC_F_FLC_INTEN1_TRIM_UPDATE_DONE_POS 3 |
Anna Bridge |
169:a7c7b631e539 | 285 | #define MXC_F_FLC_INTEN1_TRIM_UPDATE_DONE ((uint32_t)(0x00000001UL << MXC_F_FLC_INTEN1_TRIM_UPDATE_DONE_POS)) |
Anna Bridge |
169:a7c7b631e539 | 286 | #define MXC_F_FLC_INTEN1_FLC_STATE_DONE_POS 4 |
Anna Bridge |
169:a7c7b631e539 | 287 | #define MXC_F_FLC_INTEN1_FLC_STATE_DONE ((uint32_t)(0x00000001UL << MXC_F_FLC_INTEN1_FLC_STATE_DONE_POS)) |
Anna Bridge |
169:a7c7b631e539 | 288 | #define MXC_F_FLC_INTEN1_FLC_PROG_COMPLETE_POS 5 |
Anna Bridge |
169:a7c7b631e539 | 289 | #define MXC_F_FLC_INTEN1_FLC_PROG_COMPLETE ((uint32_t)(0x00000001UL << MXC_F_FLC_INTEN1_FLC_PROG_COMPLETE_POS)) |
Anna Bridge |
169:a7c7b631e539 | 290 | |
Anna Bridge |
169:a7c7b631e539 | 291 | |
Anna Bridge |
169:a7c7b631e539 | 292 | |
Anna Bridge |
169:a7c7b631e539 | 293 | #ifdef __cplusplus |
Anna Bridge |
169:a7c7b631e539 | 294 | } |
Anna Bridge |
169:a7c7b631e539 | 295 | #endif |
Anna Bridge |
169:a7c7b631e539 | 296 | |
Anna Bridge |
169:a7c7b631e539 | 297 | #endif /* _MXC_FLC_REGS_H_ */ |
Anna Bridge |
169:a7c7b631e539 | 298 |