MAX78002 Peripheral Driver API
Peripheral Driver API for the MAX78002
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_MAX78002_INCLUDE_PWRSEQ_REGS_H_
29#define LIBRARIES_CMSIS_DEVICE_MAXIM_MAX78002_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_RAMRET4_POS 4
135#define MXC_F_PWRSEQ_LPCN_RAMRET4 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_RAMRET4_POS))
137#define MXC_F_PWRSEQ_LPCN_RAMRET5_POS 5
138#define MXC_F_PWRSEQ_LPCN_RAMRET5 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_RAMRET5_POS))
140#define MXC_F_PWRSEQ_LPCN_RAMRET6_POS 6
141#define MXC_F_PWRSEQ_LPCN_RAMRET6 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_RAMRET6_POS))
143#define MXC_F_PWRSEQ_LPCN_RAMRET7_POS 7
144#define MXC_F_PWRSEQ_LPCN_RAMRET7 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_RAMRET7_POS))
146#define MXC_F_PWRSEQ_LPCN_ISOCLK_SELECT_POS 8
147#define MXC_F_PWRSEQ_LPCN_ISOCLK_SELECT ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_ISOCLK_SELECT_POS))
149#define MXC_F_PWRSEQ_LPCN_FAST_ENTRY_DIS_POS 9
150#define MXC_F_PWRSEQ_LPCN_FAST_ENTRY_DIS ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_FAST_ENTRY_DIS_POS))
152#define MXC_F_PWRSEQ_LPCN_BGOFF_POS 11
153#define MXC_F_PWRSEQ_LPCN_BGOFF ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_BGOFF_POS))
155#define MXC_F_PWRSEQ_LPCN_WKRST_POS 31
156#define MXC_F_PWRSEQ_LPCN_WKRST ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_WKRST_POS))
167#define MXC_F_PWRSEQ_LPWKST0_WAKEST_POS 0
168#define MXC_F_PWRSEQ_LPWKST0_WAKEST ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPWKST0_WAKEST_POS))
179#define MXC_F_PWRSEQ_LPWKEN0_WAKEEN_POS 0
180#define MXC_F_PWRSEQ_LPWKEN0_WAKEEN ((uint32_t)(0x7FFFFFFFUL << MXC_F_PWRSEQ_LPWKEN0_WAKEEN_POS))
191#define MXC_F_PWRSEQ_LPWKST1_WAKEST_POS 0
192#define MXC_F_PWRSEQ_LPWKST1_WAKEST ((uint32_t)(0x3FFUL << MXC_F_PWRSEQ_LPWKST1_WAKEST_POS))
203#define MXC_F_PWRSEQ_LPWKEN1_WAKEEN_POS 0
204#define MXC_F_PWRSEQ_LPWKEN1_WAKEEN ((uint32_t)(0x3FFUL << MXC_F_PWRSEQ_LPWKEN1_WAKEEN_POS))
215#define MXC_F_PWRSEQ_LPWKST2_WAKEST_POS 0
216#define MXC_F_PWRSEQ_LPWKST2_WAKEST ((uint32_t)(0xFFUL << MXC_F_PWRSEQ_LPWKST2_WAKEST_POS))
227#define MXC_F_PWRSEQ_LPWKEN2_WAKEEN_POS 0
228#define MXC_F_PWRSEQ_LPWKEN2_WAKEEN ((uint32_t)(0xFFUL << MXC_F_PWRSEQ_LPWKEN2_WAKEEN_POS))
239#define MXC_F_PWRSEQ_LPWKST3_WAKEST_POS 0
240#define MXC_F_PWRSEQ_LPWKST3_WAKEST ((uint32_t)(0x3UL << MXC_F_PWRSEQ_LPWKST3_WAKEST_POS))
251#define MXC_F_PWRSEQ_LPWKEN3_WAKEEN_POS 0
252#define MXC_F_PWRSEQ_LPWKEN3_WAKEEN ((uint32_t)(0x3UL << MXC_F_PWRSEQ_LPWKEN3_WAKEEN_POS))
262#define MXC_F_PWRSEQ_LPPWST_AINCOMP0_POS 4
263#define MXC_F_PWRSEQ_LPPWST_AINCOMP0 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWST_AINCOMP0_POS))
265#define MXC_F_PWRSEQ_LPPWST_BACKUP_POS 16
266#define MXC_F_PWRSEQ_LPPWST_BACKUP ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWST_BACKUP_POS))
268#define MXC_F_PWRSEQ_LPPWST_RESET_POS 17
269#define MXC_F_PWRSEQ_LPPWST_RESET ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWST_RESET_POS))
279#define MXC_F_PWRSEQ_LPPWEN_USBLS_POS 0
280#define MXC_F_PWRSEQ_LPPWEN_USBLS ((uint32_t)(0x3UL << MXC_F_PWRSEQ_LPPWEN_USBLS_POS))
282#define MXC_F_PWRSEQ_LPPWEN_USBVBUS_POS 2
283#define MXC_F_PWRSEQ_LPPWEN_USBVBUS ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_USBVBUS_POS))
285#define MXC_F_PWRSEQ_LPPWEN_AINCOMP0_POS 4
286#define MXC_F_PWRSEQ_LPPWEN_AINCOMP0 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_AINCOMP0_POS))
288#define MXC_F_PWRSEQ_LPPWEN_WDT0_POS 8
289#define MXC_F_PWRSEQ_LPPWEN_WDT0 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_WDT0_POS))
291#define MXC_F_PWRSEQ_LPPWEN_WDT1_POS 9
292#define MXC_F_PWRSEQ_LPPWEN_WDT1 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_WDT1_POS))
294#define MXC_F_PWRSEQ_LPPWEN_CPU1_POS 10
295#define MXC_F_PWRSEQ_LPPWEN_CPU1 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_CPU1_POS))
297#define MXC_F_PWRSEQ_LPPWEN_TMR0_POS 11
298#define MXC_F_PWRSEQ_LPPWEN_TMR0 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_TMR0_POS))
300#define MXC_F_PWRSEQ_LPPWEN_TMR1_POS 12
301#define MXC_F_PWRSEQ_LPPWEN_TMR1 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_TMR1_POS))
303#define MXC_F_PWRSEQ_LPPWEN_TMR2_POS 13
304#define MXC_F_PWRSEQ_LPPWEN_TMR2 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_TMR2_POS))
306#define MXC_F_PWRSEQ_LPPWEN_TMR3_POS 14
307#define MXC_F_PWRSEQ_LPPWEN_TMR3 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_TMR3_POS))
309#define MXC_F_PWRSEQ_LPPWEN_TMR4_POS 15
310#define MXC_F_PWRSEQ_LPPWEN_TMR4 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_TMR4_POS))
312#define MXC_F_PWRSEQ_LPPWEN_TMR5_POS 16
313#define MXC_F_PWRSEQ_LPPWEN_TMR5 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_TMR5_POS))
315#define MXC_F_PWRSEQ_LPPWEN_UART0_POS 17
316#define MXC_F_PWRSEQ_LPPWEN_UART0 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_UART0_POS))
318#define MXC_F_PWRSEQ_LPPWEN_UART1_POS 18
319#define MXC_F_PWRSEQ_LPPWEN_UART1 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_UART1_POS))
321#define MXC_F_PWRSEQ_LPPWEN_UART2_POS 19
322#define MXC_F_PWRSEQ_LPPWEN_UART2 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_UART2_POS))
324#define MXC_F_PWRSEQ_LPPWEN_UART3_POS 20
325#define MXC_F_PWRSEQ_LPPWEN_UART3 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_UART3_POS))
327#define MXC_F_PWRSEQ_LPPWEN_I2C0_POS 21
328#define MXC_F_PWRSEQ_LPPWEN_I2C0 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_I2C0_POS))
330#define MXC_F_PWRSEQ_LPPWEN_I2C1_POS 22
331#define MXC_F_PWRSEQ_LPPWEN_I2C1 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_I2C1_POS))
333#define MXC_F_PWRSEQ_LPPWEN_I2C2_POS 23
334#define MXC_F_PWRSEQ_LPPWEN_I2C2 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_I2C2_POS))
336#define MXC_F_PWRSEQ_LPPWEN_I2S_POS 24
337#define MXC_F_PWRSEQ_LPPWEN_I2S ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_I2S_POS))
339#define MXC_F_PWRSEQ_LPPWEN_SPI1_POS 25
340#define MXC_F_PWRSEQ_LPPWEN_SPI1 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_SPI1_POS))
342#define MXC_F_PWRSEQ_LPPWEN_LPCMP_POS 26
343#define MXC_F_PWRSEQ_LPPWEN_LPCMP ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_LPCMP_POS))
347#ifdef __cplusplus
348}
349#endif
350
351#endif // LIBRARIES_CMSIS_DEVICE_MAXIM_MAX78002_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