MAX32672 Peripheral Driver API
Peripheral Driver API for the MAX32672
ecc_regs.h
1
7/******************************************************************************
8 *
9 * Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by
10 * Analog Devices, Inc.),
11 * Copyright (C) 2023-2024 Analog Devices, Inc.
12 *
13 * Licensed under the Apache License, Version 2.0 (the "License");
14 * you may not use this file except in compliance with the License.
15 * You may obtain a copy of the License at
16 *
17 * http://www.apache.org/licenses/LICENSE-2.0
18 *
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
24 *
25 ******************************************************************************/
26
27#ifndef _ECC_REGS_H_
28#define _ECC_REGS_H_
29
30/* **** Includes **** */
31#include <stdint.h>
32#include <stdio.h>
33
34#warning "DEPRECATED(10-24-2022): ecc_regs.h - Scheduled for removal. Please use trimsir_regs.h."
35
36#ifdef __cplusplus
37extern "C" {
38#endif
39
40#if defined (__ICCARM__)
41 #pragma system_include
42#endif
43
44#if defined (__CC_ARM)
45 #pragma anon_unions
46#endif
48/*
49 If types are not defined elsewhere (CMSIS) define them here
50*/
51#ifndef __IO
52#define __IO volatile
53#endif
54#ifndef __I
55#define __I volatile const
56#endif
57#ifndef __O
58#define __O volatile
59#endif
60#ifndef __R
61#define __R volatile const
62#endif
64
65/* **** Definitions **** */
66
78#if defined(__GNUC__)
79__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")))
80#else
81#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"
82#endif
83typedef struct {
84 __R uint32_t rsv_0x0_0x7[2];
85 __IO uint32_t en;
87
88/* Register offsets for module ECC */
95 #define MXC_R_ECC_EN ((uint32_t)0x00000008UL)
104 #define MXC_F_ECC_EN_RAM0_1_POS MXC_F_TRIMSIR_BB_SIR2_RAM0_1ECCEN_POS
105 #define MXC_F_ECC_EN_RAM0_1 MXC_F_TRIMSIR_BB_SIR2_RAM0_1ECCEN
107 #define MXC_F_ECC_EN_RAM2_POS MXC_F_TRIMSIR_BB_SIR2_RAM2ECCEN_POS
108 #define MXC_F_ECC_EN_RAM2 MXC_F_TRIMSIR_BB_SIR2_RAM2ECCEN
110 #define MXC_F_ECC_EN_RAM3_POS MXC_F_TRIMSIR_BB_SIR2_RAM3ECCEN_POS
111 #define MXC_F_ECC_EN_RAM3 MXC_F_TRIMSIR_BB_SIR2_RAM3ECCEN
113 #define MXC_F_ECC_EN_ICC0_POS MXC_F_TRIMSIR_BB_SIR2_ICC0ECCEN_POS
114 #define MXC_F_ECC_EN_ICC0 MXC_F_TRIMSIR_BB_SIR2_ICC0ECCEN
116 #define MXC_F_ECC_EN_FL0_POS MXC_F_TRIMSIR_BB_SIR2_FL0ECCEN_POS
117 #define MXC_F_ECC_EN_FL0 MXC_F_TRIMSIR_BB_SIR2_FL0ECCEN
119 #define MXC_F_ECC_EN_FL1_POS MXC_F_TRIMSIR_BB_SIR2_FL1ECCEN_POS
120 #define MXC_F_ECC_EN_FL1 MXC_F_TRIMSIR_BB_SIR2_FL1ECCEN
124#ifdef __cplusplus
125}
126#endif
127
128#endif /* _ECC_REGS_H_ */
__IO uint32_t en
Definition: ecc_regs.h:85
Definition: ecc_regs.h:83