MAX32660 Peripheral Driver API
Peripheral Driver API for the MAX32660
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_MAX32660_INCLUDE_PWRSEQ_REGS_H_
29#define LIBRARIES_CMSIS_DEVICE_MAXIM_MAX32660_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 lp_ctrl;
78 __IO uint32_t lp_wakefl;
79 __IO uint32_t lpwk_en;
80 __R uint32_t rsv_0xc_0x3f[13];
81 __IO uint32_t lpmemsd;
83
84/* Register offsets for module PWRSEQ */
91#define MXC_R_PWRSEQ_LP_CTRL ((uint32_t)0x00000000UL)
92#define MXC_R_PWRSEQ_LP_WAKEFL ((uint32_t)0x00000004UL)
93#define MXC_R_PWRSEQ_LPWK_EN ((uint32_t)0x00000008UL)
94#define MXC_R_PWRSEQ_LPMEMSD ((uint32_t)0x00000040UL)
103#define MXC_F_PWRSEQ_LP_CTRL_RAMRET_SEL0_POS 0
104#define MXC_F_PWRSEQ_LP_CTRL_RAMRET_SEL0 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LP_CTRL_RAMRET_SEL0_POS))
106#define MXC_F_PWRSEQ_LP_CTRL_RAMRET_SEL1_POS 1
107#define MXC_F_PWRSEQ_LP_CTRL_RAMRET_SEL1 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LP_CTRL_RAMRET_SEL1_POS))
109#define MXC_F_PWRSEQ_LP_CTRL_RAMRET_SEL2_POS 2
110#define MXC_F_PWRSEQ_LP_CTRL_RAMRET_SEL2 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LP_CTRL_RAMRET_SEL2_POS))
112#define MXC_F_PWRSEQ_LP_CTRL_RAMRET_SEL3_POS 3
113#define MXC_F_PWRSEQ_LP_CTRL_RAMRET_SEL3 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LP_CTRL_RAMRET_SEL3_POS))
115#define MXC_F_PWRSEQ_LP_CTRL_OVR_POS 4
116#define MXC_F_PWRSEQ_LP_CTRL_OVR ((uint32_t)(0x3UL << MXC_F_PWRSEQ_LP_CTRL_OVR_POS))
117#define MXC_V_PWRSEQ_LP_CTRL_OVR_0_9V ((uint32_t)0x0UL)
118#define MXC_S_PWRSEQ_LP_CTRL_OVR_0_9V (MXC_V_PWRSEQ_LP_CTRL_OVR_0_9V << MXC_F_PWRSEQ_LP_CTRL_OVR_POS)
119#define MXC_V_PWRSEQ_LP_CTRL_OVR_1_0V ((uint32_t)0x1UL)
120#define MXC_S_PWRSEQ_LP_CTRL_OVR_1_0V (MXC_V_PWRSEQ_LP_CTRL_OVR_1_0V << MXC_F_PWRSEQ_LP_CTRL_OVR_POS)
121#define MXC_V_PWRSEQ_LP_CTRL_OVR_1_1V ((uint32_t)0x2UL)
122#define MXC_S_PWRSEQ_LP_CTRL_OVR_1_1V (MXC_V_PWRSEQ_LP_CTRL_OVR_1_1V << MXC_F_PWRSEQ_LP_CTRL_OVR_POS)
124#define MXC_F_PWRSEQ_LP_CTRL_VCORE_DET_BYPASS_POS 6
125#define MXC_F_PWRSEQ_LP_CTRL_VCORE_DET_BYPASS ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LP_CTRL_VCORE_DET_BYPASS_POS))
127#define MXC_F_PWRSEQ_LP_CTRL_RETREG_EN_POS 8
128#define MXC_F_PWRSEQ_LP_CTRL_RETREG_EN ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LP_CTRL_RETREG_EN_POS))
130#define MXC_F_PWRSEQ_LP_CTRL_FAST_WK_EN_POS 10
131#define MXC_F_PWRSEQ_LP_CTRL_FAST_WK_EN ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LP_CTRL_FAST_WK_EN_POS))
133#define MXC_F_PWRSEQ_LP_CTRL_BG_OFF_POS 11
134#define MXC_F_PWRSEQ_LP_CTRL_BG_OFF ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LP_CTRL_BG_OFF_POS))
136#define MXC_F_PWRSEQ_LP_CTRL_VCORE_POR_DIS_POS 12
137#define MXC_F_PWRSEQ_LP_CTRL_VCORE_POR_DIS ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LP_CTRL_VCORE_POR_DIS_POS))
139#define MXC_F_PWRSEQ_LP_CTRL_LDO_DIS_POS 16
140#define MXC_F_PWRSEQ_LP_CTRL_LDO_DIS ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LP_CTRL_LDO_DIS_POS))
142#define MXC_F_PWRSEQ_LP_CTRL_VCORE_SVM_DIS_POS 20
143#define MXC_F_PWRSEQ_LP_CTRL_VCORE_SVM_DIS ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LP_CTRL_VCORE_SVM_DIS_POS))
145#define MXC_F_PWRSEQ_LP_CTRL_VDDIO_POR_DIS_POS 25
146#define MXC_F_PWRSEQ_LP_CTRL_VDDIO_POR_DIS ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LP_CTRL_VDDIO_POR_DIS_POS))
156#define MXC_F_PWRSEQ_LP_WAKEFL_WAKEST_POS 0
157#define MXC_F_PWRSEQ_LP_WAKEFL_WAKEST ((uint32_t)(0x3FFFUL << MXC_F_PWRSEQ_LP_WAKEFL_WAKEST_POS))
168#define MXC_F_PWRSEQ_LPWK_EN_WAKEEN_POS 0
169#define MXC_F_PWRSEQ_LPWK_EN_WAKEEN ((uint32_t)(0x3FFFUL << MXC_F_PWRSEQ_LPWK_EN_WAKEEN_POS))
179#define MXC_F_PWRSEQ_LPMEMSD_SRAM0_OFF_POS 0
180#define MXC_F_PWRSEQ_LPMEMSD_SRAM0_OFF ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPMEMSD_SRAM0_OFF_POS))
182#define MXC_F_PWRSEQ_LPMEMSD_SRAM1_OFF_POS 1
183#define MXC_F_PWRSEQ_LPMEMSD_SRAM1_OFF ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPMEMSD_SRAM1_OFF_POS))
185#define MXC_F_PWRSEQ_LPMEMSD_SRAM2_OFF_POS 2
186#define MXC_F_PWRSEQ_LPMEMSD_SRAM2_OFF ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPMEMSD_SRAM2_OFF_POS))
188#define MXC_F_PWRSEQ_LPMEMSD_SRAM3_OFF_POS 3
189#define MXC_F_PWRSEQ_LPMEMSD_SRAM3_OFF ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPMEMSD_SRAM3_OFF_POS))
193#ifdef __cplusplus
194}
195#endif
196
197#endif // LIBRARIES_CMSIS_DEVICE_MAXIM_MAX32660_INCLUDE_PWRSEQ_REGS_H_
__IO uint32_t lpwk_en
Definition: pwrseq_regs.h:79
__IO uint32_t lp_wakefl
Definition: pwrseq_regs.h:78
__IO uint32_t lp_ctrl
Definition: pwrseq_regs.h:77
__IO uint32_t lpmemsd
Definition: pwrseq_regs.h:81
Definition: pwrseq_regs.h:76