MAX78000 Peripheral Driver API
Peripheral Driver API for the MAX78000
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_MAX78000_INCLUDE_PWRSEQ_REGS_H_
29#define LIBRARIES_CMSIS_DEVICE_MAXIM_MAX78000_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 __IO uint32_t lpwkst2;
83 __IO uint32_t lpwken2;
84 __IO uint32_t lpwkst3;
85 __IO uint32_t lpwken3;
86 __R uint32_t rsv_0x24_0x2f[3];
87 __IO uint32_t lppwst;
88 __IO uint32_t lppwen;
89 __R uint32_t rsv_0x38_0x47[4];
90 __IO uint32_t gp0;
91 __IO uint32_t gp1;
93
94/* Register offsets for module PWRSEQ */
101#define MXC_R_PWRSEQ_LPCN ((uint32_t)0x00000000UL)
102#define MXC_R_PWRSEQ_LPWKST0 ((uint32_t)0x00000004UL)
103#define MXC_R_PWRSEQ_LPWKEN0 ((uint32_t)0x00000008UL)
104#define MXC_R_PWRSEQ_LPWKST1 ((uint32_t)0x0000000CUL)
105#define MXC_R_PWRSEQ_LPWKEN1 ((uint32_t)0x00000010UL)
106#define MXC_R_PWRSEQ_LPWKST2 ((uint32_t)0x00000014UL)
107#define MXC_R_PWRSEQ_LPWKEN2 ((uint32_t)0x00000018UL)
108#define MXC_R_PWRSEQ_LPWKST3 ((uint32_t)0x0000001CUL)
109#define MXC_R_PWRSEQ_LPWKEN3 ((uint32_t)0x00000020UL)
110#define MXC_R_PWRSEQ_LPPWST ((uint32_t)0x00000030UL)
111#define MXC_R_PWRSEQ_LPPWEN ((uint32_t)0x00000034UL)
112#define MXC_R_PWRSEQ_GP0 ((uint32_t)0x00000048UL)
113#define MXC_R_PWRSEQ_GP1 ((uint32_t)0x0000004CUL)
122#define MXC_F_PWRSEQ_LPCN_RAMRET0_POS 0
123#define MXC_F_PWRSEQ_LPCN_RAMRET0 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_RAMRET0_POS))
125#define MXC_F_PWRSEQ_LPCN_RAMRET1_POS 1
126#define MXC_F_PWRSEQ_LPCN_RAMRET1 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_RAMRET1_POS))
128#define MXC_F_PWRSEQ_LPCN_RAMRET2_POS 2
129#define MXC_F_PWRSEQ_LPCN_RAMRET2 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_RAMRET2_POS))
131#define MXC_F_PWRSEQ_LPCN_RAMRET3_POS 3
132#define MXC_F_PWRSEQ_LPCN_RAMRET3 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_RAMRET3_POS))
134#define MXC_F_PWRSEQ_LPCN_LPMCLKSEL_POS 8
135#define MXC_F_PWRSEQ_LPCN_LPMCLKSEL ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_LPMCLKSEL_POS))
137#define MXC_F_PWRSEQ_LPCN_LPMFAST_POS 9
138#define MXC_F_PWRSEQ_LPCN_LPMFAST ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_LPMFAST_POS))
140#define MXC_F_PWRSEQ_LPCN_BG_DIS_POS 11
141#define MXC_F_PWRSEQ_LPCN_BG_DIS ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_BG_DIS_POS))
143#define MXC_F_PWRSEQ_LPCN_LPWKST_CLR_POS 31
144#define MXC_F_PWRSEQ_LPCN_LPWKST_CLR ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_LPWKST_CLR_POS))
155#define MXC_F_PWRSEQ_LPWKST0_WAKEST_POS 0
156#define MXC_F_PWRSEQ_LPWKST0_WAKEST ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPWKST0_WAKEST_POS))
167#define MXC_F_PWRSEQ_LPWKEN0_WAKEEN_POS 0
168#define MXC_F_PWRSEQ_LPWKEN0_WAKEEN ((uint32_t)(0x7FFFFFFFUL << MXC_F_PWRSEQ_LPWKEN0_WAKEEN_POS))
178#define MXC_F_PWRSEQ_LPPWST_AINCOMP0_POS 4
179#define MXC_F_PWRSEQ_LPPWST_AINCOMP0 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWST_AINCOMP0_POS))
181#define MXC_F_PWRSEQ_LPPWST_BACKUP_POS 16
182#define MXC_F_PWRSEQ_LPPWST_BACKUP ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWST_BACKUP_POS))
184#define MXC_F_PWRSEQ_LPPWST_RESET_POS 17
185#define MXC_F_PWRSEQ_LPPWST_RESET ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWST_RESET_POS))
195#define MXC_F_PWRSEQ_LPPWEN_AINCOMP0_POS 4
196#define MXC_F_PWRSEQ_LPPWEN_AINCOMP0 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_AINCOMP0_POS))
198#define MXC_F_PWRSEQ_LPPWEN_WDT0_POS 8
199#define MXC_F_PWRSEQ_LPPWEN_WDT0 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_WDT0_POS))
201#define MXC_F_PWRSEQ_LPPWEN_WDT1_POS 9
202#define MXC_F_PWRSEQ_LPPWEN_WDT1 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_WDT1_POS))
204#define MXC_F_PWRSEQ_LPPWEN_CPU1_POS 10
205#define MXC_F_PWRSEQ_LPPWEN_CPU1 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_CPU1_POS))
207#define MXC_F_PWRSEQ_LPPWEN_TMR0_POS 11
208#define MXC_F_PWRSEQ_LPPWEN_TMR0 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_TMR0_POS))
210#define MXC_F_PWRSEQ_LPPWEN_TMR1_POS 12
211#define MXC_F_PWRSEQ_LPPWEN_TMR1 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_TMR1_POS))
213#define MXC_F_PWRSEQ_LPPWEN_TMR2_POS 13
214#define MXC_F_PWRSEQ_LPPWEN_TMR2 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_TMR2_POS))
216#define MXC_F_PWRSEQ_LPPWEN_TMR3_POS 14
217#define MXC_F_PWRSEQ_LPPWEN_TMR3 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_TMR3_POS))
219#define MXC_F_PWRSEQ_LPPWEN_TMR4_POS 15
220#define MXC_F_PWRSEQ_LPPWEN_TMR4 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_TMR4_POS))
222#define MXC_F_PWRSEQ_LPPWEN_TMR5_POS 16
223#define MXC_F_PWRSEQ_LPPWEN_TMR5 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_TMR5_POS))
225#define MXC_F_PWRSEQ_LPPWEN_UART0_POS 17
226#define MXC_F_PWRSEQ_LPPWEN_UART0 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_UART0_POS))
228#define MXC_F_PWRSEQ_LPPWEN_UART1_POS 18
229#define MXC_F_PWRSEQ_LPPWEN_UART1 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_UART1_POS))
231#define MXC_F_PWRSEQ_LPPWEN_UART2_POS 19
232#define MXC_F_PWRSEQ_LPPWEN_UART2 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_UART2_POS))
234#define MXC_F_PWRSEQ_LPPWEN_UART3_POS 20
235#define MXC_F_PWRSEQ_LPPWEN_UART3 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_UART3_POS))
237#define MXC_F_PWRSEQ_LPPWEN_I2C0_POS 21
238#define MXC_F_PWRSEQ_LPPWEN_I2C0 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_I2C0_POS))
240#define MXC_F_PWRSEQ_LPPWEN_I2C1_POS 22
241#define MXC_F_PWRSEQ_LPPWEN_I2C1 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_I2C1_POS))
243#define MXC_F_PWRSEQ_LPPWEN_I2C2_POS 23
244#define MXC_F_PWRSEQ_LPPWEN_I2C2 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_I2C2_POS))
246#define MXC_F_PWRSEQ_LPPWEN_I2S_POS 24
247#define MXC_F_PWRSEQ_LPPWEN_I2S ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_I2S_POS))
249#define MXC_F_PWRSEQ_LPPWEN_SPI1_POS 25
250#define MXC_F_PWRSEQ_LPPWEN_SPI1 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_SPI1_POS))
252#define MXC_F_PWRSEQ_LPPWEN_LPCMP_POS 26
253#define MXC_F_PWRSEQ_LPPWEN_LPCMP ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_LPCMP_POS))
257#ifdef __cplusplus
258}
259#endif
260
261#endif // LIBRARIES_CMSIS_DEVICE_MAXIM_MAX78000_INCLUDE_PWRSEQ_REGS_H_
__IO uint32_t lpwken2
Definition: pwrseq_regs.h:83
__IO uint32_t lpwken3
Definition: pwrseq_regs.h:85
__IO uint32_t gp0
Definition: pwrseq_regs.h:90
__IO uint32_t lppwst
Definition: pwrseq_regs.h:87
__IO uint32_t lpwkst2
Definition: pwrseq_regs.h:82
__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:91
__IO uint32_t lppwen
Definition: pwrseq_regs.h:88
__IO uint32_t lpwkst3
Definition: pwrseq_regs.h:84
__IO uint32_t lpwkst1
Definition: pwrseq_regs.h:80
__IO uint32_t lpcn
Definition: pwrseq_regs.h:77
Definition: pwrseq_regs.h:76