MAX32690 Peripheral Driver API
Peripheral Driver API for the MAX32690
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_MAX32690_INCLUDE_PWRSEQ_REGS_H_
29#define LIBRARIES_CMSIS_DEVICE_MAXIM_MAX32690_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 __IO uint32_t lpwkst4;
87 __IO uint32_t lpwken4;
88 __R uint32_t rsv_0x2c;
89 __IO uint32_t lppwst;
90 __IO uint32_t lppwen;
91 __R uint32_t rsv_0x38_0x47[4];
92 __IO uint32_t gp0;
93 __IO uint32_t gp1;
95
96/* Register offsets for module PWRSEQ */
103#define MXC_R_PWRSEQ_LPCN ((uint32_t)0x00000000UL)
104#define MXC_R_PWRSEQ_LPWKST0 ((uint32_t)0x00000004UL)
105#define MXC_R_PWRSEQ_LPWKEN0 ((uint32_t)0x00000008UL)
106#define MXC_R_PWRSEQ_LPWKST1 ((uint32_t)0x0000000CUL)
107#define MXC_R_PWRSEQ_LPWKEN1 ((uint32_t)0x00000010UL)
108#define MXC_R_PWRSEQ_LPWKST2 ((uint32_t)0x00000014UL)
109#define MXC_R_PWRSEQ_LPWKEN2 ((uint32_t)0x00000018UL)
110#define MXC_R_PWRSEQ_LPWKST3 ((uint32_t)0x0000001CUL)
111#define MXC_R_PWRSEQ_LPWKEN3 ((uint32_t)0x00000020UL)
112#define MXC_R_PWRSEQ_LPWKST4 ((uint32_t)0x00000024UL)
113#define MXC_R_PWRSEQ_LPWKEN4 ((uint32_t)0x00000028UL)
114#define MXC_R_PWRSEQ_LPPWST ((uint32_t)0x00000030UL)
115#define MXC_R_PWRSEQ_LPPWEN ((uint32_t)0x00000034UL)
116#define MXC_R_PWRSEQ_GP0 ((uint32_t)0x00000048UL)
117#define MXC_R_PWRSEQ_GP1 ((uint32_t)0x0000004CUL)
126#define MXC_F_PWRSEQ_LPCN_RAMRET0_POS 0
127#define MXC_F_PWRSEQ_LPCN_RAMRET0 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_RAMRET0_POS))
129#define MXC_F_PWRSEQ_LPCN_RAMRET1_POS 1
130#define MXC_F_PWRSEQ_LPCN_RAMRET1 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_RAMRET1_POS))
132#define MXC_F_PWRSEQ_LPCN_RAMRET2_POS 2
133#define MXC_F_PWRSEQ_LPCN_RAMRET2 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_RAMRET2_POS))
135#define MXC_F_PWRSEQ_LPCN_RAMRET3_POS 3
136#define MXC_F_PWRSEQ_LPCN_RAMRET3 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_RAMRET3_POS))
138#define MXC_F_PWRSEQ_LPCN_RAMRET4_POS 4
139#define MXC_F_PWRSEQ_LPCN_RAMRET4 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_RAMRET4_POS))
141#define MXC_F_PWRSEQ_LPCN_RAMRET5_POS 5
142#define MXC_F_PWRSEQ_LPCN_RAMRET5 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_RAMRET5_POS))
144#define MXC_F_PWRSEQ_LPCN_RAMRET6_POS 6
145#define MXC_F_PWRSEQ_LPCN_RAMRET6 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_RAMRET6_POS))
147#define MXC_F_PWRSEQ_LPCN_RAMRET8_POS 7
148#define MXC_F_PWRSEQ_LPCN_RAMRET8 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_RAMRET8_POS))
150#define MXC_F_PWRSEQ_LPCN_ISOCLK_SELECT_POS 8
151#define MXC_F_PWRSEQ_LPCN_ISOCLK_SELECT ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_ISOCLK_SELECT_POS))
153#define MXC_F_PWRSEQ_LPCN_FAST_ENTRY_DIS_POS 9
154#define MXC_F_PWRSEQ_LPCN_FAST_ENTRY_DIS ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_FAST_ENTRY_DIS_POS))
156#define MXC_F_PWRSEQ_LPCN_BGOFF_POS 11
157#define MXC_F_PWRSEQ_LPCN_BGOFF ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_BGOFF_POS))
159#define MXC_F_PWRSEQ_LPCN_WKRST_POS 31
160#define MXC_F_PWRSEQ_LPCN_WKRST ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPCN_WKRST_POS))
171#define MXC_F_PWRSEQ_LPWKST0_WAKEST_POS 0
172#define MXC_F_PWRSEQ_LPWKST0_WAKEST ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPWKST0_WAKEST_POS))
183#define MXC_F_PWRSEQ_LPWKEN0_WAKEEN_POS 0
184#define MXC_F_PWRSEQ_LPWKEN0_WAKEEN ((uint32_t)(0x7FFFFFFFUL << MXC_F_PWRSEQ_LPWKEN0_WAKEEN_POS))
195#define MXC_F_PWRSEQ_LPWKST1_WAKEST_POS 0
196#define MXC_F_PWRSEQ_LPWKST1_WAKEST ((uint32_t)(0x3FFUL << MXC_F_PWRSEQ_LPWKST1_WAKEST_POS))
207#define MXC_F_PWRSEQ_LPWKEN1_WAKEEN_POS 0
208#define MXC_F_PWRSEQ_LPWKEN1_WAKEEN ((uint32_t)(0x3FFUL << MXC_F_PWRSEQ_LPWKEN1_WAKEEN_POS))
219#define MXC_F_PWRSEQ_LPWKST2_WAKEST_POS 0
220#define MXC_F_PWRSEQ_LPWKST2_WAKEST ((uint32_t)(0xFFUL << MXC_F_PWRSEQ_LPWKST2_WAKEST_POS))
231#define MXC_F_PWRSEQ_LPWKEN2_WAKEEN_POS 0
232#define MXC_F_PWRSEQ_LPWKEN2_WAKEEN ((uint32_t)(0xFFUL << MXC_F_PWRSEQ_LPWKEN2_WAKEEN_POS))
243#define MXC_F_PWRSEQ_LPWKST3_WAKEST_POS 0
244#define MXC_F_PWRSEQ_LPWKST3_WAKEST ((uint32_t)(0x3UL << MXC_F_PWRSEQ_LPWKST3_WAKEST_POS))
255#define MXC_F_PWRSEQ_LPWKEN3_WAKEEN_POS 0
256#define MXC_F_PWRSEQ_LPWKEN3_WAKEEN ((uint32_t)(0x3UL << MXC_F_PWRSEQ_LPWKEN3_WAKEEN_POS))
267#define MXC_F_PWRSEQ_LPWKST4_WAKEST_POS 0
268#define MXC_F_PWRSEQ_LPWKST4_WAKEST ((uint32_t)(0x3UL << MXC_F_PWRSEQ_LPWKST4_WAKEST_POS))
279#define MXC_F_PWRSEQ_LPWKEN4_WAKEEN_POS 0
280#define MXC_F_PWRSEQ_LPWKEN4_WAKEEN ((uint32_t)(0x3UL << MXC_F_PWRSEQ_LPWKEN4_WAKEEN_POS))
290#define MXC_F_PWRSEQ_LPPWST_AINCOMP0_POS 4
291#define MXC_F_PWRSEQ_LPPWST_AINCOMP0 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWST_AINCOMP0_POS))
293#define MXC_F_PWRSEQ_LPPWST_BACKUP_POS 16
294#define MXC_F_PWRSEQ_LPPWST_BACKUP ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWST_BACKUP_POS))
296#define MXC_F_PWRSEQ_LPPWST_RESET_POS 17
297#define MXC_F_PWRSEQ_LPPWST_RESET ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWST_RESET_POS))
307#define MXC_F_PWRSEQ_LPPWEN_USBLS_POS 0
308#define MXC_F_PWRSEQ_LPPWEN_USBLS ((uint32_t)(0x3UL << MXC_F_PWRSEQ_LPPWEN_USBLS_POS))
310#define MXC_F_PWRSEQ_LPPWEN_USBVBUS_POS 2
311#define MXC_F_PWRSEQ_LPPWEN_USBVBUS ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_USBVBUS_POS))
313#define MXC_F_PWRSEQ_LPPWEN_AINCOMP0_POS 4
314#define MXC_F_PWRSEQ_LPPWEN_AINCOMP0 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_AINCOMP0_POS))
316#define MXC_F_PWRSEQ_LPPWEN_WDT0_POS 8
317#define MXC_F_PWRSEQ_LPPWEN_WDT0 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_WDT0_POS))
319#define MXC_F_PWRSEQ_LPPWEN_WDT1_POS 9
320#define MXC_F_PWRSEQ_LPPWEN_WDT1 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_WDT1_POS))
322#define MXC_F_PWRSEQ_LPPWEN_CPU1_POS 10
323#define MXC_F_PWRSEQ_LPPWEN_CPU1 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_CPU1_POS))
325#define MXC_F_PWRSEQ_LPPWEN_TMR0_POS 11
326#define MXC_F_PWRSEQ_LPPWEN_TMR0 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_TMR0_POS))
328#define MXC_F_PWRSEQ_LPPWEN_TMR1_POS 12
329#define MXC_F_PWRSEQ_LPPWEN_TMR1 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_TMR1_POS))
331#define MXC_F_PWRSEQ_LPPWEN_TMR2_POS 13
332#define MXC_F_PWRSEQ_LPPWEN_TMR2 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_TMR2_POS))
334#define MXC_F_PWRSEQ_LPPWEN_TMR3_POS 14
335#define MXC_F_PWRSEQ_LPPWEN_TMR3 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_TMR3_POS))
337#define MXC_F_PWRSEQ_LPPWEN_TMR4_POS 15
338#define MXC_F_PWRSEQ_LPPWEN_TMR4 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_TMR4_POS))
340#define MXC_F_PWRSEQ_LPPWEN_TMR5_POS 16
341#define MXC_F_PWRSEQ_LPPWEN_TMR5 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_TMR5_POS))
343#define MXC_F_PWRSEQ_LPPWEN_UART0_POS 17
344#define MXC_F_PWRSEQ_LPPWEN_UART0 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_UART0_POS))
346#define MXC_F_PWRSEQ_LPPWEN_UART1_POS 18
347#define MXC_F_PWRSEQ_LPPWEN_UART1 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_UART1_POS))
349#define MXC_F_PWRSEQ_LPPWEN_UART2_POS 19
350#define MXC_F_PWRSEQ_LPPWEN_UART2 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_UART2_POS))
352#define MXC_F_PWRSEQ_LPPWEN_UART3_POS 20
353#define MXC_F_PWRSEQ_LPPWEN_UART3 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_UART3_POS))
355#define MXC_F_PWRSEQ_LPPWEN_I2C0_POS 21
356#define MXC_F_PWRSEQ_LPPWEN_I2C0 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_I2C0_POS))
358#define MXC_F_PWRSEQ_LPPWEN_I2C1_POS 22
359#define MXC_F_PWRSEQ_LPPWEN_I2C1 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_I2C1_POS))
361#define MXC_F_PWRSEQ_LPPWEN_I2C2_POS 23
362#define MXC_F_PWRSEQ_LPPWEN_I2C2 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_I2C2_POS))
364#define MXC_F_PWRSEQ_LPPWEN_I2S_POS 24
365#define MXC_F_PWRSEQ_LPPWEN_I2S ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_I2S_POS))
367#define MXC_F_PWRSEQ_LPPWEN_SPI0_POS 25
368#define MXC_F_PWRSEQ_LPPWEN_SPI0 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_SPI0_POS))
370#define MXC_F_PWRSEQ_LPPWEN_LPCMP_POS 26
371#define MXC_F_PWRSEQ_LPPWEN_LPCMP ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_LPCMP_POS))
373#define MXC_F_PWRSEQ_LPPWEN_BTLE_POS 27
374#define MXC_F_PWRSEQ_LPPWEN_BTLE ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_BTLE_POS))
376#define MXC_F_PWRSEQ_LPPWEN_SPI1_POS 28
377#define MXC_F_PWRSEQ_LPPWEN_SPI1 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_SPI1_POS))
379#define MXC_F_PWRSEQ_LPPWEN_SPI2_POS 29
380#define MXC_F_PWRSEQ_LPPWEN_SPI2 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_SPI2_POS))
382#define MXC_F_PWRSEQ_LPPWEN_CAN0_POS 30
383#define MXC_F_PWRSEQ_LPPWEN_CAN0 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_CAN0_POS))
385#define MXC_F_PWRSEQ_LPPWEN_CAN1_POS 31
386#define MXC_F_PWRSEQ_LPPWEN_CAN1 ((uint32_t)(0x1UL << MXC_F_PWRSEQ_LPPWEN_CAN1_POS))
390#ifdef __cplusplus
391}
392#endif
393
394#endif // LIBRARIES_CMSIS_DEVICE_MAXIM_MAX32690_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 lpwken4
Definition: pwrseq_regs.h:87
__IO uint32_t gp0
Definition: pwrseq_regs.h:92
__IO uint32_t lppwst
Definition: pwrseq_regs.h:89
__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:93
__IO uint32_t lppwen
Definition: pwrseq_regs.h:90
__IO uint32_t lpwkst3
Definition: pwrseq_regs.h:84
__IO uint32_t lpwkst4
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