/** * @file ecc_regs.h * @brief Registers, Bit Masks and Bit Positions for the ECC Peripheral Module. * @deprecated This file is deprecated in favor of @ref trimsir_registers. */ /****************************************************************************** * * Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by * Analog Devices, Inc.), * Copyright (C) 2023-2024 Analog Devices, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ******************************************************************************/ #ifndef _ECC_REGS_H_ #define _ECC_REGS_H_ /* **** Includes **** */ #include #include #warning "DEPRECATED(10-24-2022): ecc_regs.h - Scheduled for removal. Please use trimsir_regs.h." #ifdef __cplusplus extern "C" { #endif #if defined (__ICCARM__) #pragma system_include #endif #if defined (__CC_ARM) #pragma anon_unions #endif /// @cond /* If types are not defined elsewhere (CMSIS) define them here */ #ifndef __IO #define __IO volatile #endif #ifndef __I #define __I volatile const #endif #ifndef __O #define __O volatile #endif #ifndef __R #define __R volatile const #endif /// @endcond /* **** Definitions **** */ /** * @ingroup ecc * @defgroup ecc_registers ECC_Registers * @brief Registers, Bit Masks and Bit Positions for the ECC Peripheral Module. * @details Error Correction Code */ /** * @ingroup ecc_registers * Structure type to access the ECC Registers. */ #if defined(__GNUC__) __attribute__((deprecated("mxc_ecc_regs_t struct and ecc_regs.h no longer supported. Use trimsir_regs.h and MXC_TRIMSIR (mxc_trimsir_regs_t) for ECC. 10-24-2022"))) #else #warning "mxc_ecc_regs_t struct and ecc_regs.h no longer supported. Use trimsir_regs.h and MXC_TRIMSIR (mxc_trimsir_regs_t) for ECC. 10-24-2022" #endif typedef struct { __R uint32_t rsv_0x0_0x7[2]; __IO uint32_t en; /**< \b 0x08: ECC EN Register */ } mxc_ecc_regs_t; /* Register offsets for module ECC */ /** * @ingroup ecc_registers * @defgroup ECC_Register_Offsets Register Offsets * @brief ECC Peripheral Register Offsets from the ECC Base Peripheral Address. * @{ */ #define MXC_R_ECC_EN ((uint32_t)0x00000008UL) /**< Offset from ECC Base Address: 0x0008 */ /**@} end of group ecc_registers */ /** * @ingroup ecc_registers * @defgroup ECC_EN ECC_EN * @brief ECC Enable Register * @{ */ #define MXC_F_ECC_EN_RAM0_1_POS MXC_F_TRIMSIR_BB_SIR2_RAM0_1ECCEN_POS /**< EN_RAM0_1 Position */ #define MXC_F_ECC_EN_RAM0_1 MXC_F_TRIMSIR_BB_SIR2_RAM0_1ECCEN /**< EN_RAM0_1 Mask */ #define MXC_F_ECC_EN_RAM2_POS MXC_F_TRIMSIR_BB_SIR2_RAM2ECCEN_POS /**< EN_RAM2 Position */ #define MXC_F_ECC_EN_RAM2 MXC_F_TRIMSIR_BB_SIR2_RAM2ECCEN /**< EN_RAM2 Mask */ #define MXC_F_ECC_EN_RAM3_POS MXC_F_TRIMSIR_BB_SIR2_RAM3ECCEN_POS /**< EN_RAM3 Position */ #define MXC_F_ECC_EN_RAM3 MXC_F_TRIMSIR_BB_SIR2_RAM3ECCEN /**< EN_RAM3 Mask */ #define MXC_F_ECC_EN_ICC0_POS MXC_F_TRIMSIR_BB_SIR2_ICC0ECCEN_POS /**< EN_ICC0 Position */ #define MXC_F_ECC_EN_ICC0 MXC_F_TRIMSIR_BB_SIR2_ICC0ECCEN /**< EN_ICC0 Mask */ #define MXC_F_ECC_EN_FL0_POS MXC_F_TRIMSIR_BB_SIR2_FL0ECCEN_POS /**< EN_FL0 Position */ #define MXC_F_ECC_EN_FL0 MXC_F_TRIMSIR_BB_SIR2_FL0ECCEN /**< EN_FL0 Mask */ #define MXC_F_ECC_EN_FL1_POS MXC_F_TRIMSIR_BB_SIR2_FL1ECCEN_POS /**< EN_FL1 Position */ #define MXC_F_ECC_EN_FL1 MXC_F_TRIMSIR_BB_SIR2_FL1ECCEN /**< EN_FL1 Mask */ /**@} end of group ECC_EN_Register */ #ifdef __cplusplus } #endif #endif /* _ECC_REGS_H_ */