MAX32520 Peripheral Driver API
Peripheral Driver API for the MAX32520
sfe_regs.h
Go to the documentation of this file.
1
8/******************************************************************************
9 *
10 * Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by
11 * Analog Devices, Inc.),
12 * Copyright (C) 2023-2024 Analog Devices, Inc.
13 *
14 * Licensed under the Apache License, Version 2.0 (the "License");
15 * you may not use this file except in compliance with the License.
16 * You may obtain a copy of the License at
17 *
18 * http://www.apache.org/licenses/LICENSE-2.0
19 *
20 * Unless required by applicable law or agreed to in writing, software
21 * distributed under the License is distributed on an "AS IS" BASIS,
22 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23 * See the License for the specific language governing permissions and
24 * limitations under the License.
25 *
26 ******************************************************************************/
27
28#ifndef LIBRARIES_CMSIS_DEVICE_MAXIM_MAX32520_INCLUDE_SFE_REGS_H_
29#define LIBRARIES_CMSIS_DEVICE_MAXIM_MAX32520_INCLUDE_SFE_REGS_H_
30
31/* **** Includes **** */
32#include <stdint.h>
33
34#ifdef __cplusplus
35extern "C" {
36#endif
37
38#if defined (__ICCARM__)
39 #pragma system_include
40#endif
41
42#if defined (__CC_ARM)
43 #pragma anon_unions
44#endif
46/*
47 If types are not defined elsewhere (CMSIS) define them here
48*/
49#ifndef __IO
50#define __IO volatile
51#endif
52#ifndef __I
53#define __I volatile const
54#endif
55#ifndef __O
56#define __O volatile
57#endif
58#ifndef __R
59#define __R volatile const
60#endif
62
63/* **** Definitions **** */
64
76typedef struct {
77 __R uint32_t rsv_0x0_0x3ff[256];
78 __IO uint32_t cfg;
79 __R uint32_t rsv_0x404;
80 __IO uint32_t hfsa;
81 __IO uint32_t hrsa;
82 __IO uint32_t sfdp_sba;
83 __IO uint32_t flash_sba;
84 __IO uint32_t flash_sta;
85 __IO uint32_t ram_sba;
86 __IO uint32_t ram_sta;
88
89/* Register offsets for module SFE */
96#define MXC_R_SFE_CFG ((uint32_t)0x00000400UL)
97#define MXC_R_SFE_HFSA ((uint32_t)0x00000408UL)
98#define MXC_R_SFE_HRSA ((uint32_t)0x0000040CUL)
99#define MXC_R_SFE_SFDP_SBA ((uint32_t)0x00000410UL)
100#define MXC_R_SFE_FLASH_SBA ((uint32_t)0x00000414UL)
101#define MXC_R_SFE_FLASH_STA ((uint32_t)0x00000418UL)
102#define MXC_R_SFE_RAM_SBA ((uint32_t)0x0000041CUL)
103#define MXC_R_SFE_RAM_STA ((uint32_t)0x00000420UL)
112#define MXC_F_SFE_CFG_DRLE_POS 0
113#define MXC_F_SFE_CFG_DRLE ((uint32_t)(0x1UL << MXC_F_SFE_CFG_DRLE_POS))
115#define MXC_F_SFE_CFG_FLOCK_POS 15
116#define MXC_F_SFE_CFG_FLOCK ((uint32_t)(0x1UL << MXC_F_SFE_CFG_FLOCK_POS))
118#define MXC_F_SFE_CFG_RD_EN_POS 16
119#define MXC_F_SFE_CFG_RD_EN ((uint32_t)(0x1UL << MXC_F_SFE_CFG_RD_EN_POS))
121#define MXC_F_SFE_CFG_WR_EN_POS 17
122#define MXC_F_SFE_CFG_WR_EN ((uint32_t)(0x1UL << MXC_F_SFE_CFG_WR_EN_POS))
124#define MXC_F_SFE_CFG_RRLOCK_POS 22
125#define MXC_F_SFE_CFG_RRLOCK ((uint32_t)(0x1UL << MXC_F_SFE_CFG_RRLOCK_POS))
127#define MXC_F_SFE_CFG_RWLOCK_POS 23
128#define MXC_F_SFE_CFG_RWLOCK ((uint32_t)(0x1UL << MXC_F_SFE_CFG_RWLOCK_POS))
138#define MXC_F_SFE_HFSA_HFSA_POS 10
139#define MXC_F_SFE_HFSA_HFSA ((uint32_t)(0x3FFFFFUL << MXC_F_SFE_HFSA_HFSA_POS))
149#define MXC_F_SFE_HRSA_HRSA_POS 10
150#define MXC_F_SFE_HRSA_HRSA ((uint32_t)(0x3FFFFFUL << MXC_F_SFE_HRSA_HRSA_POS))
160#define MXC_F_SFE_SFDP_SBA_SFDP_SBA_POS 8
161#define MXC_F_SFE_SFDP_SBA_SFDP_SBA ((uint32_t)(0xFFFFFFUL << MXC_F_SFE_SFDP_SBA_SFDP_SBA_POS))
171#define MXC_F_SFE_FLASH_SBA_FLASH_SBA_POS 10
172#define MXC_F_SFE_FLASH_SBA_FLASH_SBA ((uint32_t)(0x3FFFFFUL << MXC_F_SFE_FLASH_SBA_FLASH_SBA_POS))
182#define MXC_F_SFE_FLASH_STA_FLASH_STA_POS 10
183#define MXC_F_SFE_FLASH_STA_FLASH_STA ((uint32_t)(0x3FFFFFUL << MXC_F_SFE_FLASH_STA_FLASH_STA_POS))
193#define MXC_F_SFE_RAM_SBA_RAM_SBA_POS 10
194#define MXC_F_SFE_RAM_SBA_RAM_SBA ((uint32_t)(0x3FFFFFUL << MXC_F_SFE_RAM_SBA_RAM_SBA_POS))
204#define MXC_F_SFE_RAM_STA_RAM_STA_POS 10
205#define MXC_F_SFE_RAM_STA_RAM_STA ((uint32_t)(0x3FFFFFUL << MXC_F_SFE_RAM_STA_RAM_STA_POS))
209#ifdef __cplusplus
210}
211#endif
212
213#endif // LIBRARIES_CMSIS_DEVICE_MAXIM_MAX32520_INCLUDE_SFE_REGS_H_
__IO uint32_t sfdp_sba
Definition: sfe_regs.h:82
__IO uint32_t cfg
Definition: sfe_regs.h:78
__IO uint32_t flash_sta
Definition: sfe_regs.h:84
__IO uint32_t hfsa
Definition: sfe_regs.h:80
__IO uint32_t flash_sba
Definition: sfe_regs.h:83
__IO uint32_t ram_sta
Definition: sfe_regs.h:86
__IO uint32_t ram_sba
Definition: sfe_regs.h:85
__IO uint32_t hrsa
Definition: sfe_regs.h:81
Definition: sfe_regs.h:76