mbed library

Dependents:   Printf

Fork of mbed by mbed official

Committer:
bogdanm
Date:
Fri Sep 12 16:41:52 2014 +0100
Revision:
89:552587b429a1
Parent:
TARGET_K64F/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_K64F/device/MK64F12/MK64F12_nv.h@82:6473597d706e
Release 89 of the mbed library

Main changes:

- low power optimizations for Nordic targets
- code structure changes for Freescale K64F targets
- bug fixes in various backends

Who changed what in which revision?

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