MAX32665 Peripheral Driver API
Peripheral Driver API for the MAX32665
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
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_MAX32665_INCLUDE_PWRSEQ_REGS_H_
29#define LIBRARIES_CMSIS_DEVICE_MAXIM_MAX32665_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 lppwst;
84 __IO uint32_t lppwen;
85 __R uint32_t rsv_0x38_0x3f[2];
86 __IO uint32_t lpmemsd;
87 __IO uint32_t lpvddpd;
88 __IO uint32_t buretvec;
89 __IO uint32_t buaod;
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_LPPWST ((uint32_t)0x00000030UL)
105#define MXC_R_PWRSEQ_LPPWEN ((uint32_t)0x00000034UL)
106#define MXC_R_PWRSEQ_LPMEMSD ((uint32_t)0x00000040UL)
107#define MXC_R_PWRSEQ_LPVDDPD ((uint32_t)0x00000044UL)
108#define MXC_R_PWRSEQ_BURETVEC ((uint32_t)0x00000048UL)
109#define MXC_R_PWRSEQ_BUAOD ((uint32_t)0x0000004CUL)
118#define MXC_F_PWRSEQ_LPCN_RAMRET_POS 0
119#define MXC_F_PWRSEQ_LPCN_RAMRET ((uint32_t)(0x3UL << MXC_F_PWRSEQ_LPCN_RAMRET_POS))
120#define MXC_V_PWRSEQ_LPCN_RAMRET_DIS ((uint32_t)0x0UL)
121#define MXC_S_PWRSEQ_LPCN_RAMRET_DIS (MXC_V_PWRSEQ_LPCN_RAMRET_DIS << MXC_F_PWRSEQ_LPCN_RAMRET_POS)
122#define MXC_V_PWRSEQ_LPCN_RAMRET_EN1 ((uint32_t)0x1UL)
123#define MXC_S_PWRSEQ_LPCN_RAMRET_EN1 (MXC_V_PWRSEQ_LPCN_RAMRET_EN1 << MXC_F_PWRSEQ_LPCN_RAMRET_POS)
124#define MXC_V_PWRSEQ_LPCN_RAMRET_EN2 ((uint32_t)0x2UL)
125#define MXC_S_PWRSEQ_LPCN_RAMRET_EN2 (MXC_V_PWRSEQ_LPCN_RAMRET_EN2 << MXC_F_PWRSEQ_LPCN_RAMRET_POS)
126#define MXC_V_PWRSEQ_LPCN_RAMRET_EN3 ((uint32_t)0x3UL)
127#define MXC_S_PWRSEQ_LPCN_RAMRET_EN3 (MXC_V_PWRSEQ_LPCN_RAMRET_EN3 << MXC_F_PWRSEQ_LPCN_RAMRET_POS)
129#define MXC_F_PWRSEQ_LPCN_BCKGRND_POS 9
130#define MXC_F_PWRSEQ_LPCN_BCKGRND ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_BCKGRND_POS))
132#define MXC_F_PWRSEQ_LPCN_FWKM_POS 10
133#define MXC_F_PWRSEQ_LPCN_FWKM ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_FWKM_POS))
135#define MXC_F_PWRSEQ_LPCN_BGOFF_POS 11
136#define MXC_F_PWRSEQ_LPCN_BGOFF ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_BGOFF_POS))
138#define MXC_F_PWRSEQ_LPCN_VCOREMD_POS 20
139#define MXC_F_PWRSEQ_LPCN_VCOREMD ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_VCOREMD_POS))
141#define MXC_F_PWRSEQ_LPCN_VREGIMD_POS 21
142#define MXC_F_PWRSEQ_LPCN_VREGIMD ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_VREGIMD_POS))
144#define MXC_F_PWRSEQ_LPCN_VDDAMD_POS 22
145#define MXC_F_PWRSEQ_LPCN_VDDAMD ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_VDDAMD_POS))
147#define MXC_F_PWRSEQ_LPCN_VDDIOMD_POS 23
148#define MXC_F_PWRSEQ_LPCN_VDDIOMD ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_VDDIOMD_POS))
150#define MXC_F_PWRSEQ_LPCN_VDDIOHMD_POS 24
151#define MXC_F_PWRSEQ_LPCN_VDDIOHMD ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_VDDIOHMD_POS))
153#define MXC_F_PWRSEQ_LPCN_PORVDDIOMD_POS 25
154#define MXC_F_PWRSEQ_LPCN_PORVDDIOMD ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_PORVDDIOMD_POS))
156#define MXC_F_PWRSEQ_LPCN_PORVDDIOHMD_POS 26
157#define MXC_F_PWRSEQ_LPCN_PORVDDIOHMD ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_PORVDDIOHMD_POS))
159#define MXC_F_PWRSEQ_LPCN_VDDBMD_POS 27
160#define MXC_F_PWRSEQ_LPCN_VDDBMD ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_VDDBMD_POS))
162#define MXC_F_PWRSEQ_LPCN_VRXOUTMD_POS 28
163#define MXC_F_PWRSEQ_LPCN_VRXOUTMD ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_VRXOUTMD_POS))
165#define MXC_F_PWRSEQ_LPCN_VTXOUTMD_POS 29
166#define MXC_F_PWRSEQ_LPCN_VTXOUTMD ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_VTXOUTMD_POS))
168#define MXC_F_PWRSEQ_LPCN_PDOWNDSLEN_POS 30
169#define MXC_F_PWRSEQ_LPCN_PDOWNDSLEN ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_PDOWNDSLEN_POS))
180#define MXC_F_PWRSEQ_LPWKST0_WAKEST_POS 0
181#define MXC_F_PWRSEQ_LPWKST0_WAKEST ((uint32_t)(0xFFFFFFFFUL << MXC_F_PWRSEQ_LPWKST0_WAKEST_POS))
192#define MXC_F_PWRSEQ_LPWKEN0_WAKEEN_POS 0
193#define MXC_F_PWRSEQ_LPWKEN0_WAKEEN ((uint32_t)(0x7FFFFFFFUL << MXC_F_PWRSEQ_LPWKEN0_WAKEEN_POS))
204#define MXC_F_PWRSEQ_LPWKST1_WAKEST_POS 0
205#define MXC_F_PWRSEQ_LPWKST1_WAKEST ((uint32_t)(0x3FFFFUL << MXC_F_PWRSEQ_LPWKST1_WAKEST_POS))
216#define MXC_F_PWRSEQ_LPWKEN1_WAKEEN_POS 0
217#define MXC_F_PWRSEQ_LPWKEN1_WAKEEN ((uint32_t)(0x7FFFFFFFUL << MXC_F_PWRSEQ_LPWKEN1_WAKEEN_POS))
227#define MXC_F_PWRSEQ_LPPWST_USBLSWKST_POS 0
228#define MXC_F_PWRSEQ_LPPWST_USBLSWKST ((uint32_t)(0x3UL << MXC_F_PWRSEQ_LPPWST_USBLSWKST_POS))
230#define MXC_F_PWRSEQ_LPPWST_USBVBUSWKST_POS 2
231#define MXC_F_PWRSEQ_LPPWST_USBVBUSWKST ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWST_USBVBUSWKST_POS))
233#define MXC_F_PWRSEQ_LPPWST_SDMAWKST_POS 3
234#define MXC_F_PWRSEQ_LPPWST_SDMAWKST ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWST_SDMAWKST_POS))
236#define MXC_F_PWRSEQ_LPPWST_AINCOMP0WKST_POS 4
237#define MXC_F_PWRSEQ_LPPWST_AINCOMP0WKST ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWST_AINCOMP0WKST_POS))
239#define MXC_F_PWRSEQ_LPPWST_AINCOMP1WKST_POS 5
240#define MXC_F_PWRSEQ_LPPWST_AINCOMP1WKST ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWST_AINCOMP1WKST_POS))
242#define MXC_F_PWRSEQ_LPPWST_AINCOMP2WKST_POS 6
243#define MXC_F_PWRSEQ_LPPWST_AINCOMP2WKST ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWST_AINCOMP2WKST_POS))
245#define MXC_F_PWRSEQ_LPPWST_AINCOMP3WKST_POS 7
246#define MXC_F_PWRSEQ_LPPWST_AINCOMP3WKST ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWST_AINCOMP3WKST_POS))
248#define MXC_F_PWRSEQ_LPPWST_AINCOMP0ST_POS 8
249#define MXC_F_PWRSEQ_LPPWST_AINCOMP0ST ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWST_AINCOMP0ST_POS))
251#define MXC_F_PWRSEQ_LPPWST_AINCOMP1ST_POS 9
252#define MXC_F_PWRSEQ_LPPWST_AINCOMP1ST ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWST_AINCOMP1ST_POS))
254#define MXC_F_PWRSEQ_LPPWST_AINCOMP2ST_POS 10
255#define MXC_F_PWRSEQ_LPPWST_AINCOMP2ST ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWST_AINCOMP2ST_POS))
257#define MXC_F_PWRSEQ_LPPWST_AINCOMP3ST_POS 11
258#define MXC_F_PWRSEQ_LPPWST_AINCOMP3ST ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWST_AINCOMP3ST_POS))
260#define MXC_F_PWRSEQ_LPPWST_BBMODEST_POS 16
261#define MXC_F_PWRSEQ_LPPWST_BBMODEST ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWST_BBMODEST_POS))
263#define MXC_F_PWRSEQ_LPPWST_RSTWKST_POS 17
264#define MXC_F_PWRSEQ_LPPWST_RSTWKST ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWST_RSTWKST_POS))
274#define MXC_F_PWRSEQ_LPPWEN_USBLSWKEN_POS 0
275#define MXC_F_PWRSEQ_LPPWEN_USBLSWKEN ((uint32_t)(0x3UL << MXC_F_PWRSEQ_LPPWEN_USBLSWKEN_POS))
277#define MXC_F_PWRSEQ_LPPWEN_USBVBUSWKEN_POS 2
278#define MXC_F_PWRSEQ_LPPWEN_USBVBUSWKEN ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_USBVBUSWKEN_POS))
280#define MXC_F_PWRSEQ_LPPWEN_SDMAWKEN_POS 3
281#define MXC_F_PWRSEQ_LPPWEN_SDMAWKEN ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_SDMAWKEN_POS))
283#define MXC_F_PWRSEQ_LPPWEN_AINCOMP0WKEN_POS 4
284#define MXC_F_PWRSEQ_LPPWEN_AINCOMP0WKEN ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_AINCOMP0WKEN_POS))
286#define MXC_F_PWRSEQ_LPPWEN_AINCOMP1WKEN_POS 5
287#define MXC_F_PWRSEQ_LPPWEN_AINCOMP1WKEN ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_AINCOMP1WKEN_POS))
289#define MXC_F_PWRSEQ_LPPWEN_AINCOMP2WKEN_POS 6
290#define MXC_F_PWRSEQ_LPPWEN_AINCOMP2WKEN ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_AINCOMP2WKEN_POS))
292#define MXC_F_PWRSEQ_LPPWEN_AINCOMP3WKEN_POS 7
293#define MXC_F_PWRSEQ_LPPWEN_AINCOMP3WKEN ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_AINCOMP3WKEN_POS))
303#define MXC_F_PWRSEQ_LPMEMSD_SRAM0SD_POS 0
304#define MXC_F_PWRSEQ_LPMEMSD_SRAM0SD ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPMEMSD_SRAM0SD_POS))
306#define MXC_F_PWRSEQ_LPMEMSD_SRAM1SD_POS 1
307#define MXC_F_PWRSEQ_LPMEMSD_SRAM1SD ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPMEMSD_SRAM1SD_POS))
309#define MXC_F_PWRSEQ_LPMEMSD_SRAM2SD_POS 2
310#define MXC_F_PWRSEQ_LPMEMSD_SRAM2SD ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPMEMSD_SRAM2SD_POS))
312#define MXC_F_PWRSEQ_LPMEMSD_SRAM3SD_POS 3
313#define MXC_F_PWRSEQ_LPMEMSD_SRAM3SD ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPMEMSD_SRAM3SD_POS))
315#define MXC_F_PWRSEQ_LPMEMSD_SRAM4SD_POS 4
316#define MXC_F_PWRSEQ_LPMEMSD_SRAM4SD ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPMEMSD_SRAM4SD_POS))
318#define MXC_F_PWRSEQ_LPMEMSD_SRAM5SD_POS 5
319#define MXC_F_PWRSEQ_LPMEMSD_SRAM5SD ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPMEMSD_SRAM5SD_POS))
321#define MXC_F_PWRSEQ_LPMEMSD_ICACHESD_POS 7
322#define MXC_F_PWRSEQ_LPMEMSD_ICACHESD ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPMEMSD_ICACHESD_POS))
324#define MXC_F_PWRSEQ_LPMEMSD_ICACHEXIPSD_POS 8
325#define MXC_F_PWRSEQ_LPMEMSD_ICACHEXIPSD ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPMEMSD_ICACHEXIPSD_POS))
327#define MXC_F_PWRSEQ_LPMEMSD_SRCCSD_POS 9
328#define MXC_F_PWRSEQ_LPMEMSD_SRCCSD ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPMEMSD_SRCCSD_POS))
330#define MXC_F_PWRSEQ_LPMEMSD_CRYPTOSD_POS 10
331#define MXC_F_PWRSEQ_LPMEMSD_CRYPTOSD ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPMEMSD_CRYPTOSD_POS))
333#define MXC_F_PWRSEQ_LPMEMSD_USBFIFOSD_POS 11
334#define MXC_F_PWRSEQ_LPMEMSD_USBFIFOSD ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPMEMSD_USBFIFOSD_POS))
336#define MXC_F_PWRSEQ_LPMEMSD_ROMSD_POS 12
337#define MXC_F_PWRSEQ_LPMEMSD_ROMSD ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPMEMSD_ROMSD_POS))
339#define MXC_F_PWRSEQ_LPMEMSD_ROM1SD_POS 13
340#define MXC_F_PWRSEQ_LPMEMSD_ROM1SD ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPMEMSD_ROM1SD_POS))
342#define MXC_F_PWRSEQ_LPMEMSD_IC1SD_POS 14
343#define MXC_F_PWRSEQ_LPMEMSD_IC1SD ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPMEMSD_IC1SD_POS))
353#define MXC_F_PWRSEQ_LPVDDPD_VREGOBPD_POS 0
354#define MXC_F_PWRSEQ_LPVDDPD_VREGOBPD ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPVDDPD_VREGOBPD_POS))
356#define MXC_F_PWRSEQ_LPVDDPD_VREGODPD_POS 1
357#define MXC_F_PWRSEQ_LPVDDPD_VREGODPD ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPVDDPD_VREGODPD_POS))
359#define MXC_F_PWRSEQ_LPVDDPD_VDD2PD_POS 8
360#define MXC_F_PWRSEQ_LPVDDPD_VDD2PD ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPVDDPD_VDD2PD_POS))
362#define MXC_F_PWRSEQ_LPVDDPD_VDD3PD_POS 9
363#define MXC_F_PWRSEQ_LPVDDPD_VDD3PD ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPVDDPD_VDD3PD_POS))
365#define MXC_F_PWRSEQ_LPVDDPD_VDD4PD_POS 10
366#define MXC_F_PWRSEQ_LPVDDPD_VDD4PD ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPVDDPD_VDD4PD_POS))
368#define MXC_F_PWRSEQ_LPVDDPD_VDD5PD_POS 11
369#define MXC_F_PWRSEQ_LPVDDPD_VDD5PD ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPVDDPD_VDD5PD_POS))
379#define MXC_F_PWRSEQ_BURETVEC_GPR0_POS 0
380#define MXC_F_PWRSEQ_BURETVEC_GPR0 ((uint32_t)(0xFFFFFFFFUL << MXC_F_PWRSEQ_BURETVEC_GPR0_POS))
390#define MXC_F_PWRSEQ_BUAOD_GPR1_POS 0
391#define MXC_F_PWRSEQ_BUAOD_GPR1 ((uint32_t)(0xFFFFFFFFUL << MXC_F_PWRSEQ_BUAOD_GPR1_POS))
395#ifdef __cplusplus
396}
397#endif
398
399#endif // LIBRARIES_CMSIS_DEVICE_MAXIM_MAX32665_INCLUDE_PWRSEQ_REGS_H_
__IO uint32_t buaod
Definition: pwrseq_regs.h:89
__IO uint32_t lpvddpd
Definition: pwrseq_regs.h:87
__IO uint32_t lppwst
Definition: pwrseq_regs.h:83
__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 lppwen
Definition: pwrseq_regs.h:84
__IO uint32_t buretvec
Definition: pwrseq_regs.h:88
__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