MAX32675 Peripheral Driver API
Peripheral Driver API for the MAX32675
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules
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_MAX32675_INCLUDE_PWRSEQ_REGS_H_
29#define LIBRARIES_CMSIS_DEVICE_MAXIM_MAX32675_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 gp0;
89 __IO uint32_t gp1;
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_GP0 ((uint32_t)0x00000048UL)
108#define MXC_R_PWRSEQ_GP1 ((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_RETREG_EN_POS 8
142#define MXC_F_PWRSEQ_LPCN_RETREG_EN ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_RETREG_EN_POS))
144#define MXC_F_PWRSEQ_LPCN_STORAGE_EN_POS 9
145#define MXC_F_PWRSEQ_LPCN_STORAGE_EN ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_STORAGE_EN_POS))
147#define MXC_F_PWRSEQ_LPCN_FASTWK_EN_POS 10
148#define MXC_F_PWRSEQ_LPCN_FASTWK_EN ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_FASTWK_EN_POS))
150#define MXC_F_PWRSEQ_LPCN_BG_DIS_POS 11
151#define MXC_F_PWRSEQ_LPCN_BG_DIS ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_BG_DIS_POS))
153#define MXC_F_PWRSEQ_LPCN_VCOREPOR_DIS_POS 12
154#define MXC_F_PWRSEQ_LPCN_VCOREPOR_DIS ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_VCOREPOR_DIS_POS))
156#define MXC_F_PWRSEQ_LPCN_LDO_DIS_POS 16
157#define MXC_F_PWRSEQ_LPCN_LDO_DIS ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_LDO_DIS_POS))
159#define MXC_F_PWRSEQ_LPCN_VCORE_EXT_POS 17
160#define MXC_F_PWRSEQ_LPCN_VCORE_EXT ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_VCORE_EXT_POS))
162#define MXC_F_PWRSEQ_LPCN_VCOREMON_DIS_POS 20
163#define MXC_F_PWRSEQ_LPCN_VCOREMON_DIS ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_VCOREMON_DIS_POS))
165#define MXC_F_PWRSEQ_LPCN_VDDAMON_DIS_POS 22
166#define MXC_F_PWRSEQ_LPCN_VDDAMON_DIS ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_VDDAMON_DIS_POS))
168#define MXC_F_PWRSEQ_LPCN_PORVDDMON_DIS_POS 25
169#define MXC_F_PWRSEQ_LPCN_PORVDDMON_DIS ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_PORVDDMON_DIS_POS))
171#define MXC_F_PWRSEQ_LPCN_INRO_EN_POS 28
172#define MXC_F_PWRSEQ_LPCN_INRO_EN ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_INRO_EN_POS))
174#define MXC_F_PWRSEQ_LPCN_ERTCO_EN_POS 29
175#define MXC_F_PWRSEQ_LPCN_ERTCO_EN ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_ERTCO_EN_POS))
177#define MXC_F_PWRSEQ_LPCN_ERTCO_PD_POS 31
178#define MXC_F_PWRSEQ_LPCN_ERTCO_PD ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_ERTCO_PD_POS))
189#define MXC_F_PWRSEQ_LPWKST0_ST_POS 0
190#define MXC_F_PWRSEQ_LPWKST0_ST ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPWKST0_ST_POS))
201#define MXC_F_PWRSEQ_LPWKEN0_EN_POS 0
202#define MXC_F_PWRSEQ_LPWKEN0_EN ((uint32_t)(0x7FFFFFFFUL << MXC_F_PWRSEQ_LPWKEN0_EN_POS))
212#define MXC_F_PWRSEQ_LPPWKST_LPTMR0_POS 0
213#define MXC_F_PWRSEQ_LPPWKST_LPTMR0 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWKST_LPTMR0_POS))
215#define MXC_F_PWRSEQ_LPPWKST_LPTMR1_POS 1
216#define MXC_F_PWRSEQ_LPPWKST_LPTMR1 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWKST_LPTMR1_POS))
218#define MXC_F_PWRSEQ_LPPWKST_LPUART0_POS 2
219#define MXC_F_PWRSEQ_LPPWKST_LPUART0 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWKST_LPUART0_POS))
229#define MXC_F_PWRSEQ_LPPWKEN_LPTMR0_POS 0
230#define MXC_F_PWRSEQ_LPPWKEN_LPTMR0 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWKEN_LPTMR0_POS))
232#define MXC_F_PWRSEQ_LPPWKEN_LPTMR1_POS 1
233#define MXC_F_PWRSEQ_LPPWKEN_LPTMR1 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWKEN_LPTMR1_POS))
235#define MXC_F_PWRSEQ_LPPWKEN_LPUART0_POS 2
236#define MXC_F_PWRSEQ_LPPWKEN_LPUART0 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWKEN_LPUART0_POS))
246#define MXC_F_PWRSEQ_LPMEMSD_RAM0_POS 0
247#define MXC_F_PWRSEQ_LPMEMSD_RAM0 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPMEMSD_RAM0_POS))
249#define MXC_F_PWRSEQ_LPMEMSD_RAM1_POS 1
250#define MXC_F_PWRSEQ_LPMEMSD_RAM1 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPMEMSD_RAM1_POS))
252#define MXC_F_PWRSEQ_LPMEMSD_RAM2_POS 2
253#define MXC_F_PWRSEQ_LPMEMSD_RAM2 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPMEMSD_RAM2_POS))
255#define MXC_F_PWRSEQ_LPMEMSD_RAM3_POS 3
256#define MXC_F_PWRSEQ_LPMEMSD_RAM3 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPMEMSD_RAM3_POS))
260#ifdef __cplusplus
261}
262#endif
263
264#endif // LIBRARIES_CMSIS_DEVICE_MAXIM_MAX32675_INCLUDE_PWRSEQ_REGS_H_
__IO uint32_t gp0
Definition: pwrseq_regs.h:88
__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:89
__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