mbed library sources
Dependents: frdm_kl05z_gpio_test
Fork of mbed-src by
targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_MCU_K64F/device/MK64F12/MK64F12_nv.h@323:9e901b0a5aa1, 2014-09-13 (annotated)
- Committer:
- shaoziyang
- Date:
- Sat Sep 13 14:25:46 2014 +0000
- Revision:
- 323:9e901b0a5aa1
- Parent:
- 320:be04b2b1e3f2
test with CLOCK_SETUP = 0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 146:f64d43ff0c18 | 1 | /* |
mbed_official | 146:f64d43ff0c18 | 2 | * Copyright (c) 2014, Freescale Semiconductor, Inc. |
mbed_official | 146:f64d43ff0c18 | 3 | * All rights reserved. |
mbed_official | 146:f64d43ff0c18 | 4 | * |
mbed_official | 146:f64d43ff0c18 | 5 | * THIS SOFTWARE IS PROVIDED BY FREESCALE "AS IS" AND ANY EXPRESS OR IMPLIED |
mbed_official | 146:f64d43ff0c18 | 6 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
mbed_official | 146:f64d43ff0c18 | 7 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT |
mbed_official | 146:f64d43ff0c18 | 8 | * SHALL FREESCALE BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
mbed_official | 146:f64d43ff0c18 | 9 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT |
mbed_official | 146:f64d43ff0c18 | 10 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
mbed_official | 146:f64d43ff0c18 | 11 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
mbed_official | 146:f64d43ff0c18 | 12 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING |
mbed_official | 146:f64d43ff0c18 | 13 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY |
mbed_official | 146:f64d43ff0c18 | 14 | * OF SUCH DAMAGE. |
mbed_official | 146:f64d43ff0c18 | 15 | */ |
mbed_official | 146:f64d43ff0c18 | 16 | /* |
mbed_official | 146:f64d43ff0c18 | 17 | * WARNING! DO NOT EDIT THIS FILE DIRECTLY! |
mbed_official | 146:f64d43ff0c18 | 18 | * |
mbed_official | 146:f64d43ff0c18 | 19 | * This file was generated automatically and any changes may be lost. |
mbed_official | 146:f64d43ff0c18 | 20 | */ |
mbed_official | 146:f64d43ff0c18 | 21 | #ifndef __HW_NV_REGISTERS_H__ |
mbed_official | 146:f64d43ff0c18 | 22 | #define __HW_NV_REGISTERS_H__ |
mbed_official | 146:f64d43ff0c18 | 23 | |
mbed_official | 146:f64d43ff0c18 | 24 | #include "regs.h" |
mbed_official | 146:f64d43ff0c18 | 25 | |
mbed_official | 146:f64d43ff0c18 | 26 | /* |
mbed_official | 146:f64d43ff0c18 | 27 | * MK64F12 NV |
mbed_official | 146:f64d43ff0c18 | 28 | * |
mbed_official | 146:f64d43ff0c18 | 29 | * Flash configuration field |
mbed_official | 146:f64d43ff0c18 | 30 | * |
mbed_official | 146:f64d43ff0c18 | 31 | * Registers defined in this header file: |
mbed_official | 146:f64d43ff0c18 | 32 | * - HW_NV_BACKKEY3 - Backdoor Comparison Key 3. |
mbed_official | 146:f64d43ff0c18 | 33 | * - HW_NV_BACKKEY2 - Backdoor Comparison Key 2. |
mbed_official | 146:f64d43ff0c18 | 34 | * - HW_NV_BACKKEY1 - Backdoor Comparison Key 1. |
mbed_official | 146:f64d43ff0c18 | 35 | * - HW_NV_BACKKEY0 - Backdoor Comparison Key 0. |
mbed_official | 146:f64d43ff0c18 | 36 | * - HW_NV_BACKKEY7 - Backdoor Comparison Key 7. |
mbed_official | 146:f64d43ff0c18 | 37 | * - HW_NV_BACKKEY6 - Backdoor Comparison Key 6. |
mbed_official | 146:f64d43ff0c18 | 38 | * - HW_NV_BACKKEY5 - Backdoor Comparison Key 5. |
mbed_official | 146:f64d43ff0c18 | 39 | * - HW_NV_BACKKEY4 - Backdoor Comparison Key 4. |
mbed_official | 146:f64d43ff0c18 | 40 | * - HW_NV_FPROT3 - Non-volatile P-Flash Protection 1 - Low Register |
mbed_official | 146:f64d43ff0c18 | 41 | * - HW_NV_FPROT2 - Non-volatile P-Flash Protection 1 - High Register |
mbed_official | 146:f64d43ff0c18 | 42 | * - HW_NV_FPROT1 - Non-volatile P-Flash Protection 0 - Low Register |
mbed_official | 146:f64d43ff0c18 | 43 | * - HW_NV_FPROT0 - Non-volatile P-Flash Protection 0 - High Register |
mbed_official | 146:f64d43ff0c18 | 44 | * - HW_NV_FSEC - Non-volatile Flash Security Register |
mbed_official | 146:f64d43ff0c18 | 45 | * - HW_NV_FOPT - Non-volatile Flash Option Register |
mbed_official | 146:f64d43ff0c18 | 46 | * - HW_NV_FEPROT - Non-volatile EERAM Protection Register |
mbed_official | 146:f64d43ff0c18 | 47 | * - HW_NV_FDPROT - Non-volatile D-Flash Protection Register |
mbed_official | 146:f64d43ff0c18 | 48 | * |
mbed_official | 146:f64d43ff0c18 | 49 | * - hw_nv_t - Struct containing all module registers. |
mbed_official | 146:f64d43ff0c18 | 50 | */ |
mbed_official | 146:f64d43ff0c18 | 51 | |
mbed_official | 146:f64d43ff0c18 | 52 | //! @name Module base addresses |
mbed_official | 146:f64d43ff0c18 | 53 | //@{ |
mbed_official | 146:f64d43ff0c18 | 54 | #ifndef REGS_NV_BASE |
mbed_official | 146:f64d43ff0c18 | 55 | #define HW_NV_INSTANCE_COUNT (1U) //!< Number of instances of the NV module. |
mbed_official | 146:f64d43ff0c18 | 56 | #define REGS_NV_BASE (0x400U) //!< Base address for FTFE_FlashConfig. |
mbed_official | 146:f64d43ff0c18 | 57 | #endif |
mbed_official | 146:f64d43ff0c18 | 58 | //@} |
mbed_official | 146:f64d43ff0c18 | 59 | |
mbed_official | 146:f64d43ff0c18 | 60 | //------------------------------------------------------------------------------------------- |
mbed_official | 146:f64d43ff0c18 | 61 | // HW_NV_BACKKEY3 - Backdoor Comparison Key 3. |
mbed_official | 146:f64d43ff0c18 | 62 | //------------------------------------------------------------------------------------------- |
mbed_official | 146:f64d43ff0c18 | 63 | |
mbed_official | 146:f64d43ff0c18 | 64 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 65 | /*! |
mbed_official | 146:f64d43ff0c18 | 66 | * @brief HW_NV_BACKKEY3 - Backdoor Comparison Key 3. (RO) |
mbed_official | 146:f64d43ff0c18 | 67 | * |
mbed_official | 146:f64d43ff0c18 | 68 | * Reset value: 0xFFU |
mbed_official | 146:f64d43ff0c18 | 69 | */ |
mbed_official | 146:f64d43ff0c18 | 70 | typedef union _hw_nv_backkey3 |
mbed_official | 146:f64d43ff0c18 | 71 | { |
mbed_official | 146:f64d43ff0c18 | 72 | uint8_t U; |
mbed_official | 146:f64d43ff0c18 | 73 | struct _hw_nv_backkey3_bitfields |
mbed_official | 146:f64d43ff0c18 | 74 | { |
mbed_official | 146:f64d43ff0c18 | 75 | uint8_t KEY : 8; //!< [7:0] Backdoor Comparison Key. |
mbed_official | 146:f64d43ff0c18 | 76 | } B; |
mbed_official | 146:f64d43ff0c18 | 77 | } hw_nv_backkey3_t; |
mbed_official | 146:f64d43ff0c18 | 78 | #endif |
mbed_official | 146:f64d43ff0c18 | 79 | |
mbed_official | 146:f64d43ff0c18 | 80 | /*! |
mbed_official | 146:f64d43ff0c18 | 81 | * @name Constants and macros for entire NV_BACKKEY3 register |
mbed_official | 146:f64d43ff0c18 | 82 | */ |
mbed_official | 146:f64d43ff0c18 | 83 | //@{ |
mbed_official | 146:f64d43ff0c18 | 84 | #define HW_NV_BACKKEY3_ADDR (REGS_NV_BASE + 0x0U) |
mbed_official | 146:f64d43ff0c18 | 85 | |
mbed_official | 146:f64d43ff0c18 | 86 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 87 | #define HW_NV_BACKKEY3 (*(__I hw_nv_backkey3_t *) HW_NV_BACKKEY3_ADDR) |
mbed_official | 146:f64d43ff0c18 | 88 | #define HW_NV_BACKKEY3_RD() (HW_NV_BACKKEY3.U) |
mbed_official | 146:f64d43ff0c18 | 89 | #endif |
mbed_official | 146:f64d43ff0c18 | 90 | //@} |
mbed_official | 146:f64d43ff0c18 | 91 | |
mbed_official | 146:f64d43ff0c18 | 92 | /* |
mbed_official | 146:f64d43ff0c18 | 93 | * Constants & macros for individual NV_BACKKEY3 bitfields |
mbed_official | 146:f64d43ff0c18 | 94 | */ |
mbed_official | 146:f64d43ff0c18 | 95 | |
mbed_official | 146:f64d43ff0c18 | 96 | /*! |
mbed_official | 146:f64d43ff0c18 | 97 | * @name Register NV_BACKKEY3, field KEY[7:0] (RO) |
mbed_official | 146:f64d43ff0c18 | 98 | */ |
mbed_official | 146:f64d43ff0c18 | 99 | //@{ |
mbed_official | 146:f64d43ff0c18 | 100 | #define BP_NV_BACKKEY3_KEY (0U) //!< Bit position for NV_BACKKEY3_KEY. |
mbed_official | 146:f64d43ff0c18 | 101 | #define BM_NV_BACKKEY3_KEY (0xFFU) //!< Bit mask for NV_BACKKEY3_KEY. |
mbed_official | 146:f64d43ff0c18 | 102 | #define BS_NV_BACKKEY3_KEY (8U) //!< Bit field size in bits for NV_BACKKEY3_KEY. |
mbed_official | 146:f64d43ff0c18 | 103 | |
mbed_official | 146:f64d43ff0c18 | 104 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 105 | //! @brief Read current value of the NV_BACKKEY3_KEY field. |
mbed_official | 146:f64d43ff0c18 | 106 | #define BR_NV_BACKKEY3_KEY (HW_NV_BACKKEY3.U) |
mbed_official | 146:f64d43ff0c18 | 107 | #endif |
mbed_official | 146:f64d43ff0c18 | 108 | //@} |
mbed_official | 146:f64d43ff0c18 | 109 | |
mbed_official | 146:f64d43ff0c18 | 110 | //------------------------------------------------------------------------------------------- |
mbed_official | 146:f64d43ff0c18 | 111 | // HW_NV_BACKKEY2 - Backdoor Comparison Key 2. |
mbed_official | 146:f64d43ff0c18 | 112 | //------------------------------------------------------------------------------------------- |
mbed_official | 146:f64d43ff0c18 | 113 | |
mbed_official | 146:f64d43ff0c18 | 114 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 115 | /*! |
mbed_official | 146:f64d43ff0c18 | 116 | * @brief HW_NV_BACKKEY2 - Backdoor Comparison Key 2. (RO) |
mbed_official | 146:f64d43ff0c18 | 117 | * |
mbed_official | 146:f64d43ff0c18 | 118 | * Reset value: 0xFFU |
mbed_official | 146:f64d43ff0c18 | 119 | */ |
mbed_official | 146:f64d43ff0c18 | 120 | typedef union _hw_nv_backkey2 |
mbed_official | 146:f64d43ff0c18 | 121 | { |
mbed_official | 146:f64d43ff0c18 | 122 | uint8_t U; |
mbed_official | 146:f64d43ff0c18 | 123 | struct _hw_nv_backkey2_bitfields |
mbed_official | 146:f64d43ff0c18 | 124 | { |
mbed_official | 146:f64d43ff0c18 | 125 | uint8_t KEY : 8; //!< [7:0] Backdoor Comparison Key. |
mbed_official | 146:f64d43ff0c18 | 126 | } B; |
mbed_official | 146:f64d43ff0c18 | 127 | } hw_nv_backkey2_t; |
mbed_official | 146:f64d43ff0c18 | 128 | #endif |
mbed_official | 146:f64d43ff0c18 | 129 | |
mbed_official | 146:f64d43ff0c18 | 130 | /*! |
mbed_official | 146:f64d43ff0c18 | 131 | * @name Constants and macros for entire NV_BACKKEY2 register |
mbed_official | 146:f64d43ff0c18 | 132 | */ |
mbed_official | 146:f64d43ff0c18 | 133 | //@{ |
mbed_official | 146:f64d43ff0c18 | 134 | #define HW_NV_BACKKEY2_ADDR (REGS_NV_BASE + 0x1U) |
mbed_official | 146:f64d43ff0c18 | 135 | |
mbed_official | 146:f64d43ff0c18 | 136 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 137 | #define HW_NV_BACKKEY2 (*(__I hw_nv_backkey2_t *) HW_NV_BACKKEY2_ADDR) |
mbed_official | 146:f64d43ff0c18 | 138 | #define HW_NV_BACKKEY2_RD() (HW_NV_BACKKEY2.U) |
mbed_official | 146:f64d43ff0c18 | 139 | #endif |
mbed_official | 146:f64d43ff0c18 | 140 | //@} |
mbed_official | 146:f64d43ff0c18 | 141 | |
mbed_official | 146:f64d43ff0c18 | 142 | /* |
mbed_official | 146:f64d43ff0c18 | 143 | * Constants & macros for individual NV_BACKKEY2 bitfields |
mbed_official | 146:f64d43ff0c18 | 144 | */ |
mbed_official | 146:f64d43ff0c18 | 145 | |
mbed_official | 146:f64d43ff0c18 | 146 | /*! |
mbed_official | 146:f64d43ff0c18 | 147 | * @name Register NV_BACKKEY2, field KEY[7:0] (RO) |
mbed_official | 146:f64d43ff0c18 | 148 | */ |
mbed_official | 146:f64d43ff0c18 | 149 | //@{ |
mbed_official | 146:f64d43ff0c18 | 150 | #define BP_NV_BACKKEY2_KEY (0U) //!< Bit position for NV_BACKKEY2_KEY. |
mbed_official | 146:f64d43ff0c18 | 151 | #define BM_NV_BACKKEY2_KEY (0xFFU) //!< Bit mask for NV_BACKKEY2_KEY. |
mbed_official | 146:f64d43ff0c18 | 152 | #define BS_NV_BACKKEY2_KEY (8U) //!< Bit field size in bits for NV_BACKKEY2_KEY. |
mbed_official | 146:f64d43ff0c18 | 153 | |
mbed_official | 146:f64d43ff0c18 | 154 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 155 | //! @brief Read current value of the NV_BACKKEY2_KEY field. |
mbed_official | 146:f64d43ff0c18 | 156 | #define BR_NV_BACKKEY2_KEY (HW_NV_BACKKEY2.U) |
mbed_official | 146:f64d43ff0c18 | 157 | #endif |
mbed_official | 146:f64d43ff0c18 | 158 | //@} |
mbed_official | 146:f64d43ff0c18 | 159 | |
mbed_official | 146:f64d43ff0c18 | 160 | //------------------------------------------------------------------------------------------- |
mbed_official | 146:f64d43ff0c18 | 161 | // HW_NV_BACKKEY1 - Backdoor Comparison Key 1. |
mbed_official | 146:f64d43ff0c18 | 162 | //------------------------------------------------------------------------------------------- |
mbed_official | 146:f64d43ff0c18 | 163 | |
mbed_official | 146:f64d43ff0c18 | 164 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 165 | /*! |
mbed_official | 146:f64d43ff0c18 | 166 | * @brief HW_NV_BACKKEY1 - Backdoor Comparison Key 1. (RO) |
mbed_official | 146:f64d43ff0c18 | 167 | * |
mbed_official | 146:f64d43ff0c18 | 168 | * Reset value: 0xFFU |
mbed_official | 146:f64d43ff0c18 | 169 | */ |
mbed_official | 146:f64d43ff0c18 | 170 | typedef union _hw_nv_backkey1 |
mbed_official | 146:f64d43ff0c18 | 171 | { |
mbed_official | 146:f64d43ff0c18 | 172 | uint8_t U; |
mbed_official | 146:f64d43ff0c18 | 173 | struct _hw_nv_backkey1_bitfields |
mbed_official | 146:f64d43ff0c18 | 174 | { |
mbed_official | 146:f64d43ff0c18 | 175 | uint8_t KEY : 8; //!< [7:0] Backdoor Comparison Key. |
mbed_official | 146:f64d43ff0c18 | 176 | } B; |
mbed_official | 146:f64d43ff0c18 | 177 | } hw_nv_backkey1_t; |
mbed_official | 146:f64d43ff0c18 | 178 | #endif |
mbed_official | 146:f64d43ff0c18 | 179 | |
mbed_official | 146:f64d43ff0c18 | 180 | /*! |
mbed_official | 146:f64d43ff0c18 | 181 | * @name Constants and macros for entire NV_BACKKEY1 register |
mbed_official | 146:f64d43ff0c18 | 182 | */ |
mbed_official | 146:f64d43ff0c18 | 183 | //@{ |
mbed_official | 146:f64d43ff0c18 | 184 | #define HW_NV_BACKKEY1_ADDR (REGS_NV_BASE + 0x2U) |
mbed_official | 146:f64d43ff0c18 | 185 | |
mbed_official | 146:f64d43ff0c18 | 186 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 187 | #define HW_NV_BACKKEY1 (*(__I hw_nv_backkey1_t *) HW_NV_BACKKEY1_ADDR) |
mbed_official | 146:f64d43ff0c18 | 188 | #define HW_NV_BACKKEY1_RD() (HW_NV_BACKKEY1.U) |
mbed_official | 146:f64d43ff0c18 | 189 | #endif |
mbed_official | 146:f64d43ff0c18 | 190 | //@} |
mbed_official | 146:f64d43ff0c18 | 191 | |
mbed_official | 146:f64d43ff0c18 | 192 | /* |
mbed_official | 146:f64d43ff0c18 | 193 | * Constants & macros for individual NV_BACKKEY1 bitfields |
mbed_official | 146:f64d43ff0c18 | 194 | */ |
mbed_official | 146:f64d43ff0c18 | 195 | |
mbed_official | 146:f64d43ff0c18 | 196 | /*! |
mbed_official | 146:f64d43ff0c18 | 197 | * @name Register NV_BACKKEY1, field KEY[7:0] (RO) |
mbed_official | 146:f64d43ff0c18 | 198 | */ |
mbed_official | 146:f64d43ff0c18 | 199 | //@{ |
mbed_official | 146:f64d43ff0c18 | 200 | #define BP_NV_BACKKEY1_KEY (0U) //!< Bit position for NV_BACKKEY1_KEY. |
mbed_official | 146:f64d43ff0c18 | 201 | #define BM_NV_BACKKEY1_KEY (0xFFU) //!< Bit mask for NV_BACKKEY1_KEY. |
mbed_official | 146:f64d43ff0c18 | 202 | #define BS_NV_BACKKEY1_KEY (8U) //!< Bit field size in bits for NV_BACKKEY1_KEY. |
mbed_official | 146:f64d43ff0c18 | 203 | |
mbed_official | 146:f64d43ff0c18 | 204 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 205 | //! @brief Read current value of the NV_BACKKEY1_KEY field. |
mbed_official | 146:f64d43ff0c18 | 206 | #define BR_NV_BACKKEY1_KEY (HW_NV_BACKKEY1.U) |
mbed_official | 146:f64d43ff0c18 | 207 | #endif |
mbed_official | 146:f64d43ff0c18 | 208 | //@} |
mbed_official | 146:f64d43ff0c18 | 209 | |
mbed_official | 146:f64d43ff0c18 | 210 | //------------------------------------------------------------------------------------------- |
mbed_official | 146:f64d43ff0c18 | 211 | // HW_NV_BACKKEY0 - Backdoor Comparison Key 0. |
mbed_official | 146:f64d43ff0c18 | 212 | //------------------------------------------------------------------------------------------- |
mbed_official | 146:f64d43ff0c18 | 213 | |
mbed_official | 146:f64d43ff0c18 | 214 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 215 | /*! |
mbed_official | 146:f64d43ff0c18 | 216 | * @brief HW_NV_BACKKEY0 - Backdoor Comparison Key 0. (RO) |
mbed_official | 146:f64d43ff0c18 | 217 | * |
mbed_official | 146:f64d43ff0c18 | 218 | * Reset value: 0xFFU |
mbed_official | 146:f64d43ff0c18 | 219 | */ |
mbed_official | 146:f64d43ff0c18 | 220 | typedef union _hw_nv_backkey0 |
mbed_official | 146:f64d43ff0c18 | 221 | { |
mbed_official | 146:f64d43ff0c18 | 222 | uint8_t U; |
mbed_official | 146:f64d43ff0c18 | 223 | struct _hw_nv_backkey0_bitfields |
mbed_official | 146:f64d43ff0c18 | 224 | { |
mbed_official | 146:f64d43ff0c18 | 225 | uint8_t KEY : 8; //!< [7:0] Backdoor Comparison Key. |
mbed_official | 146:f64d43ff0c18 | 226 | } B; |
mbed_official | 146:f64d43ff0c18 | 227 | } hw_nv_backkey0_t; |
mbed_official | 146:f64d43ff0c18 | 228 | #endif |
mbed_official | 146:f64d43ff0c18 | 229 | |
mbed_official | 146:f64d43ff0c18 | 230 | /*! |
mbed_official | 146:f64d43ff0c18 | 231 | * @name Constants and macros for entire NV_BACKKEY0 register |
mbed_official | 146:f64d43ff0c18 | 232 | */ |
mbed_official | 146:f64d43ff0c18 | 233 | //@{ |
mbed_official | 146:f64d43ff0c18 | 234 | #define HW_NV_BACKKEY0_ADDR (REGS_NV_BASE + 0x3U) |
mbed_official | 146:f64d43ff0c18 | 235 | |
mbed_official | 146:f64d43ff0c18 | 236 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 237 | #define HW_NV_BACKKEY0 (*(__I hw_nv_backkey0_t *) HW_NV_BACKKEY0_ADDR) |
mbed_official | 146:f64d43ff0c18 | 238 | #define HW_NV_BACKKEY0_RD() (HW_NV_BACKKEY0.U) |
mbed_official | 146:f64d43ff0c18 | 239 | #endif |
mbed_official | 146:f64d43ff0c18 | 240 | //@} |
mbed_official | 146:f64d43ff0c18 | 241 | |
mbed_official | 146:f64d43ff0c18 | 242 | /* |
mbed_official | 146:f64d43ff0c18 | 243 | * Constants & macros for individual NV_BACKKEY0 bitfields |
mbed_official | 146:f64d43ff0c18 | 244 | */ |
mbed_official | 146:f64d43ff0c18 | 245 | |
mbed_official | 146:f64d43ff0c18 | 246 | /*! |
mbed_official | 146:f64d43ff0c18 | 247 | * @name Register NV_BACKKEY0, field KEY[7:0] (RO) |
mbed_official | 146:f64d43ff0c18 | 248 | */ |
mbed_official | 146:f64d43ff0c18 | 249 | //@{ |
mbed_official | 146:f64d43ff0c18 | 250 | #define BP_NV_BACKKEY0_KEY (0U) //!< Bit position for NV_BACKKEY0_KEY. |
mbed_official | 146:f64d43ff0c18 | 251 | #define BM_NV_BACKKEY0_KEY (0xFFU) //!< Bit mask for NV_BACKKEY0_KEY. |
mbed_official | 146:f64d43ff0c18 | 252 | #define BS_NV_BACKKEY0_KEY (8U) //!< Bit field size in bits for NV_BACKKEY0_KEY. |
mbed_official | 146:f64d43ff0c18 | 253 | |
mbed_official | 146:f64d43ff0c18 | 254 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 255 | //! @brief Read current value of the NV_BACKKEY0_KEY field. |
mbed_official | 146:f64d43ff0c18 | 256 | #define BR_NV_BACKKEY0_KEY (HW_NV_BACKKEY0.U) |
mbed_official | 146:f64d43ff0c18 | 257 | #endif |
mbed_official | 146:f64d43ff0c18 | 258 | //@} |
mbed_official | 146:f64d43ff0c18 | 259 | |
mbed_official | 146:f64d43ff0c18 | 260 | //------------------------------------------------------------------------------------------- |
mbed_official | 146:f64d43ff0c18 | 261 | // HW_NV_BACKKEY7 - Backdoor Comparison Key 7. |
mbed_official | 146:f64d43ff0c18 | 262 | //------------------------------------------------------------------------------------------- |
mbed_official | 146:f64d43ff0c18 | 263 | |
mbed_official | 146:f64d43ff0c18 | 264 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 265 | /*! |
mbed_official | 146:f64d43ff0c18 | 266 | * @brief HW_NV_BACKKEY7 - Backdoor Comparison Key 7. (RO) |
mbed_official | 146:f64d43ff0c18 | 267 | * |
mbed_official | 146:f64d43ff0c18 | 268 | * Reset value: 0xFFU |
mbed_official | 146:f64d43ff0c18 | 269 | */ |
mbed_official | 146:f64d43ff0c18 | 270 | typedef union _hw_nv_backkey7 |
mbed_official | 146:f64d43ff0c18 | 271 | { |
mbed_official | 146:f64d43ff0c18 | 272 | uint8_t U; |
mbed_official | 146:f64d43ff0c18 | 273 | struct _hw_nv_backkey7_bitfields |
mbed_official | 146:f64d43ff0c18 | 274 | { |
mbed_official | 146:f64d43ff0c18 | 275 | uint8_t KEY : 8; //!< [7:0] Backdoor Comparison Key. |
mbed_official | 146:f64d43ff0c18 | 276 | } B; |
mbed_official | 146:f64d43ff0c18 | 277 | } hw_nv_backkey7_t; |
mbed_official | 146:f64d43ff0c18 | 278 | #endif |
mbed_official | 146:f64d43ff0c18 | 279 | |
mbed_official | 146:f64d43ff0c18 | 280 | /*! |
mbed_official | 146:f64d43ff0c18 | 281 | * @name Constants and macros for entire NV_BACKKEY7 register |
mbed_official | 146:f64d43ff0c18 | 282 | */ |
mbed_official | 146:f64d43ff0c18 | 283 | //@{ |
mbed_official | 146:f64d43ff0c18 | 284 | #define HW_NV_BACKKEY7_ADDR (REGS_NV_BASE + 0x4U) |
mbed_official | 146:f64d43ff0c18 | 285 | |
mbed_official | 146:f64d43ff0c18 | 286 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 287 | #define HW_NV_BACKKEY7 (*(__I hw_nv_backkey7_t *) HW_NV_BACKKEY7_ADDR) |
mbed_official | 146:f64d43ff0c18 | 288 | #define HW_NV_BACKKEY7_RD() (HW_NV_BACKKEY7.U) |
mbed_official | 146:f64d43ff0c18 | 289 | #endif |
mbed_official | 146:f64d43ff0c18 | 290 | //@} |
mbed_official | 146:f64d43ff0c18 | 291 | |
mbed_official | 146:f64d43ff0c18 | 292 | /* |
mbed_official | 146:f64d43ff0c18 | 293 | * Constants & macros for individual NV_BACKKEY7 bitfields |
mbed_official | 146:f64d43ff0c18 | 294 | */ |
mbed_official | 146:f64d43ff0c18 | 295 | |
mbed_official | 146:f64d43ff0c18 | 296 | /*! |
mbed_official | 146:f64d43ff0c18 | 297 | * @name Register NV_BACKKEY7, field KEY[7:0] (RO) |
mbed_official | 146:f64d43ff0c18 | 298 | */ |
mbed_official | 146:f64d43ff0c18 | 299 | //@{ |
mbed_official | 146:f64d43ff0c18 | 300 | #define BP_NV_BACKKEY7_KEY (0U) //!< Bit position for NV_BACKKEY7_KEY. |
mbed_official | 146:f64d43ff0c18 | 301 | #define BM_NV_BACKKEY7_KEY (0xFFU) //!< Bit mask for NV_BACKKEY7_KEY. |
mbed_official | 146:f64d43ff0c18 | 302 | #define BS_NV_BACKKEY7_KEY (8U) //!< Bit field size in bits for NV_BACKKEY7_KEY. |
mbed_official | 146:f64d43ff0c18 | 303 | |
mbed_official | 146:f64d43ff0c18 | 304 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 305 | //! @brief Read current value of the NV_BACKKEY7_KEY field. |
mbed_official | 146:f64d43ff0c18 | 306 | #define BR_NV_BACKKEY7_KEY (HW_NV_BACKKEY7.U) |
mbed_official | 146:f64d43ff0c18 | 307 | #endif |
mbed_official | 146:f64d43ff0c18 | 308 | //@} |
mbed_official | 146:f64d43ff0c18 | 309 | |
mbed_official | 146:f64d43ff0c18 | 310 | //------------------------------------------------------------------------------------------- |
mbed_official | 146:f64d43ff0c18 | 311 | // HW_NV_BACKKEY6 - Backdoor Comparison Key 6. |
mbed_official | 146:f64d43ff0c18 | 312 | //------------------------------------------------------------------------------------------- |
mbed_official | 146:f64d43ff0c18 | 313 | |
mbed_official | 146:f64d43ff0c18 | 314 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 315 | /*! |
mbed_official | 146:f64d43ff0c18 | 316 | * @brief HW_NV_BACKKEY6 - Backdoor Comparison Key 6. (RO) |
mbed_official | 146:f64d43ff0c18 | 317 | * |
mbed_official | 146:f64d43ff0c18 | 318 | * Reset value: 0xFFU |
mbed_official | 146:f64d43ff0c18 | 319 | */ |
mbed_official | 146:f64d43ff0c18 | 320 | typedef union _hw_nv_backkey6 |
mbed_official | 146:f64d43ff0c18 | 321 | { |
mbed_official | 146:f64d43ff0c18 | 322 | uint8_t U; |
mbed_official | 146:f64d43ff0c18 | 323 | struct _hw_nv_backkey6_bitfields |
mbed_official | 146:f64d43ff0c18 | 324 | { |
mbed_official | 146:f64d43ff0c18 | 325 | uint8_t KEY : 8; //!< [7:0] Backdoor Comparison Key. |
mbed_official | 146:f64d43ff0c18 | 326 | } B; |
mbed_official | 146:f64d43ff0c18 | 327 | } hw_nv_backkey6_t; |
mbed_official | 146:f64d43ff0c18 | 328 | #endif |
mbed_official | 146:f64d43ff0c18 | 329 | |
mbed_official | 146:f64d43ff0c18 | 330 | /*! |
mbed_official | 146:f64d43ff0c18 | 331 | * @name Constants and macros for entire NV_BACKKEY6 register |
mbed_official | 146:f64d43ff0c18 | 332 | */ |
mbed_official | 146:f64d43ff0c18 | 333 | //@{ |
mbed_official | 146:f64d43ff0c18 | 334 | #define HW_NV_BACKKEY6_ADDR (REGS_NV_BASE + 0x5U) |
mbed_official | 146:f64d43ff0c18 | 335 | |
mbed_official | 146:f64d43ff0c18 | 336 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 337 | #define HW_NV_BACKKEY6 (*(__I hw_nv_backkey6_t *) HW_NV_BACKKEY6_ADDR) |
mbed_official | 146:f64d43ff0c18 | 338 | #define HW_NV_BACKKEY6_RD() (HW_NV_BACKKEY6.U) |
mbed_official | 146:f64d43ff0c18 | 339 | #endif |
mbed_official | 146:f64d43ff0c18 | 340 | //@} |
mbed_official | 146:f64d43ff0c18 | 341 | |
mbed_official | 146:f64d43ff0c18 | 342 | /* |
mbed_official | 146:f64d43ff0c18 | 343 | * Constants & macros for individual NV_BACKKEY6 bitfields |
mbed_official | 146:f64d43ff0c18 | 344 | */ |
mbed_official | 146:f64d43ff0c18 | 345 | |
mbed_official | 146:f64d43ff0c18 | 346 | /*! |
mbed_official | 146:f64d43ff0c18 | 347 | * @name Register NV_BACKKEY6, field KEY[7:0] (RO) |
mbed_official | 146:f64d43ff0c18 | 348 | */ |
mbed_official | 146:f64d43ff0c18 | 349 | //@{ |
mbed_official | 146:f64d43ff0c18 | 350 | #define BP_NV_BACKKEY6_KEY (0U) //!< Bit position for NV_BACKKEY6_KEY. |
mbed_official | 146:f64d43ff0c18 | 351 | #define BM_NV_BACKKEY6_KEY (0xFFU) //!< Bit mask for NV_BACKKEY6_KEY. |
mbed_official | 146:f64d43ff0c18 | 352 | #define BS_NV_BACKKEY6_KEY (8U) //!< Bit field size in bits for NV_BACKKEY6_KEY. |
mbed_official | 146:f64d43ff0c18 | 353 | |
mbed_official | 146:f64d43ff0c18 | 354 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 355 | //! @brief Read current value of the NV_BACKKEY6_KEY field. |
mbed_official | 146:f64d43ff0c18 | 356 | #define BR_NV_BACKKEY6_KEY (HW_NV_BACKKEY6.U) |
mbed_official | 146:f64d43ff0c18 | 357 | #endif |
mbed_official | 146:f64d43ff0c18 | 358 | //@} |
mbed_official | 146:f64d43ff0c18 | 359 | |
mbed_official | 146:f64d43ff0c18 | 360 | //------------------------------------------------------------------------------------------- |
mbed_official | 146:f64d43ff0c18 | 361 | // HW_NV_BACKKEY5 - Backdoor Comparison Key 5. |
mbed_official | 146:f64d43ff0c18 | 362 | //------------------------------------------------------------------------------------------- |
mbed_official | 146:f64d43ff0c18 | 363 | |
mbed_official | 146:f64d43ff0c18 | 364 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 365 | /*! |
mbed_official | 146:f64d43ff0c18 | 366 | * @brief HW_NV_BACKKEY5 - Backdoor Comparison Key 5. (RO) |
mbed_official | 146:f64d43ff0c18 | 367 | * |
mbed_official | 146:f64d43ff0c18 | 368 | * Reset value: 0xFFU |
mbed_official | 146:f64d43ff0c18 | 369 | */ |
mbed_official | 146:f64d43ff0c18 | 370 | typedef union _hw_nv_backkey5 |
mbed_official | 146:f64d43ff0c18 | 371 | { |
mbed_official | 146:f64d43ff0c18 | 372 | uint8_t U; |
mbed_official | 146:f64d43ff0c18 | 373 | struct _hw_nv_backkey5_bitfields |
mbed_official | 146:f64d43ff0c18 | 374 | { |
mbed_official | 146:f64d43ff0c18 | 375 | uint8_t KEY : 8; //!< [7:0] Backdoor Comparison Key. |
mbed_official | 146:f64d43ff0c18 | 376 | } B; |
mbed_official | 146:f64d43ff0c18 | 377 | } hw_nv_backkey5_t; |
mbed_official | 146:f64d43ff0c18 | 378 | #endif |
mbed_official | 146:f64d43ff0c18 | 379 | |
mbed_official | 146:f64d43ff0c18 | 380 | /*! |
mbed_official | 146:f64d43ff0c18 | 381 | * @name Constants and macros for entire NV_BACKKEY5 register |
mbed_official | 146:f64d43ff0c18 | 382 | */ |
mbed_official | 146:f64d43ff0c18 | 383 | //@{ |
mbed_official | 146:f64d43ff0c18 | 384 | #define HW_NV_BACKKEY5_ADDR (REGS_NV_BASE + 0x6U) |
mbed_official | 146:f64d43ff0c18 | 385 | |
mbed_official | 146:f64d43ff0c18 | 386 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 387 | #define HW_NV_BACKKEY5 (*(__I hw_nv_backkey5_t *) HW_NV_BACKKEY5_ADDR) |
mbed_official | 146:f64d43ff0c18 | 388 | #define HW_NV_BACKKEY5_RD() (HW_NV_BACKKEY5.U) |
mbed_official | 146:f64d43ff0c18 | 389 | #endif |
mbed_official | 146:f64d43ff0c18 | 390 | //@} |
mbed_official | 146:f64d43ff0c18 | 391 | |
mbed_official | 146:f64d43ff0c18 | 392 | /* |
mbed_official | 146:f64d43ff0c18 | 393 | * Constants & macros for individual NV_BACKKEY5 bitfields |
mbed_official | 146:f64d43ff0c18 | 394 | */ |
mbed_official | 146:f64d43ff0c18 | 395 | |
mbed_official | 146:f64d43ff0c18 | 396 | /*! |
mbed_official | 146:f64d43ff0c18 | 397 | * @name Register NV_BACKKEY5, field KEY[7:0] (RO) |
mbed_official | 146:f64d43ff0c18 | 398 | */ |
mbed_official | 146:f64d43ff0c18 | 399 | //@{ |
mbed_official | 146:f64d43ff0c18 | 400 | #define BP_NV_BACKKEY5_KEY (0U) //!< Bit position for NV_BACKKEY5_KEY. |
mbed_official | 146:f64d43ff0c18 | 401 | #define BM_NV_BACKKEY5_KEY (0xFFU) //!< Bit mask for NV_BACKKEY5_KEY. |
mbed_official | 146:f64d43ff0c18 | 402 | #define BS_NV_BACKKEY5_KEY (8U) //!< Bit field size in bits for NV_BACKKEY5_KEY. |
mbed_official | 146:f64d43ff0c18 | 403 | |
mbed_official | 146:f64d43ff0c18 | 404 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 405 | //! @brief Read current value of the NV_BACKKEY5_KEY field. |
mbed_official | 146:f64d43ff0c18 | 406 | #define BR_NV_BACKKEY5_KEY (HW_NV_BACKKEY5.U) |
mbed_official | 146:f64d43ff0c18 | 407 | #endif |
mbed_official | 146:f64d43ff0c18 | 408 | //@} |
mbed_official | 146:f64d43ff0c18 | 409 | |
mbed_official | 146:f64d43ff0c18 | 410 | //------------------------------------------------------------------------------------------- |
mbed_official | 146:f64d43ff0c18 | 411 | // HW_NV_BACKKEY4 - Backdoor Comparison Key 4. |
mbed_official | 146:f64d43ff0c18 | 412 | //------------------------------------------------------------------------------------------- |
mbed_official | 146:f64d43ff0c18 | 413 | |
mbed_official | 146:f64d43ff0c18 | 414 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 415 | /*! |
mbed_official | 146:f64d43ff0c18 | 416 | * @brief HW_NV_BACKKEY4 - Backdoor Comparison Key 4. (RO) |
mbed_official | 146:f64d43ff0c18 | 417 | * |
mbed_official | 146:f64d43ff0c18 | 418 | * Reset value: 0xFFU |
mbed_official | 146:f64d43ff0c18 | 419 | */ |
mbed_official | 146:f64d43ff0c18 | 420 | typedef union _hw_nv_backkey4 |
mbed_official | 146:f64d43ff0c18 | 421 | { |
mbed_official | 146:f64d43ff0c18 | 422 | uint8_t U; |
mbed_official | 146:f64d43ff0c18 | 423 | struct _hw_nv_backkey4_bitfields |
mbed_official | 146:f64d43ff0c18 | 424 | { |
mbed_official | 146:f64d43ff0c18 | 425 | uint8_t KEY : 8; //!< [7:0] Backdoor Comparison Key. |
mbed_official | 146:f64d43ff0c18 | 426 | } B; |
mbed_official | 146:f64d43ff0c18 | 427 | } hw_nv_backkey4_t; |
mbed_official | 146:f64d43ff0c18 | 428 | #endif |
mbed_official | 146:f64d43ff0c18 | 429 | |
mbed_official | 146:f64d43ff0c18 | 430 | /*! |
mbed_official | 146:f64d43ff0c18 | 431 | * @name Constants and macros for entire NV_BACKKEY4 register |
mbed_official | 146:f64d43ff0c18 | 432 | */ |
mbed_official | 146:f64d43ff0c18 | 433 | //@{ |
mbed_official | 146:f64d43ff0c18 | 434 | #define HW_NV_BACKKEY4_ADDR (REGS_NV_BASE + 0x7U) |
mbed_official | 146:f64d43ff0c18 | 435 | |
mbed_official | 146:f64d43ff0c18 | 436 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 437 | #define HW_NV_BACKKEY4 (*(__I hw_nv_backkey4_t *) HW_NV_BACKKEY4_ADDR) |
mbed_official | 146:f64d43ff0c18 | 438 | #define HW_NV_BACKKEY4_RD() (HW_NV_BACKKEY4.U) |
mbed_official | 146:f64d43ff0c18 | 439 | #endif |
mbed_official | 146:f64d43ff0c18 | 440 | //@} |
mbed_official | 146:f64d43ff0c18 | 441 | |
mbed_official | 146:f64d43ff0c18 | 442 | /* |
mbed_official | 146:f64d43ff0c18 | 443 | * Constants & macros for individual NV_BACKKEY4 bitfields |
mbed_official | 146:f64d43ff0c18 | 444 | */ |
mbed_official | 146:f64d43ff0c18 | 445 | |
mbed_official | 146:f64d43ff0c18 | 446 | /*! |
mbed_official | 146:f64d43ff0c18 | 447 | * @name Register NV_BACKKEY4, field KEY[7:0] (RO) |
mbed_official | 146:f64d43ff0c18 | 448 | */ |
mbed_official | 146:f64d43ff0c18 | 449 | //@{ |
mbed_official | 146:f64d43ff0c18 | 450 | #define BP_NV_BACKKEY4_KEY (0U) //!< Bit position for NV_BACKKEY4_KEY. |
mbed_official | 146:f64d43ff0c18 | 451 | #define BM_NV_BACKKEY4_KEY (0xFFU) //!< Bit mask for NV_BACKKEY4_KEY. |
mbed_official | 146:f64d43ff0c18 | 452 | #define BS_NV_BACKKEY4_KEY (8U) //!< Bit field size in bits for NV_BACKKEY4_KEY. |
mbed_official | 146:f64d43ff0c18 | 453 | |
mbed_official | 146:f64d43ff0c18 | 454 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 455 | //! @brief Read current value of the NV_BACKKEY4_KEY field. |
mbed_official | 146:f64d43ff0c18 | 456 | #define BR_NV_BACKKEY4_KEY (HW_NV_BACKKEY4.U) |
mbed_official | 146:f64d43ff0c18 | 457 | #endif |
mbed_official | 146:f64d43ff0c18 | 458 | //@} |
mbed_official | 146:f64d43ff0c18 | 459 | |
mbed_official | 146:f64d43ff0c18 | 460 | //------------------------------------------------------------------------------------------- |
mbed_official | 146:f64d43ff0c18 | 461 | // HW_NV_FPROT3 - Non-volatile P-Flash Protection 1 - Low Register |
mbed_official | 146:f64d43ff0c18 | 462 | //------------------------------------------------------------------------------------------- |
mbed_official | 146:f64d43ff0c18 | 463 | |
mbed_official | 146:f64d43ff0c18 | 464 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 465 | /*! |
mbed_official | 146:f64d43ff0c18 | 466 | * @brief HW_NV_FPROT3 - Non-volatile P-Flash Protection 1 - Low Register (RO) |
mbed_official | 146:f64d43ff0c18 | 467 | * |
mbed_official | 146:f64d43ff0c18 | 468 | * Reset value: 0xFFU |
mbed_official | 146:f64d43ff0c18 | 469 | */ |
mbed_official | 146:f64d43ff0c18 | 470 | typedef union _hw_nv_fprot3 |
mbed_official | 146:f64d43ff0c18 | 471 | { |
mbed_official | 146:f64d43ff0c18 | 472 | uint8_t U; |
mbed_official | 146:f64d43ff0c18 | 473 | struct _hw_nv_fprot3_bitfields |
mbed_official | 146:f64d43ff0c18 | 474 | { |
mbed_official | 146:f64d43ff0c18 | 475 | uint8_t PROT : 8; //!< [7:0] P-Flash Region Protect |
mbed_official | 146:f64d43ff0c18 | 476 | } B; |
mbed_official | 146:f64d43ff0c18 | 477 | } hw_nv_fprot3_t; |
mbed_official | 146:f64d43ff0c18 | 478 | #endif |
mbed_official | 146:f64d43ff0c18 | 479 | |
mbed_official | 146:f64d43ff0c18 | 480 | /*! |
mbed_official | 146:f64d43ff0c18 | 481 | * @name Constants and macros for entire NV_FPROT3 register |
mbed_official | 146:f64d43ff0c18 | 482 | */ |
mbed_official | 146:f64d43ff0c18 | 483 | //@{ |
mbed_official | 146:f64d43ff0c18 | 484 | #define HW_NV_FPROT3_ADDR (REGS_NV_BASE + 0x8U) |
mbed_official | 146:f64d43ff0c18 | 485 | |
mbed_official | 146:f64d43ff0c18 | 486 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 487 | #define HW_NV_FPROT3 (*(__I hw_nv_fprot3_t *) HW_NV_FPROT3_ADDR) |
mbed_official | 146:f64d43ff0c18 | 488 | #define HW_NV_FPROT3_RD() (HW_NV_FPROT3.U) |
mbed_official | 146:f64d43ff0c18 | 489 | #endif |
mbed_official | 146:f64d43ff0c18 | 490 | //@} |
mbed_official | 146:f64d43ff0c18 | 491 | |
mbed_official | 146:f64d43ff0c18 | 492 | /* |
mbed_official | 146:f64d43ff0c18 | 493 | * Constants & macros for individual NV_FPROT3 bitfields |
mbed_official | 146:f64d43ff0c18 | 494 | */ |
mbed_official | 146:f64d43ff0c18 | 495 | |
mbed_official | 146:f64d43ff0c18 | 496 | /*! |
mbed_official | 146:f64d43ff0c18 | 497 | * @name Register NV_FPROT3, field PROT[7:0] (RO) |
mbed_official | 146:f64d43ff0c18 | 498 | */ |
mbed_official | 146:f64d43ff0c18 | 499 | //@{ |
mbed_official | 146:f64d43ff0c18 | 500 | #define BP_NV_FPROT3_PROT (0U) //!< Bit position for NV_FPROT3_PROT. |
mbed_official | 146:f64d43ff0c18 | 501 | #define BM_NV_FPROT3_PROT (0xFFU) //!< Bit mask for NV_FPROT3_PROT. |
mbed_official | 146:f64d43ff0c18 | 502 | #define BS_NV_FPROT3_PROT (8U) //!< Bit field size in bits for NV_FPROT3_PROT. |
mbed_official | 146:f64d43ff0c18 | 503 | |
mbed_official | 146:f64d43ff0c18 | 504 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 505 | //! @brief Read current value of the NV_FPROT3_PROT field. |
mbed_official | 146:f64d43ff0c18 | 506 | #define BR_NV_FPROT3_PROT (HW_NV_FPROT3.U) |
mbed_official | 146:f64d43ff0c18 | 507 | #endif |
mbed_official | 146:f64d43ff0c18 | 508 | //@} |
mbed_official | 146:f64d43ff0c18 | 509 | |
mbed_official | 146:f64d43ff0c18 | 510 | //------------------------------------------------------------------------------------------- |
mbed_official | 146:f64d43ff0c18 | 511 | // HW_NV_FPROT2 - Non-volatile P-Flash Protection 1 - High Register |
mbed_official | 146:f64d43ff0c18 | 512 | //------------------------------------------------------------------------------------------- |
mbed_official | 146:f64d43ff0c18 | 513 | |
mbed_official | 146:f64d43ff0c18 | 514 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 515 | /*! |
mbed_official | 146:f64d43ff0c18 | 516 | * @brief HW_NV_FPROT2 - Non-volatile P-Flash Protection 1 - High Register (RO) |
mbed_official | 146:f64d43ff0c18 | 517 | * |
mbed_official | 146:f64d43ff0c18 | 518 | * Reset value: 0xFFU |
mbed_official | 146:f64d43ff0c18 | 519 | */ |
mbed_official | 146:f64d43ff0c18 | 520 | typedef union _hw_nv_fprot2 |
mbed_official | 146:f64d43ff0c18 | 521 | { |
mbed_official | 146:f64d43ff0c18 | 522 | uint8_t U; |
mbed_official | 146:f64d43ff0c18 | 523 | struct _hw_nv_fprot2_bitfields |
mbed_official | 146:f64d43ff0c18 | 524 | { |
mbed_official | 146:f64d43ff0c18 | 525 | uint8_t PROT : 8; //!< [7:0] P-Flash Region Protect |
mbed_official | 146:f64d43ff0c18 | 526 | } B; |
mbed_official | 146:f64d43ff0c18 | 527 | } hw_nv_fprot2_t; |
mbed_official | 146:f64d43ff0c18 | 528 | #endif |
mbed_official | 146:f64d43ff0c18 | 529 | |
mbed_official | 146:f64d43ff0c18 | 530 | /*! |
mbed_official | 146:f64d43ff0c18 | 531 | * @name Constants and macros for entire NV_FPROT2 register |
mbed_official | 146:f64d43ff0c18 | 532 | */ |
mbed_official | 146:f64d43ff0c18 | 533 | //@{ |
mbed_official | 146:f64d43ff0c18 | 534 | #define HW_NV_FPROT2_ADDR (REGS_NV_BASE + 0x9U) |
mbed_official | 146:f64d43ff0c18 | 535 | |
mbed_official | 146:f64d43ff0c18 | 536 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 537 | #define HW_NV_FPROT2 (*(__I hw_nv_fprot2_t *) HW_NV_FPROT2_ADDR) |
mbed_official | 146:f64d43ff0c18 | 538 | #define HW_NV_FPROT2_RD() (HW_NV_FPROT2.U) |
mbed_official | 146:f64d43ff0c18 | 539 | #endif |
mbed_official | 146:f64d43ff0c18 | 540 | //@} |
mbed_official | 146:f64d43ff0c18 | 541 | |
mbed_official | 146:f64d43ff0c18 | 542 | /* |
mbed_official | 146:f64d43ff0c18 | 543 | * Constants & macros for individual NV_FPROT2 bitfields |
mbed_official | 146:f64d43ff0c18 | 544 | */ |
mbed_official | 146:f64d43ff0c18 | 545 | |
mbed_official | 146:f64d43ff0c18 | 546 | /*! |
mbed_official | 146:f64d43ff0c18 | 547 | * @name Register NV_FPROT2, field PROT[7:0] (RO) |
mbed_official | 146:f64d43ff0c18 | 548 | */ |
mbed_official | 146:f64d43ff0c18 | 549 | //@{ |
mbed_official | 146:f64d43ff0c18 | 550 | #define BP_NV_FPROT2_PROT (0U) //!< Bit position for NV_FPROT2_PROT. |
mbed_official | 146:f64d43ff0c18 | 551 | #define BM_NV_FPROT2_PROT (0xFFU) //!< Bit mask for NV_FPROT2_PROT. |
mbed_official | 146:f64d43ff0c18 | 552 | #define BS_NV_FPROT2_PROT (8U) //!< Bit field size in bits for NV_FPROT2_PROT. |
mbed_official | 146:f64d43ff0c18 | 553 | |
mbed_official | 146:f64d43ff0c18 | 554 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 555 | //! @brief Read current value of the NV_FPROT2_PROT field. |
mbed_official | 146:f64d43ff0c18 | 556 | #define BR_NV_FPROT2_PROT (HW_NV_FPROT2.U) |
mbed_official | 146:f64d43ff0c18 | 557 | #endif |
mbed_official | 146:f64d43ff0c18 | 558 | //@} |
mbed_official | 146:f64d43ff0c18 | 559 | |
mbed_official | 146:f64d43ff0c18 | 560 | //------------------------------------------------------------------------------------------- |
mbed_official | 146:f64d43ff0c18 | 561 | // HW_NV_FPROT1 - Non-volatile P-Flash Protection 0 - Low Register |
mbed_official | 146:f64d43ff0c18 | 562 | //------------------------------------------------------------------------------------------- |
mbed_official | 146:f64d43ff0c18 | 563 | |
mbed_official | 146:f64d43ff0c18 | 564 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 565 | /*! |
mbed_official | 146:f64d43ff0c18 | 566 | * @brief HW_NV_FPROT1 - Non-volatile P-Flash Protection 0 - Low Register (RO) |
mbed_official | 146:f64d43ff0c18 | 567 | * |
mbed_official | 146:f64d43ff0c18 | 568 | * Reset value: 0xFFU |
mbed_official | 146:f64d43ff0c18 | 569 | */ |
mbed_official | 146:f64d43ff0c18 | 570 | typedef union _hw_nv_fprot1 |
mbed_official | 146:f64d43ff0c18 | 571 | { |
mbed_official | 146:f64d43ff0c18 | 572 | uint8_t U; |
mbed_official | 146:f64d43ff0c18 | 573 | struct _hw_nv_fprot1_bitfields |
mbed_official | 146:f64d43ff0c18 | 574 | { |
mbed_official | 146:f64d43ff0c18 | 575 | uint8_t PROT : 8; //!< [7:0] P-Flash Region Protect |
mbed_official | 146:f64d43ff0c18 | 576 | } B; |
mbed_official | 146:f64d43ff0c18 | 577 | } hw_nv_fprot1_t; |
mbed_official | 146:f64d43ff0c18 | 578 | #endif |
mbed_official | 146:f64d43ff0c18 | 579 | |
mbed_official | 146:f64d43ff0c18 | 580 | /*! |
mbed_official | 146:f64d43ff0c18 | 581 | * @name Constants and macros for entire NV_FPROT1 register |
mbed_official | 146:f64d43ff0c18 | 582 | */ |
mbed_official | 146:f64d43ff0c18 | 583 | //@{ |
mbed_official | 146:f64d43ff0c18 | 584 | #define HW_NV_FPROT1_ADDR (REGS_NV_BASE + 0xAU) |
mbed_official | 146:f64d43ff0c18 | 585 | |
mbed_official | 146:f64d43ff0c18 | 586 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 587 | #define HW_NV_FPROT1 (*(__I hw_nv_fprot1_t *) HW_NV_FPROT1_ADDR) |
mbed_official | 146:f64d43ff0c18 | 588 | #define HW_NV_FPROT1_RD() (HW_NV_FPROT1.U) |
mbed_official | 146:f64d43ff0c18 | 589 | #endif |
mbed_official | 146:f64d43ff0c18 | 590 | //@} |
mbed_official | 146:f64d43ff0c18 | 591 | |
mbed_official | 146:f64d43ff0c18 | 592 | /* |
mbed_official | 146:f64d43ff0c18 | 593 | * Constants & macros for individual NV_FPROT1 bitfields |
mbed_official | 146:f64d43ff0c18 | 594 | */ |
mbed_official | 146:f64d43ff0c18 | 595 | |
mbed_official | 146:f64d43ff0c18 | 596 | /*! |
mbed_official | 146:f64d43ff0c18 | 597 | * @name Register NV_FPROT1, field PROT[7:0] (RO) |
mbed_official | 146:f64d43ff0c18 | 598 | */ |
mbed_official | 146:f64d43ff0c18 | 599 | //@{ |
mbed_official | 146:f64d43ff0c18 | 600 | #define BP_NV_FPROT1_PROT (0U) //!< Bit position for NV_FPROT1_PROT. |
mbed_official | 146:f64d43ff0c18 | 601 | #define BM_NV_FPROT1_PROT (0xFFU) //!< Bit mask for NV_FPROT1_PROT. |
mbed_official | 146:f64d43ff0c18 | 602 | #define BS_NV_FPROT1_PROT (8U) //!< Bit field size in bits for NV_FPROT1_PROT. |
mbed_official | 146:f64d43ff0c18 | 603 | |
mbed_official | 146:f64d43ff0c18 | 604 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 605 | //! @brief Read current value of the NV_FPROT1_PROT field. |
mbed_official | 146:f64d43ff0c18 | 606 | #define BR_NV_FPROT1_PROT (HW_NV_FPROT1.U) |
mbed_official | 146:f64d43ff0c18 | 607 | #endif |
mbed_official | 146:f64d43ff0c18 | 608 | //@} |
mbed_official | 146:f64d43ff0c18 | 609 | |
mbed_official | 146:f64d43ff0c18 | 610 | //------------------------------------------------------------------------------------------- |
mbed_official | 146:f64d43ff0c18 | 611 | // HW_NV_FPROT0 - Non-volatile P-Flash Protection 0 - High Register |
mbed_official | 146:f64d43ff0c18 | 612 | //------------------------------------------------------------------------------------------- |
mbed_official | 146:f64d43ff0c18 | 613 | |
mbed_official | 146:f64d43ff0c18 | 614 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 615 | /*! |
mbed_official | 146:f64d43ff0c18 | 616 | * @brief HW_NV_FPROT0 - Non-volatile P-Flash Protection 0 - High Register (RO) |
mbed_official | 146:f64d43ff0c18 | 617 | * |
mbed_official | 146:f64d43ff0c18 | 618 | * Reset value: 0xFFU |
mbed_official | 146:f64d43ff0c18 | 619 | */ |
mbed_official | 146:f64d43ff0c18 | 620 | typedef union _hw_nv_fprot0 |
mbed_official | 146:f64d43ff0c18 | 621 | { |
mbed_official | 146:f64d43ff0c18 | 622 | uint8_t U; |
mbed_official | 146:f64d43ff0c18 | 623 | struct _hw_nv_fprot0_bitfields |
mbed_official | 146:f64d43ff0c18 | 624 | { |
mbed_official | 146:f64d43ff0c18 | 625 | uint8_t PROT : 8; //!< [7:0] P-Flash Region Protect |
mbed_official | 146:f64d43ff0c18 | 626 | } B; |
mbed_official | 146:f64d43ff0c18 | 627 | } hw_nv_fprot0_t; |
mbed_official | 146:f64d43ff0c18 | 628 | #endif |
mbed_official | 146:f64d43ff0c18 | 629 | |
mbed_official | 146:f64d43ff0c18 | 630 | /*! |
mbed_official | 146:f64d43ff0c18 | 631 | * @name Constants and macros for entire NV_FPROT0 register |
mbed_official | 146:f64d43ff0c18 | 632 | */ |
mbed_official | 146:f64d43ff0c18 | 633 | //@{ |
mbed_official | 146:f64d43ff0c18 | 634 | #define HW_NV_FPROT0_ADDR (REGS_NV_BASE + 0xBU) |
mbed_official | 146:f64d43ff0c18 | 635 | |
mbed_official | 146:f64d43ff0c18 | 636 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 637 | #define HW_NV_FPROT0 (*(__I hw_nv_fprot0_t *) HW_NV_FPROT0_ADDR) |
mbed_official | 146:f64d43ff0c18 | 638 | #define HW_NV_FPROT0_RD() (HW_NV_FPROT0.U) |
mbed_official | 146:f64d43ff0c18 | 639 | #endif |
mbed_official | 146:f64d43ff0c18 | 640 | //@} |
mbed_official | 146:f64d43ff0c18 | 641 | |
mbed_official | 146:f64d43ff0c18 | 642 | /* |
mbed_official | 146:f64d43ff0c18 | 643 | * Constants & macros for individual NV_FPROT0 bitfields |
mbed_official | 146:f64d43ff0c18 | 644 | */ |
mbed_official | 146:f64d43ff0c18 | 645 | |
mbed_official | 146:f64d43ff0c18 | 646 | /*! |
mbed_official | 146:f64d43ff0c18 | 647 | * @name Register NV_FPROT0, field PROT[7:0] (RO) |
mbed_official | 146:f64d43ff0c18 | 648 | */ |
mbed_official | 146:f64d43ff0c18 | 649 | //@{ |
mbed_official | 146:f64d43ff0c18 | 650 | #define BP_NV_FPROT0_PROT (0U) //!< Bit position for NV_FPROT0_PROT. |
mbed_official | 146:f64d43ff0c18 | 651 | #define BM_NV_FPROT0_PROT (0xFFU) //!< Bit mask for NV_FPROT0_PROT. |
mbed_official | 146:f64d43ff0c18 | 652 | #define BS_NV_FPROT0_PROT (8U) //!< Bit field size in bits for NV_FPROT0_PROT. |
mbed_official | 146:f64d43ff0c18 | 653 | |
mbed_official | 146:f64d43ff0c18 | 654 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 655 | //! @brief Read current value of the NV_FPROT0_PROT field. |
mbed_official | 146:f64d43ff0c18 | 656 | #define BR_NV_FPROT0_PROT (HW_NV_FPROT0.U) |
mbed_official | 146:f64d43ff0c18 | 657 | #endif |
mbed_official | 146:f64d43ff0c18 | 658 | //@} |
mbed_official | 146:f64d43ff0c18 | 659 | |
mbed_official | 146:f64d43ff0c18 | 660 | //------------------------------------------------------------------------------------------- |
mbed_official | 146:f64d43ff0c18 | 661 | // HW_NV_FSEC - Non-volatile Flash Security Register |
mbed_official | 146:f64d43ff0c18 | 662 | //------------------------------------------------------------------------------------------- |
mbed_official | 146:f64d43ff0c18 | 663 | |
mbed_official | 146:f64d43ff0c18 | 664 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 665 | /*! |
mbed_official | 146:f64d43ff0c18 | 666 | * @brief HW_NV_FSEC - Non-volatile Flash Security Register (RO) |
mbed_official | 146:f64d43ff0c18 | 667 | * |
mbed_official | 146:f64d43ff0c18 | 668 | * Reset value: 0xFFU |
mbed_official | 146:f64d43ff0c18 | 669 | */ |
mbed_official | 146:f64d43ff0c18 | 670 | typedef union _hw_nv_fsec |
mbed_official | 146:f64d43ff0c18 | 671 | { |
mbed_official | 146:f64d43ff0c18 | 672 | uint8_t U; |
mbed_official | 146:f64d43ff0c18 | 673 | struct _hw_nv_fsec_bitfields |
mbed_official | 146:f64d43ff0c18 | 674 | { |
mbed_official | 146:f64d43ff0c18 | 675 | uint8_t SEC : 2; //!< [1:0] Flash Security |
mbed_official | 146:f64d43ff0c18 | 676 | uint8_t FSLACC : 2; //!< [3:2] Freescale Failure Analysis Access Code |
mbed_official | 146:f64d43ff0c18 | 677 | uint8_t MEEN : 2; //!< [5:4] |
mbed_official | 146:f64d43ff0c18 | 678 | uint8_t KEYEN : 2; //!< [7:6] Backdoor Key Security Enable |
mbed_official | 146:f64d43ff0c18 | 679 | } B; |
mbed_official | 146:f64d43ff0c18 | 680 | } hw_nv_fsec_t; |
mbed_official | 146:f64d43ff0c18 | 681 | #endif |
mbed_official | 146:f64d43ff0c18 | 682 | |
mbed_official | 146:f64d43ff0c18 | 683 | /*! |
mbed_official | 146:f64d43ff0c18 | 684 | * @name Constants and macros for entire NV_FSEC register |
mbed_official | 146:f64d43ff0c18 | 685 | */ |
mbed_official | 146:f64d43ff0c18 | 686 | //@{ |
mbed_official | 146:f64d43ff0c18 | 687 | #define HW_NV_FSEC_ADDR (REGS_NV_BASE + 0xCU) |
mbed_official | 146:f64d43ff0c18 | 688 | |
mbed_official | 146:f64d43ff0c18 | 689 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 690 | #define HW_NV_FSEC (*(__I hw_nv_fsec_t *) HW_NV_FSEC_ADDR) |
mbed_official | 146:f64d43ff0c18 | 691 | #define HW_NV_FSEC_RD() (HW_NV_FSEC.U) |
mbed_official | 146:f64d43ff0c18 | 692 | #endif |
mbed_official | 146:f64d43ff0c18 | 693 | //@} |
mbed_official | 146:f64d43ff0c18 | 694 | |
mbed_official | 146:f64d43ff0c18 | 695 | /* |
mbed_official | 146:f64d43ff0c18 | 696 | * Constants & macros for individual NV_FSEC bitfields |
mbed_official | 146:f64d43ff0c18 | 697 | */ |
mbed_official | 146:f64d43ff0c18 | 698 | |
mbed_official | 146:f64d43ff0c18 | 699 | /*! |
mbed_official | 146:f64d43ff0c18 | 700 | * @name Register NV_FSEC, field SEC[1:0] (RO) |
mbed_official | 146:f64d43ff0c18 | 701 | */ |
mbed_official | 146:f64d43ff0c18 | 702 | //@{ |
mbed_official | 146:f64d43ff0c18 | 703 | #define BP_NV_FSEC_SEC (0U) //!< Bit position for NV_FSEC_SEC. |
mbed_official | 146:f64d43ff0c18 | 704 | #define BM_NV_FSEC_SEC (0x03U) //!< Bit mask for NV_FSEC_SEC. |
mbed_official | 146:f64d43ff0c18 | 705 | #define BS_NV_FSEC_SEC (2U) //!< Bit field size in bits for NV_FSEC_SEC. |
mbed_official | 146:f64d43ff0c18 | 706 | |
mbed_official | 146:f64d43ff0c18 | 707 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 708 | //! @brief Read current value of the NV_FSEC_SEC field. |
mbed_official | 146:f64d43ff0c18 | 709 | #define BR_NV_FSEC_SEC (HW_NV_FSEC.B.SEC) |
mbed_official | 146:f64d43ff0c18 | 710 | #endif |
mbed_official | 146:f64d43ff0c18 | 711 | //@} |
mbed_official | 146:f64d43ff0c18 | 712 | |
mbed_official | 146:f64d43ff0c18 | 713 | /*! |
mbed_official | 146:f64d43ff0c18 | 714 | * @name Register NV_FSEC, field FSLACC[3:2] (RO) |
mbed_official | 146:f64d43ff0c18 | 715 | */ |
mbed_official | 146:f64d43ff0c18 | 716 | //@{ |
mbed_official | 146:f64d43ff0c18 | 717 | #define BP_NV_FSEC_FSLACC (2U) //!< Bit position for NV_FSEC_FSLACC. |
mbed_official | 146:f64d43ff0c18 | 718 | #define BM_NV_FSEC_FSLACC (0x0CU) //!< Bit mask for NV_FSEC_FSLACC. |
mbed_official | 146:f64d43ff0c18 | 719 | #define BS_NV_FSEC_FSLACC (2U) //!< Bit field size in bits for NV_FSEC_FSLACC. |
mbed_official | 146:f64d43ff0c18 | 720 | |
mbed_official | 146:f64d43ff0c18 | 721 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 722 | //! @brief Read current value of the NV_FSEC_FSLACC field. |
mbed_official | 146:f64d43ff0c18 | 723 | #define BR_NV_FSEC_FSLACC (HW_NV_FSEC.B.FSLACC) |
mbed_official | 146:f64d43ff0c18 | 724 | #endif |
mbed_official | 146:f64d43ff0c18 | 725 | //@} |
mbed_official | 146:f64d43ff0c18 | 726 | |
mbed_official | 146:f64d43ff0c18 | 727 | /*! |
mbed_official | 146:f64d43ff0c18 | 728 | * @name Register NV_FSEC, field MEEN[5:4] (RO) |
mbed_official | 146:f64d43ff0c18 | 729 | */ |
mbed_official | 146:f64d43ff0c18 | 730 | //@{ |
mbed_official | 146:f64d43ff0c18 | 731 | #define BP_NV_FSEC_MEEN (4U) //!< Bit position for NV_FSEC_MEEN. |
mbed_official | 146:f64d43ff0c18 | 732 | #define BM_NV_FSEC_MEEN (0x30U) //!< Bit mask for NV_FSEC_MEEN. |
mbed_official | 146:f64d43ff0c18 | 733 | #define BS_NV_FSEC_MEEN (2U) //!< Bit field size in bits for NV_FSEC_MEEN. |
mbed_official | 146:f64d43ff0c18 | 734 | |
mbed_official | 146:f64d43ff0c18 | 735 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 736 | //! @brief Read current value of the NV_FSEC_MEEN field. |
mbed_official | 146:f64d43ff0c18 | 737 | #define BR_NV_FSEC_MEEN (HW_NV_FSEC.B.MEEN) |
mbed_official | 146:f64d43ff0c18 | 738 | #endif |
mbed_official | 146:f64d43ff0c18 | 739 | //@} |
mbed_official | 146:f64d43ff0c18 | 740 | |
mbed_official | 146:f64d43ff0c18 | 741 | /*! |
mbed_official | 146:f64d43ff0c18 | 742 | * @name Register NV_FSEC, field KEYEN[7:6] (RO) |
mbed_official | 146:f64d43ff0c18 | 743 | */ |
mbed_official | 146:f64d43ff0c18 | 744 | //@{ |
mbed_official | 146:f64d43ff0c18 | 745 | #define BP_NV_FSEC_KEYEN (6U) //!< Bit position for NV_FSEC_KEYEN. |
mbed_official | 146:f64d43ff0c18 | 746 | #define BM_NV_FSEC_KEYEN (0xC0U) //!< Bit mask for NV_FSEC_KEYEN. |
mbed_official | 146:f64d43ff0c18 | 747 | #define BS_NV_FSEC_KEYEN (2U) //!< Bit field size in bits for NV_FSEC_KEYEN. |
mbed_official | 146:f64d43ff0c18 | 748 | |
mbed_official | 146:f64d43ff0c18 | 749 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 750 | //! @brief Read current value of the NV_FSEC_KEYEN field. |
mbed_official | 146:f64d43ff0c18 | 751 | #define BR_NV_FSEC_KEYEN (HW_NV_FSEC.B.KEYEN) |
mbed_official | 146:f64d43ff0c18 | 752 | #endif |
mbed_official | 146:f64d43ff0c18 | 753 | //@} |
mbed_official | 146:f64d43ff0c18 | 754 | |
mbed_official | 146:f64d43ff0c18 | 755 | //------------------------------------------------------------------------------------------- |
mbed_official | 146:f64d43ff0c18 | 756 | // HW_NV_FOPT - Non-volatile Flash Option Register |
mbed_official | 146:f64d43ff0c18 | 757 | //------------------------------------------------------------------------------------------- |
mbed_official | 146:f64d43ff0c18 | 758 | |
mbed_official | 146:f64d43ff0c18 | 759 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 760 | /*! |
mbed_official | 146:f64d43ff0c18 | 761 | * @brief HW_NV_FOPT - Non-volatile Flash Option Register (RO) |
mbed_official | 146:f64d43ff0c18 | 762 | * |
mbed_official | 146:f64d43ff0c18 | 763 | * Reset value: 0xFFU |
mbed_official | 146:f64d43ff0c18 | 764 | */ |
mbed_official | 146:f64d43ff0c18 | 765 | typedef union _hw_nv_fopt |
mbed_official | 146:f64d43ff0c18 | 766 | { |
mbed_official | 146:f64d43ff0c18 | 767 | uint8_t U; |
mbed_official | 146:f64d43ff0c18 | 768 | struct _hw_nv_fopt_bitfields |
mbed_official | 146:f64d43ff0c18 | 769 | { |
mbed_official | 146:f64d43ff0c18 | 770 | uint8_t LPBOOT : 1; //!< [0] |
mbed_official | 146:f64d43ff0c18 | 771 | uint8_t EZPORT_DIS : 1; //!< [1] |
mbed_official | 146:f64d43ff0c18 | 772 | uint8_t RESERVED0 : 6; //!< [7:2] |
mbed_official | 146:f64d43ff0c18 | 773 | } B; |
mbed_official | 146:f64d43ff0c18 | 774 | } hw_nv_fopt_t; |
mbed_official | 146:f64d43ff0c18 | 775 | #endif |
mbed_official | 146:f64d43ff0c18 | 776 | |
mbed_official | 146:f64d43ff0c18 | 777 | /*! |
mbed_official | 146:f64d43ff0c18 | 778 | * @name Constants and macros for entire NV_FOPT register |
mbed_official | 146:f64d43ff0c18 | 779 | */ |
mbed_official | 146:f64d43ff0c18 | 780 | //@{ |
mbed_official | 146:f64d43ff0c18 | 781 | #define HW_NV_FOPT_ADDR (REGS_NV_BASE + 0xDU) |
mbed_official | 146:f64d43ff0c18 | 782 | |
mbed_official | 146:f64d43ff0c18 | 783 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 784 | #define HW_NV_FOPT (*(__I hw_nv_fopt_t *) HW_NV_FOPT_ADDR) |
mbed_official | 146:f64d43ff0c18 | 785 | #define HW_NV_FOPT_RD() (HW_NV_FOPT.U) |
mbed_official | 146:f64d43ff0c18 | 786 | #endif |
mbed_official | 146:f64d43ff0c18 | 787 | //@} |
mbed_official | 146:f64d43ff0c18 | 788 | |
mbed_official | 146:f64d43ff0c18 | 789 | /* |
mbed_official | 146:f64d43ff0c18 | 790 | * Constants & macros for individual NV_FOPT bitfields |
mbed_official | 146:f64d43ff0c18 | 791 | */ |
mbed_official | 146:f64d43ff0c18 | 792 | |
mbed_official | 146:f64d43ff0c18 | 793 | /*! |
mbed_official | 146:f64d43ff0c18 | 794 | * @name Register NV_FOPT, field LPBOOT[0] (RO) |
mbed_official | 146:f64d43ff0c18 | 795 | */ |
mbed_official | 146:f64d43ff0c18 | 796 | //@{ |
mbed_official | 146:f64d43ff0c18 | 797 | #define BP_NV_FOPT_LPBOOT (0U) //!< Bit position for NV_FOPT_LPBOOT. |
mbed_official | 146:f64d43ff0c18 | 798 | #define BM_NV_FOPT_LPBOOT (0x01U) //!< Bit mask for NV_FOPT_LPBOOT. |
mbed_official | 146:f64d43ff0c18 | 799 | #define BS_NV_FOPT_LPBOOT (1U) //!< Bit field size in bits for NV_FOPT_LPBOOT. |
mbed_official | 146:f64d43ff0c18 | 800 | |
mbed_official | 146:f64d43ff0c18 | 801 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 802 | //! @brief Read current value of the NV_FOPT_LPBOOT field. |
mbed_official | 146:f64d43ff0c18 | 803 | #define BR_NV_FOPT_LPBOOT (BITBAND_ACCESS8(HW_NV_FOPT_ADDR, BP_NV_FOPT_LPBOOT)) |
mbed_official | 146:f64d43ff0c18 | 804 | #endif |
mbed_official | 146:f64d43ff0c18 | 805 | //@} |
mbed_official | 146:f64d43ff0c18 | 806 | |
mbed_official | 146:f64d43ff0c18 | 807 | /*! |
mbed_official | 146:f64d43ff0c18 | 808 | * @name Register NV_FOPT, field EZPORT_DIS[1] (RO) |
mbed_official | 146:f64d43ff0c18 | 809 | */ |
mbed_official | 146:f64d43ff0c18 | 810 | //@{ |
mbed_official | 146:f64d43ff0c18 | 811 | #define BP_NV_FOPT_EZPORT_DIS (1U) //!< Bit position for NV_FOPT_EZPORT_DIS. |
mbed_official | 146:f64d43ff0c18 | 812 | #define BM_NV_FOPT_EZPORT_DIS (0x02U) //!< Bit mask for NV_FOPT_EZPORT_DIS. |
mbed_official | 146:f64d43ff0c18 | 813 | #define BS_NV_FOPT_EZPORT_DIS (1U) //!< Bit field size in bits for NV_FOPT_EZPORT_DIS. |
mbed_official | 146:f64d43ff0c18 | 814 | |
mbed_official | 146:f64d43ff0c18 | 815 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 816 | //! @brief Read current value of the NV_FOPT_EZPORT_DIS field. |
mbed_official | 146:f64d43ff0c18 | 817 | #define BR_NV_FOPT_EZPORT_DIS (BITBAND_ACCESS8(HW_NV_FOPT_ADDR, BP_NV_FOPT_EZPORT_DIS)) |
mbed_official | 146:f64d43ff0c18 | 818 | #endif |
mbed_official | 146:f64d43ff0c18 | 819 | //@} |
mbed_official | 146:f64d43ff0c18 | 820 | |
mbed_official | 146:f64d43ff0c18 | 821 | //------------------------------------------------------------------------------------------- |
mbed_official | 146:f64d43ff0c18 | 822 | // HW_NV_FEPROT - Non-volatile EERAM Protection Register |
mbed_official | 146:f64d43ff0c18 | 823 | //------------------------------------------------------------------------------------------- |
mbed_official | 146:f64d43ff0c18 | 824 | |
mbed_official | 146:f64d43ff0c18 | 825 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 826 | /*! |
mbed_official | 146:f64d43ff0c18 | 827 | * @brief HW_NV_FEPROT - Non-volatile EERAM Protection Register (RO) |
mbed_official | 146:f64d43ff0c18 | 828 | * |
mbed_official | 146:f64d43ff0c18 | 829 | * Reset value: 0xFFU |
mbed_official | 146:f64d43ff0c18 | 830 | */ |
mbed_official | 146:f64d43ff0c18 | 831 | typedef union _hw_nv_feprot |
mbed_official | 146:f64d43ff0c18 | 832 | { |
mbed_official | 146:f64d43ff0c18 | 833 | uint8_t U; |
mbed_official | 146:f64d43ff0c18 | 834 | struct _hw_nv_feprot_bitfields |
mbed_official | 146:f64d43ff0c18 | 835 | { |
mbed_official | 146:f64d43ff0c18 | 836 | uint8_t EPROT : 8; //!< [7:0] |
mbed_official | 146:f64d43ff0c18 | 837 | } B; |
mbed_official | 146:f64d43ff0c18 | 838 | } hw_nv_feprot_t; |
mbed_official | 146:f64d43ff0c18 | 839 | #endif |
mbed_official | 146:f64d43ff0c18 | 840 | |
mbed_official | 146:f64d43ff0c18 | 841 | /*! |
mbed_official | 146:f64d43ff0c18 | 842 | * @name Constants and macros for entire NV_FEPROT register |
mbed_official | 146:f64d43ff0c18 | 843 | */ |
mbed_official | 146:f64d43ff0c18 | 844 | //@{ |
mbed_official | 146:f64d43ff0c18 | 845 | #define HW_NV_FEPROT_ADDR (REGS_NV_BASE + 0xEU) |
mbed_official | 146:f64d43ff0c18 | 846 | |
mbed_official | 146:f64d43ff0c18 | 847 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 848 | #define HW_NV_FEPROT (*(__I hw_nv_feprot_t *) HW_NV_FEPROT_ADDR) |
mbed_official | 146:f64d43ff0c18 | 849 | #define HW_NV_FEPROT_RD() (HW_NV_FEPROT.U) |
mbed_official | 146:f64d43ff0c18 | 850 | #endif |
mbed_official | 146:f64d43ff0c18 | 851 | //@} |
mbed_official | 146:f64d43ff0c18 | 852 | |
mbed_official | 146:f64d43ff0c18 | 853 | /* |
mbed_official | 146:f64d43ff0c18 | 854 | * Constants & macros for individual NV_FEPROT bitfields |
mbed_official | 146:f64d43ff0c18 | 855 | */ |
mbed_official | 146:f64d43ff0c18 | 856 | |
mbed_official | 146:f64d43ff0c18 | 857 | /*! |
mbed_official | 146:f64d43ff0c18 | 858 | * @name Register NV_FEPROT, field EPROT[7:0] (RO) |
mbed_official | 146:f64d43ff0c18 | 859 | */ |
mbed_official | 146:f64d43ff0c18 | 860 | //@{ |
mbed_official | 146:f64d43ff0c18 | 861 | #define BP_NV_FEPROT_EPROT (0U) //!< Bit position for NV_FEPROT_EPROT. |
mbed_official | 146:f64d43ff0c18 | 862 | #define BM_NV_FEPROT_EPROT (0xFFU) //!< Bit mask for NV_FEPROT_EPROT. |
mbed_official | 146:f64d43ff0c18 | 863 | #define BS_NV_FEPROT_EPROT (8U) //!< Bit field size in bits for NV_FEPROT_EPROT. |
mbed_official | 146:f64d43ff0c18 | 864 | |
mbed_official | 146:f64d43ff0c18 | 865 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 866 | //! @brief Read current value of the NV_FEPROT_EPROT field. |
mbed_official | 146:f64d43ff0c18 | 867 | #define BR_NV_FEPROT_EPROT (HW_NV_FEPROT.U) |
mbed_official | 146:f64d43ff0c18 | 868 | #endif |
mbed_official | 146:f64d43ff0c18 | 869 | //@} |
mbed_official | 146:f64d43ff0c18 | 870 | |
mbed_official | 146:f64d43ff0c18 | 871 | //------------------------------------------------------------------------------------------- |
mbed_official | 146:f64d43ff0c18 | 872 | // HW_NV_FDPROT - Non-volatile D-Flash Protection Register |
mbed_official | 146:f64d43ff0c18 | 873 | //------------------------------------------------------------------------------------------- |
mbed_official | 146:f64d43ff0c18 | 874 | |
mbed_official | 146:f64d43ff0c18 | 875 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 876 | /*! |
mbed_official | 146:f64d43ff0c18 | 877 | * @brief HW_NV_FDPROT - Non-volatile D-Flash Protection Register (RO) |
mbed_official | 146:f64d43ff0c18 | 878 | * |
mbed_official | 146:f64d43ff0c18 | 879 | * Reset value: 0xFFU |
mbed_official | 146:f64d43ff0c18 | 880 | */ |
mbed_official | 146:f64d43ff0c18 | 881 | typedef union _hw_nv_fdprot |
mbed_official | 146:f64d43ff0c18 | 882 | { |
mbed_official | 146:f64d43ff0c18 | 883 | uint8_t U; |
mbed_official | 146:f64d43ff0c18 | 884 | struct _hw_nv_fdprot_bitfields |
mbed_official | 146:f64d43ff0c18 | 885 | { |
mbed_official | 146:f64d43ff0c18 | 886 | uint8_t DPROT : 8; //!< [7:0] D-Flash Region Protect |
mbed_official | 146:f64d43ff0c18 | 887 | } B; |
mbed_official | 146:f64d43ff0c18 | 888 | } hw_nv_fdprot_t; |
mbed_official | 146:f64d43ff0c18 | 889 | #endif |
mbed_official | 146:f64d43ff0c18 | 890 | |
mbed_official | 146:f64d43ff0c18 | 891 | /*! |
mbed_official | 146:f64d43ff0c18 | 892 | * @name Constants and macros for entire NV_FDPROT register |
mbed_official | 146:f64d43ff0c18 | 893 | */ |
mbed_official | 146:f64d43ff0c18 | 894 | //@{ |
mbed_official | 146:f64d43ff0c18 | 895 | #define HW_NV_FDPROT_ADDR (REGS_NV_BASE + 0xFU) |
mbed_official | 146:f64d43ff0c18 | 896 | |
mbed_official | 146:f64d43ff0c18 | 897 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 898 | #define HW_NV_FDPROT (*(__I hw_nv_fdprot_t *) HW_NV_FDPROT_ADDR) |
mbed_official | 146:f64d43ff0c18 | 899 | #define HW_NV_FDPROT_RD() (HW_NV_FDPROT.U) |
mbed_official | 146:f64d43ff0c18 | 900 | #endif |
mbed_official | 146:f64d43ff0c18 | 901 | //@} |
mbed_official | 146:f64d43ff0c18 | 902 | |
mbed_official | 146:f64d43ff0c18 | 903 | /* |
mbed_official | 146:f64d43ff0c18 | 904 | * Constants & macros for individual NV_FDPROT bitfields |
mbed_official | 146:f64d43ff0c18 | 905 | */ |
mbed_official | 146:f64d43ff0c18 | 906 | |
mbed_official | 146:f64d43ff0c18 | 907 | /*! |
mbed_official | 146:f64d43ff0c18 | 908 | * @name Register NV_FDPROT, field DPROT[7:0] (RO) |
mbed_official | 146:f64d43ff0c18 | 909 | */ |
mbed_official | 146:f64d43ff0c18 | 910 | //@{ |
mbed_official | 146:f64d43ff0c18 | 911 | #define BP_NV_FDPROT_DPROT (0U) //!< Bit position for NV_FDPROT_DPROT. |
mbed_official | 146:f64d43ff0c18 | 912 | #define BM_NV_FDPROT_DPROT (0xFFU) //!< Bit mask for NV_FDPROT_DPROT. |
mbed_official | 146:f64d43ff0c18 | 913 | #define BS_NV_FDPROT_DPROT (8U) //!< Bit field size in bits for NV_FDPROT_DPROT. |
mbed_official | 146:f64d43ff0c18 | 914 | |
mbed_official | 146:f64d43ff0c18 | 915 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 916 | //! @brief Read current value of the NV_FDPROT_DPROT field. |
mbed_official | 146:f64d43ff0c18 | 917 | #define BR_NV_FDPROT_DPROT (HW_NV_FDPROT.U) |
mbed_official | 146:f64d43ff0c18 | 918 | #endif |
mbed_official | 146:f64d43ff0c18 | 919 | //@} |
mbed_official | 146:f64d43ff0c18 | 920 | |
mbed_official | 146:f64d43ff0c18 | 921 | //------------------------------------------------------------------------------------------- |
mbed_official | 146:f64d43ff0c18 | 922 | // hw_nv_t - module struct |
mbed_official | 146:f64d43ff0c18 | 923 | //------------------------------------------------------------------------------------------- |
mbed_official | 146:f64d43ff0c18 | 924 | /*! |
mbed_official | 146:f64d43ff0c18 | 925 | * @brief All NV module registers. |
mbed_official | 146:f64d43ff0c18 | 926 | */ |
mbed_official | 146:f64d43ff0c18 | 927 | #ifndef __LANGUAGE_ASM__ |
mbed_official | 146:f64d43ff0c18 | 928 | #pragma pack(1) |
mbed_official | 146:f64d43ff0c18 | 929 | typedef struct _hw_nv |
mbed_official | 146:f64d43ff0c18 | 930 | { |
mbed_official | 146:f64d43ff0c18 | 931 | __I hw_nv_backkey3_t BACKKEY3; //!< [0x0] Backdoor Comparison Key 3. |
mbed_official | 146:f64d43ff0c18 | 932 | __I hw_nv_backkey2_t BACKKEY2; //!< [0x1] Backdoor Comparison Key 2. |
mbed_official | 146:f64d43ff0c18 | 933 | __I hw_nv_backkey1_t BACKKEY1; //!< [0x2] Backdoor Comparison Key 1. |
mbed_official | 146:f64d43ff0c18 | 934 | __I hw_nv_backkey0_t BACKKEY0; //!< [0x3] Backdoor Comparison Key 0. |
mbed_official | 146:f64d43ff0c18 | 935 | __I hw_nv_backkey7_t BACKKEY7; //!< [0x4] Backdoor Comparison Key 7. |
mbed_official | 146:f64d43ff0c18 | 936 | __I hw_nv_backkey6_t BACKKEY6; //!< [0x5] Backdoor Comparison Key 6. |
mbed_official | 146:f64d43ff0c18 | 937 | __I hw_nv_backkey5_t BACKKEY5; //!< [0x6] Backdoor Comparison Key 5. |
mbed_official | 146:f64d43ff0c18 | 938 | __I hw_nv_backkey4_t BACKKEY4; //!< [0x7] Backdoor Comparison Key 4. |
mbed_official | 146:f64d43ff0c18 | 939 | __I hw_nv_fprot3_t FPROT3; //!< [0x8] Non-volatile P-Flash Protection 1 - Low Register |
mbed_official | 146:f64d43ff0c18 | 940 | __I hw_nv_fprot2_t FPROT2; //!< [0x9] Non-volatile P-Flash Protection 1 - High Register |
mbed_official | 146:f64d43ff0c18 | 941 | __I hw_nv_fprot1_t FPROT1; //!< [0xA] Non-volatile P-Flash Protection 0 - Low Register |
mbed_official | 146:f64d43ff0c18 | 942 | __I hw_nv_fprot0_t FPROT0; //!< [0xB] Non-volatile P-Flash Protection 0 - High Register |
mbed_official | 146:f64d43ff0c18 | 943 | __I hw_nv_fsec_t FSEC; //!< [0xC] Non-volatile Flash Security Register |
mbed_official | 146:f64d43ff0c18 | 944 | __I hw_nv_fopt_t FOPT; //!< [0xD] Non-volatile Flash Option Register |
mbed_official | 146:f64d43ff0c18 | 945 | __I hw_nv_feprot_t FEPROT; //!< [0xE] Non-volatile EERAM Protection Register |
mbed_official | 146:f64d43ff0c18 | 946 | __I hw_nv_fdprot_t FDPROT; //!< [0xF] Non-volatile D-Flash Protection Register |
mbed_official | 146:f64d43ff0c18 | 947 | } hw_nv_t; |
mbed_official | 146:f64d43ff0c18 | 948 | #pragma pack() |
mbed_official | 146:f64d43ff0c18 | 949 | |
mbed_official | 146:f64d43ff0c18 | 950 | //! @brief Macro to access all NV registers. |
mbed_official | 146:f64d43ff0c18 | 951 | //! @return Reference (not a pointer) to the registers struct. To get a pointer to the struct, |
mbed_official | 146:f64d43ff0c18 | 952 | //! use the '&' operator, like <code>&HW_NV</code>. |
mbed_official | 146:f64d43ff0c18 | 953 | #define HW_NV (*(hw_nv_t *) REGS_NV_BASE) |
mbed_official | 146:f64d43ff0c18 | 954 | #endif |
mbed_official | 146:f64d43ff0c18 | 955 | |
mbed_official | 146:f64d43ff0c18 | 956 | #endif // __HW_NV_REGISTERS_H__ |
mbed_official | 146:f64d43ff0c18 | 957 | // v22/130726/0.9 |
mbed_official | 146:f64d43ff0c18 | 958 | // EOF |