MAX32672 Peripheral Driver API
Peripheral Driver API for the MAX32672
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_MAX32672_INCLUDE_PWRSEQ_REGS_H_
29#define LIBRARIES_CMSIS_DEVICE_MAXIM_MAX32672_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 __IO uint32_t lppwken;
85 __R uint32_t rsv_0x38_0x3f[2];
86 __IO uint32_t lpmemsd;
87 __R uint32_t rsv_0x44;
88 __IO uint32_t gpr0;
89 __IO uint32_t gpr1;
91
92/* Register offsets for module PWRSEQ */
99#define MXC_R_PWRSEQ_LPCN ((uint32_t)0x00000000UL)
100#define MXC_R_PWRSEQ_LPWKST0 ((uint32_t)0x00000004UL)
101#define MXC_R_PWRSEQ_LPWKEN0 ((uint32_t)0x00000008UL)
102#define MXC_R_PWRSEQ_LPWKST1 ((uint32_t)0x0000000CUL)
103#define MXC_R_PWRSEQ_LPWKEN1 ((uint32_t)0x00000010UL)
104#define MXC_R_PWRSEQ_LPPWKST ((uint32_t)0x00000030UL)
105#define MXC_R_PWRSEQ_LPPWKEN ((uint32_t)0x00000034UL)
106#define MXC_R_PWRSEQ_LPMEMSD ((uint32_t)0x00000040UL)
107#define MXC_R_PWRSEQ_GPR0 ((uint32_t)0x00000048UL)
108#define MXC_R_PWRSEQ_GPR1 ((uint32_t)0x0000004CUL)
117#define MXC_F_PWRSEQ_LPCN_RAM0RET_EN_POS 0
118#define MXC_F_PWRSEQ_LPCN_RAM0RET_EN ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_RAM0RET_EN_POS))
120#define MXC_F_PWRSEQ_LPCN_RAM1RET_EN_POS 1
121#define MXC_F_PWRSEQ_LPCN_RAM1RET_EN ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_RAM1RET_EN_POS))
123#define MXC_F_PWRSEQ_LPCN_RAM2RET_EN_POS 2
124#define MXC_F_PWRSEQ_LPCN_RAM2RET_EN ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_RAM2RET_EN_POS))
126#define MXC_F_PWRSEQ_LPCN_RAM3RET_EN_POS 3
127#define MXC_F_PWRSEQ_LPCN_RAM3RET_EN ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_RAM3RET_EN_POS))
129#define MXC_F_PWRSEQ_LPCN_OVR_POS 4
130#define MXC_F_PWRSEQ_LPCN_OVR ((uint32_t)(0x3UL << MXC_F_PWRSEQ_LPCN_OVR_POS))
131#define MXC_V_PWRSEQ_LPCN_OVR_0_9V ((uint32_t)0x0UL)
132#define MXC_S_PWRSEQ_LPCN_OVR_0_9V (MXC_V_PWRSEQ_LPCN_OVR_0_9V << MXC_F_PWRSEQ_LPCN_OVR_POS)
133#define MXC_V_PWRSEQ_LPCN_OVR_1_0V ((uint32_t)0x1UL)
134#define MXC_S_PWRSEQ_LPCN_OVR_1_0V (MXC_V_PWRSEQ_LPCN_OVR_1_0V << MXC_F_PWRSEQ_LPCN_OVR_POS)
135#define MXC_V_PWRSEQ_LPCN_OVR_1_1V ((uint32_t)0x2UL)
136#define MXC_S_PWRSEQ_LPCN_OVR_1_1V (MXC_V_PWRSEQ_LPCN_OVR_1_1V << MXC_F_PWRSEQ_LPCN_OVR_POS)
138#define MXC_F_PWRSEQ_LPCN_VCORE_DET_BYPASS_POS 6
139#define MXC_F_PWRSEQ_LPCN_VCORE_DET_BYPASS ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_VCORE_DET_BYPASS_POS))
141#define MXC_F_PWRSEQ_LPCN_FVDDEN_POS 7
142#define MXC_F_PWRSEQ_LPCN_FVDDEN ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_FVDDEN_POS))
144#define MXC_F_PWRSEQ_LPCN_RETREG_EN_POS 8
145#define MXC_F_PWRSEQ_LPCN_RETREG_EN ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_RETREG_EN_POS))
147#define MXC_F_PWRSEQ_LPCN_STORAGE_EN_POS 9
148#define MXC_F_PWRSEQ_LPCN_STORAGE_EN ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_STORAGE_EN_POS))
150#define MXC_F_PWRSEQ_LPCN_FASTWK_EN_POS 10
151#define MXC_F_PWRSEQ_LPCN_FASTWK_EN ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_FASTWK_EN_POS))
153#define MXC_F_PWRSEQ_LPCN_BG_DIS_POS 11
154#define MXC_F_PWRSEQ_LPCN_BG_DIS ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_BG_DIS_POS))
156#define MXC_F_PWRSEQ_LPCN_VCOREPOR_DIS_POS 12
157#define MXC_F_PWRSEQ_LPCN_VCOREPOR_DIS ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_VCOREPOR_DIS_POS))
159#define MXC_F_PWRSEQ_LPCN_LDO_DIS_POS 16
160#define MXC_F_PWRSEQ_LPCN_LDO_DIS ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_LDO_DIS_POS))
162#define MXC_F_PWRSEQ_LPCN_VCORE_EXT_POS 17
163#define MXC_F_PWRSEQ_LPCN_VCORE_EXT ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_VCORE_EXT_POS))
165#define MXC_F_PWRSEQ_LPCN_VCOREMON_DIS_POS 20
166#define MXC_F_PWRSEQ_LPCN_VCOREMON_DIS ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_VCOREMON_DIS_POS))
168#define MXC_F_PWRSEQ_LPCN_VDDAMON_DIS_POS 22
169#define MXC_F_PWRSEQ_LPCN_VDDAMON_DIS ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_VDDAMON_DIS_POS))
171#define MXC_F_PWRSEQ_LPCN_PORVDDMON_DIS_POS 25
172#define MXC_F_PWRSEQ_LPCN_PORVDDMON_DIS ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_PORVDDMON_DIS_POS))
174#define MXC_F_PWRSEQ_LPCN_VBBMON_DIS_POS 27
175#define MXC_F_PWRSEQ_LPCN_VBBMON_DIS ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_VBBMON_DIS_POS))
177#define MXC_F_PWRSEQ_LPCN_INRO_EN_POS 28
178#define MXC_F_PWRSEQ_LPCN_INRO_EN ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_INRO_EN_POS))
180#define MXC_F_PWRSEQ_LPCN_ERTCO_EN_POS 29
181#define MXC_F_PWRSEQ_LPCN_ERTCO_EN ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_ERTCO_EN_POS))
183#define MXC_F_PWRSEQ_LPCN_TM_LPMODE_POS 30
184#define MXC_F_PWRSEQ_LPCN_TM_LPMODE ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_TM_LPMODE_POS))
186#define MXC_F_PWRSEQ_LPCN_TM_PWRSEQ_POS 31
187#define MXC_F_PWRSEQ_LPCN_TM_PWRSEQ ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_TM_PWRSEQ_POS))
198#define MXC_F_PWRSEQ_LPWKST0_ST_POS 0
199#define MXC_F_PWRSEQ_LPWKST0_ST ((uint32_t)(0x7FFFFFFFUL << MXC_F_PWRSEQ_LPWKST0_ST_POS))
210#define MXC_F_PWRSEQ_LPWKEN0_EN_POS 0
211#define MXC_F_PWRSEQ_LPWKEN0_EN ((uint32_t)(0x7FFFFFFFUL << MXC_F_PWRSEQ_LPWKEN0_EN_POS))
221#define MXC_F_PWRSEQ_LPPWKST_LPTMR0_POS 0
222#define MXC_F_PWRSEQ_LPPWKST_LPTMR0 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWKST_LPTMR0_POS))
224#define MXC_F_PWRSEQ_LPPWKST_LPTMR1_POS 1
225#define MXC_F_PWRSEQ_LPPWKST_LPTMR1 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWKST_LPTMR1_POS))
227#define MXC_F_PWRSEQ_LPPWKST_LPUART0_POS 2
228#define MXC_F_PWRSEQ_LPPWKST_LPUART0 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWKST_LPUART0_POS))
230#define MXC_F_PWRSEQ_LPPWKST_AINCOMP0_POS 3
231#define MXC_F_PWRSEQ_LPPWKST_AINCOMP0 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWKST_AINCOMP0_POS))
233#define MXC_F_PWRSEQ_LPPWKST_AINCOMP1_POS 4
234#define MXC_F_PWRSEQ_LPPWKST_AINCOMP1 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWKST_AINCOMP1_POS))
236#define MXC_F_PWRSEQ_LPPWKST_AINCOMP0_OUT_POS 5
237#define MXC_F_PWRSEQ_LPPWKST_AINCOMP0_OUT ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWKST_AINCOMP0_OUT_POS))
239#define MXC_F_PWRSEQ_LPPWKST_AINCOMP1_OUT_POS 6
240#define MXC_F_PWRSEQ_LPPWKST_AINCOMP1_OUT ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWKST_AINCOMP1_OUT_POS))
242#define MXC_F_PWRSEQ_LPPWKST_BACKUP_POS 16
243#define MXC_F_PWRSEQ_LPPWKST_BACKUP ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWKST_BACKUP_POS))
253#define MXC_F_PWRSEQ_LPPWKEN_LPTMR0_POS 0
254#define MXC_F_PWRSEQ_LPPWKEN_LPTMR0 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWKEN_LPTMR0_POS))
256#define MXC_F_PWRSEQ_LPPWKEN_LPTMR1_POS 1
257#define MXC_F_PWRSEQ_LPPWKEN_LPTMR1 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWKEN_LPTMR1_POS))
259#define MXC_F_PWRSEQ_LPPWKEN_LPUART0_POS 2
260#define MXC_F_PWRSEQ_LPPWKEN_LPUART0 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWKEN_LPUART0_POS))
262#define MXC_F_PWRSEQ_LPPWKEN_AINCOMP0_POS 3
263#define MXC_F_PWRSEQ_LPPWKEN_AINCOMP0 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWKEN_AINCOMP0_POS))
265#define MXC_F_PWRSEQ_LPPWKEN_AINCOMP1_POS 4
266#define MXC_F_PWRSEQ_LPPWKEN_AINCOMP1 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWKEN_AINCOMP1_POS))
276#define MXC_F_PWRSEQ_LPMEMSD_RAM0_POS 0
277#define MXC_F_PWRSEQ_LPMEMSD_RAM0 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPMEMSD_RAM0_POS))
279#define MXC_F_PWRSEQ_LPMEMSD_RAM1_POS 1
280#define MXC_F_PWRSEQ_LPMEMSD_RAM1 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPMEMSD_RAM1_POS))
282#define MXC_F_PWRSEQ_LPMEMSD_RAM2_POS 2
283#define MXC_F_PWRSEQ_LPMEMSD_RAM2 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPMEMSD_RAM2_POS))
285#define MXC_F_PWRSEQ_LPMEMSD_RAM3_POS 3
286#define MXC_F_PWRSEQ_LPMEMSD_RAM3 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPMEMSD_RAM3_POS))
290#ifdef __cplusplus
291}
292#endif
293
294#endif // LIBRARIES_CMSIS_DEVICE_MAXIM_MAX32672_INCLUDE_PWRSEQ_REGS_H_
__IO uint32_t gpr1
Definition: pwrseq_regs.h:89
__IO uint32_t lpwken0
Definition: pwrseq_regs.h:79
__IO uint32_t lpwkst0
Definition: pwrseq_regs.h:78
__IO uint32_t gpr0
Definition: pwrseq_regs.h:88
__IO uint32_t lpwken1
Definition: pwrseq_regs.h:81
__IO uint32_t lppwken
Definition: pwrseq_regs.h:84
__IO uint32_t lppwkst
Definition: pwrseq_regs.h:83
__IO uint32_t lpmemsd
Definition: pwrseq_regs.h:86
__IO uint32_t lpwkst1
Definition: pwrseq_regs.h:80
__IO uint32_t lpcn
Definition: pwrseq_regs.h:77
Definition: pwrseq_regs.h:76