MAX32520 Peripheral Driver API
Peripheral Driver API for the MAX32520
pwrseq_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_PWRSEQ_REGS_H_
29#define LIBRARIES_CMSIS_DEVICE_MAXIM_MAX32520_INCLUDE_PWRSEQ_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 __IO uint32_t lpcn;
78 __IO uint32_t lpwkst0;
79 __IO uint32_t lpwken0;
80 __IO uint32_t lpwkst1;
81 __IO uint32_t lpwken1;
82 __R uint32_t rsv_0x14_0x2f[7];
83 __IO uint32_t lppwkst;
84 __R uint32_t rsv_0x34_0x3f[3];
85 __IO uint32_t lpmemsd;
86 __R uint32_t rsv_0x44;
87 __IO uint32_t gp0;
88 __IO uint32_t gp1;
90
91/* Register offsets for module PWRSEQ */
98#define MXC_R_PWRSEQ_LPCN ((uint32_t)0x00000000UL)
99#define MXC_R_PWRSEQ_LPWKST0 ((uint32_t)0x00000004UL)
100#define MXC_R_PWRSEQ_LPWKEN0 ((uint32_t)0x00000008UL)
101#define MXC_R_PWRSEQ_LPWKST1 ((uint32_t)0x0000000CUL)
102#define MXC_R_PWRSEQ_LPWKEN1 ((uint32_t)0x00000010UL)
103#define MXC_R_PWRSEQ_LPPWKST ((uint32_t)0x00000030UL)
104#define MXC_R_PWRSEQ_LPMEMSD ((uint32_t)0x00000040UL)
105#define MXC_R_PWRSEQ_GP0 ((uint32_t)0x00000048UL)
106#define MXC_R_PWRSEQ_GP1 ((uint32_t)0x0000004CUL)
115#define MXC_F_PWRSEQ_LPCN_RAMRET_EN_POS 0
116#define MXC_F_PWRSEQ_LPCN_RAMRET_EN ((uint32_t)(0x3UL << MXC_F_PWRSEQ_LPCN_RAMRET_EN_POS))
118#define MXC_F_PWRSEQ_LPCN_LDO_DIS_POS 16
119#define MXC_F_PWRSEQ_LPCN_LDO_DIS ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_LDO_DIS_POS))
121#define MXC_F_PWRSEQ_LPCN_VCOREMON_DIS_POS 20
122#define MXC_F_PWRSEQ_LPCN_VCOREMON_DIS ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_VCOREMON_DIS_POS))
124#define MXC_F_PWRSEQ_LPCN_VDDAMON_DIS_POS 22
125#define MXC_F_PWRSEQ_LPCN_VDDAMON_DIS ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_VDDAMON_DIS_POS))
136#define MXC_F_PWRSEQ_LPWKST0_ST_POS 0
137#define MXC_F_PWRSEQ_LPWKST0_ST ((uint32_t)(0xFFFFUL << MXC_F_PWRSEQ_LPWKST0_ST_POS))
148#define MXC_F_PWRSEQ_LPWKEN0_EN_POS 0
149#define MXC_F_PWRSEQ_LPWKEN0_EN ((uint32_t)(0xFFFFUL << MXC_F_PWRSEQ_LPWKEN0_EN_POS))
160#define MXC_F_PWRSEQ_LPWKST1_ST_POS 0
161#define MXC_F_PWRSEQ_LPWKST1_ST ((uint32_t)(0x7FFUL << MXC_F_PWRSEQ_LPWKST1_ST_POS))
172#define MXC_F_PWRSEQ_LPWKEN1_EN_POS 0
173#define MXC_F_PWRSEQ_LPWKEN1_EN ((uint32_t)(0x7FFUL << MXC_F_PWRSEQ_LPWKEN1_EN_POS))
183#define MXC_F_PWRSEQ_LPPWKST_BBMOD_POS 16
184#define MXC_F_PWRSEQ_LPPWKST_BBMOD ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWKST_BBMOD_POS))
186#define MXC_F_PWRSEQ_LPPWKST_RST_POS 17
187#define MXC_F_PWRSEQ_LPPWKST_RST ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWKST_RST_POS))
189#define MXC_F_PWRSEQ_LPPWKST_SDMA1_POS 18
190#define MXC_F_PWRSEQ_LPPWKST_SDMA1 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWKST_SDMA1_POS))
200#define MXC_F_PWRSEQ_LPMEMSD_RAM0_POS 0
201#define MXC_F_PWRSEQ_LPMEMSD_RAM0 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPMEMSD_RAM0_POS))
203#define MXC_F_PWRSEQ_LPMEMSD_RAM1_POS 1
204#define MXC_F_PWRSEQ_LPMEMSD_RAM1 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPMEMSD_RAM1_POS))
206#define MXC_F_PWRSEQ_LPMEMSD_RAM2_POS 2
207#define MXC_F_PWRSEQ_LPMEMSD_RAM2 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPMEMSD_RAM2_POS))
209#define MXC_F_PWRSEQ_LPMEMSD_RAM3_POS 3
210#define MXC_F_PWRSEQ_LPMEMSD_RAM3 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPMEMSD_RAM3_POS))
212#define MXC_F_PWRSEQ_LPMEMSD_RAM4_POS 4
213#define MXC_F_PWRSEQ_LPMEMSD_RAM4 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPMEMSD_RAM4_POS))
215#define MXC_F_PWRSEQ_LPMEMSD_ICACHE_POS 7
216#define MXC_F_PWRSEQ_LPMEMSD_ICACHE ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPMEMSD_ICACHE_POS))
218#define MXC_F_PWRSEQ_LPMEMSD_ICACHEXIP_POS 8
219#define MXC_F_PWRSEQ_LPMEMSD_ICACHEXIP ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPMEMSD_ICACHEXIP_POS))
221#define MXC_F_PWRSEQ_LPMEMSD_ROM_POS 12
222#define MXC_F_PWRSEQ_LPMEMSD_ROM ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPMEMSD_ROM_POS))
226#ifdef __cplusplus
227}
228#endif
229
230#endif // LIBRARIES_CMSIS_DEVICE_MAXIM_MAX32520_INCLUDE_PWRSEQ_REGS_H_
__IO uint32_t gp0
Definition: pwrseq_regs.h:87
__IO uint32_t lpwken0
Definition: pwrseq_regs.h:79
__IO uint32_t lpwkst0
Definition: pwrseq_regs.h:78
__IO uint32_t lpwken1
Definition: pwrseq_regs.h:81
__IO uint32_t gp1
Definition: pwrseq_regs.h:88
__IO uint32_t lppwkst
Definition: pwrseq_regs.h:83
__IO uint32_t lpmemsd
Definition: pwrseq_regs.h:85
__IO uint32_t lpwkst1
Definition: pwrseq_regs.h:80
__IO uint32_t lpcn
Definition: pwrseq_regs.h:77
Definition: pwrseq_regs.h:76