MAX32665 Peripheral Driver API
Peripheral Driver API for the MAX32665
mcr_regs.h
1
6
/* ****************************************************************************
7
* Copyright (C) 2016 Maxim Integrated Products, Inc., All Rights Reserved.
8
*
9
* Permission is hereby granted, free of charge, to any person obtaining a
10
* copy of this software and associated documentation files (the "Software"),
11
* to deal in the Software without restriction, including without limitation
12
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
13
* and/or sell copies of the Software, and to permit persons to whom the
14
* Software is furnished to do so, subject to the following conditions:
15
*
16
* The above copyright notice and this permission notice shall be included
17
* in all copies or substantial portions of the Software.
18
*
19
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
22
* IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES
23
* OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
24
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
25
* OTHER DEALINGS IN THE SOFTWARE.
26
*
27
* Except as contained in this notice, the name of Maxim Integrated
28
* Products, Inc. shall not be used except as stated in the Maxim Integrated
29
* Products, Inc. Branding Policy.
30
*
31
* The mere transfer of this software does not imply any licenses
32
* of trade secrets, proprietary technology, copyrights, patents,
33
* trademarks, maskwork rights, or any other form of intellectual
34
* property whatsoever. Maxim Integrated Products, Inc. retains all
35
* ownership rights.
36
*
37
*
38
*************************************************************************** */
39
40
#ifndef _MCR_REGS_H_
41
#define _MCR_REGS_H_
42
43
/* **** Includes **** */
44
#include <stdint.h>
45
46
#ifdef __cplusplus
47
extern
"C"
{
48
#endif
49
50
#if defined (__ICCARM__)
51
#pragma system_include
52
#endif
53
54
#if defined (__CC_ARM)
55
#pragma anon_unions
56
#endif
57
/*
59
If types are not defined elsewhere (CMSIS) define them here
60
*/
61
#ifndef __IO
62
#define __IO volatile
63
#endif
64
#ifndef __I
65
#define __I volatile const
66
#endif
67
#ifndef __O
68
#define __O volatile
69
#endif
70
#ifndef __R
71
#define __R volatile const
72
#endif
73
75
/* **** Definitions **** */
76
88
typedef
struct
{
89
__IO uint32_t
eccen
;
90
__R uint32_t rsv_0x4;
91
__IO uint32_t
outen
;
92
__IO uint32_t
aincomp
;
93
__IO uint32_t
ctrl
;
94
}
mxc_mcr_regs_t
;
95
96
/* Register offsets for module MCR */
103
#define MXC_R_MCR_ECCEN ((uint32_t)0x00000000UL)
104
#define MXC_R_MCR_OUTEN ((uint32_t)0x00000008UL)
105
#define MXC_R_MCR_AINCOMP ((uint32_t)0x0000000CUL)
106
#define MXC_R_MCR_CTRL ((uint32_t)0x00000010UL)
115
#define MXC_F_MCR_ECCEN_SYSRAM0ECCEN_POS 0
116
#define MXC_F_MCR_ECCEN_SYSRAM0ECCEN ((uint32_t)(0x1UL << MXC_F_MCR_ECCEN_SYSRAM0ECCEN_POS))
118
#define MXC_F_MCR_ECCEN_SYSRAM1ECCEN_POS 1
119
#define MXC_F_MCR_ECCEN_SYSRAM1ECCEN ((uint32_t)(0x1UL << MXC_F_MCR_ECCEN_SYSRAM1ECCEN_POS))
121
#define MXC_F_MCR_ECCEN_SYSRAM2ECCEN_POS 2
122
#define MXC_F_MCR_ECCEN_SYSRAM2ECCEN ((uint32_t)(0x1UL << MXC_F_MCR_ECCEN_SYSRAM2ECCEN_POS))
124
#define MXC_F_MCR_ECCEN_SYSRAM3ECCEN_POS 3
125
#define MXC_F_MCR_ECCEN_SYSRAM3ECCEN ((uint32_t)(0x1UL << MXC_F_MCR_ECCEN_SYSRAM3ECCEN_POS))
127
#define MXC_F_MCR_ECCEN_SYSRAM4ECCEN_POS 4
128
#define MXC_F_MCR_ECCEN_SYSRAM4ECCEN ((uint32_t)(0x1UL << MXC_F_MCR_ECCEN_SYSRAM4ECCEN_POS))
130
#define MXC_F_MCR_ECCEN_SYSRAM5ECCEN_POS 5
131
#define MXC_F_MCR_ECCEN_SYSRAM5ECCEN ((uint32_t)(0x1UL << MXC_F_MCR_ECCEN_SYSRAM5ECCEN_POS))
133
#define MXC_F_MCR_ECCEN_IC0ECCEN_POS 8
134
#define MXC_F_MCR_ECCEN_IC0ECCEN ((uint32_t)(0x1UL << MXC_F_MCR_ECCEN_IC0ECCEN_POS))
136
#define MXC_F_MCR_ECCEN_IC1ECCEN_POS 9
137
#define MXC_F_MCR_ECCEN_IC1ECCEN ((uint32_t)(0x1UL << MXC_F_MCR_ECCEN_IC1ECCEN_POS))
139
#define MXC_F_MCR_ECCEN_ICSPIXFECCEN_POS 10
140
#define MXC_F_MCR_ECCEN_ICSPIXFECCEN ((uint32_t)(0x1UL << MXC_F_MCR_ECCEN_ICSPIXFECCEN_POS))
142
#define MXC_F_MCR_ECCEN_FL0ECCEN_POS 11
143
#define MXC_F_MCR_ECCEN_FL0ECCEN ((uint32_t)(0x1UL << MXC_F_MCR_ECCEN_FL0ECCEN_POS))
145
#define MXC_F_MCR_ECCEN_FL1ECCEN_POS 12
146
#define MXC_F_MCR_ECCEN_FL1ECCEN ((uint32_t)(0x1UL << MXC_F_MCR_ECCEN_FL1ECCEN_POS))
156
#define MXC_F_MCR_OUTEN_SQWOUT0EN_POS 0
157
#define MXC_F_MCR_OUTEN_SQWOUT0EN ((uint32_t)(0x1UL << MXC_F_MCR_OUTEN_SQWOUT0EN_POS))
159
#define MXC_F_MCR_OUTEN_SQWOUT1EN_POS 1
160
#define MXC_F_MCR_OUTEN_SQWOUT1EN ((uint32_t)(0x1UL << MXC_F_MCR_OUTEN_SQWOUT1EN_POS))
162
#define MXC_F_MCR_OUTEN_PDOWNOUT0EN_POS 2
163
#define MXC_F_MCR_OUTEN_PDOWNOUT0EN ((uint32_t)(0x1UL << MXC_F_MCR_OUTEN_PDOWNOUT0EN_POS))
165
#define MXC_F_MCR_OUTEN_PDOWNOUT1EN_POS 3
166
#define MXC_F_MCR_OUTEN_PDOWNOUT1EN ((uint32_t)(0x1UL << MXC_F_MCR_OUTEN_PDOWNOUT1EN_POS))
176
#define MXC_F_MCR_AINCOMP_AINCOMP0PD_POS 0
177
#define MXC_F_MCR_AINCOMP_AINCOMP0PD ((uint32_t)(0x1UL << MXC_F_MCR_AINCOMP_AINCOMP0PD_POS))
179
#define MXC_F_MCR_AINCOMP_AINCOMP1PD_POS 1
180
#define MXC_F_MCR_AINCOMP_AINCOMP1PD ((uint32_t)(0x1UL << MXC_F_MCR_AINCOMP_AINCOMP1PD_POS))
182
#define MXC_F_MCR_AINCOMP_AINCOMP2PD_POS 2
183
#define MXC_F_MCR_AINCOMP_AINCOMP2PD ((uint32_t)(0x1UL << MXC_F_MCR_AINCOMP_AINCOMP2PD_POS))
185
#define MXC_F_MCR_AINCOMP_AINCOMP3PD_POS 3
186
#define MXC_F_MCR_AINCOMP_AINCOMP3PD ((uint32_t)(0x1UL << MXC_F_MCR_AINCOMP_AINCOMP3PD_POS))
188
#define MXC_F_MCR_AINCOMP_AINCOMPHYST_POS 4
189
#define MXC_F_MCR_AINCOMP_AINCOMPHYST ((uint32_t)(0x3UL << MXC_F_MCR_AINCOMP_AINCOMPHYST_POS))
199
#define MXC_F_MCR_CTRL_VDDCSWEN_POS 0
200
#define MXC_F_MCR_CTRL_VDDCSWEN ((uint32_t)(0x1UL << MXC_F_MCR_CTRL_VDDCSWEN_POS))
202
#define MXC_F_MCR_CTRL_VDDCSW_POS 1
203
#define MXC_F_MCR_CTRL_VDDCSW ((uint32_t)(0x3UL << MXC_F_MCR_CTRL_VDDCSW_POS))
205
#define MXC_F_MCR_CTRL_USBSWEN_N_POS 3
206
#define MXC_F_MCR_CTRL_USBSWEN_N ((uint32_t)(0x1UL << MXC_F_MCR_CTRL_USBSWEN_N_POS))
208
#define MXC_F_MCR_CTRL_BUCKCLKSCALEN_POS 8
209
#define MXC_F_MCR_CTRL_BUCKCLKSCALEN ((uint32_t)(0x1UL << MXC_F_MCR_CTRL_BUCKCLKSCALEN_POS))
211
#define MXC_F_MCR_CTRL_P1M_POS 9
212
#define MXC_F_MCR_CTRL_P1M ((uint32_t)(0x1UL << MXC_F_MCR_CTRL_P1M_POS))
214
#define MXC_F_MCR_CTRL_RSTN_VOLTAGE_SEL_POS 10
215
#define MXC_F_MCR_CTRL_RSTN_VOLTAGE_SEL ((uint32_t)(0x1UL << MXC_F_MCR_CTRL_RSTN_VOLTAGE_SEL_POS))
219
#ifdef __cplusplus
220
}
221
#endif
222
223
#endif
/* _MCR_REGS_H_ */
mxc_mcr_regs_t::outen
__IO uint32_t outen
Definition:
mcr_regs.h:91
mxc_mcr_regs_t::eccen
__IO uint32_t eccen
Definition:
mcr_regs.h:89
mxc_mcr_regs_t
Definition:
mcr_regs.h:88
mxc_mcr_regs_t::aincomp
__IO uint32_t aincomp
Definition:
mcr_regs.h:92
mxc_mcr_regs_t::ctrl
__IO uint32_t ctrl
Definition:
mcr_regs.h:93
CMSIS
Device
Maxim
MAX32665
Include
mcr_regs.h
Generated on Fri Dec 4 2020 11:48:57 for MAX32665 Peripheral Driver API by
1.8.20