MAX32665 Peripheral Driver API
Peripheral Driver API for the MAX32665
htmr_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 _HTMR_REGS_H_
41
#define _HTMR_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
sec
;
90
__IO uint32_t
ssec
;
91
__IO uint32_t
ras
;
92
__IO uint32_t
rssa
;
93
__IO uint32_t
ctrl
;
94
}
mxc_htmr_regs_t
;
95
96
/* Register offsets for module HTMR */
103
#define MXC_R_HTMR_SEC ((uint32_t)0x00000000UL)
104
#define MXC_R_HTMR_SSEC ((uint32_t)0x00000004UL)
105
#define MXC_R_HTMR_RAS ((uint32_t)0x00000008UL)
106
#define MXC_R_HTMR_RSSA ((uint32_t)0x0000000CUL)
107
#define MXC_R_HTMR_CTRL ((uint32_t)0x00000010UL)
117
#define MXC_F_HTMR_SEC_RTS_POS 0
118
#define MXC_F_HTMR_SEC_RTS ((uint32_t)(0x7FFFFFFFUL << MXC_F_HTMR_SEC_RTS_POS))
129
#define MXC_F_HTMR_SSEC_RTSS_POS 0
130
#define MXC_F_HTMR_SSEC_RTSS ((uint32_t)(0xFFUL << MXC_F_HTMR_SSEC_RTSS_POS))
140
#define MXC_F_HTMR_RAS_RAS_POS 0
141
#define MXC_F_HTMR_RAS_RAS ((uint32_t)(0xFFFFFUL << MXC_F_HTMR_RAS_RAS_POS))
152
#define MXC_F_HTMR_RSSA_RSSA_POS 0
153
#define MXC_F_HTMR_RSSA_RSSA ((uint32_t)(0xFFFFFFFFUL << MXC_F_HTMR_RSSA_RSSA_POS))
163
#define MXC_F_HTMR_CTRL_ENABLE_POS 0
164
#define MXC_F_HTMR_CTRL_ENABLE ((uint32_t)(0x1UL << MXC_F_HTMR_CTRL_ENABLE_POS))
166
#define MXC_F_HTMR_CTRL_ALARM_TOD_EN_POS 1
167
#define MXC_F_HTMR_CTRL_ALARM_TOD_EN ((uint32_t)(0x1UL << MXC_F_HTMR_CTRL_ALARM_TOD_EN_POS))
169
#define MXC_F_HTMR_CTRL_ALARM_SS_EN_POS 2
170
#define MXC_F_HTMR_CTRL_ALARM_SS_EN ((uint32_t)(0x1UL << MXC_F_HTMR_CTRL_ALARM_SS_EN_POS))
172
#define MXC_F_HTMR_CTRL_BUSY_POS 3
173
#define MXC_F_HTMR_CTRL_BUSY ((uint32_t)(0x1UL << MXC_F_HTMR_CTRL_BUSY_POS))
175
#define MXC_F_HTMR_CTRL_READY_POS 4
176
#define MXC_F_HTMR_CTRL_READY ((uint32_t)(0x1UL << MXC_F_HTMR_CTRL_READY_POS))
178
#define MXC_F_HTMR_CTRL_READY_INT_EN_POS 5
179
#define MXC_F_HTMR_CTRL_READY_INT_EN ((uint32_t)(0x1UL << MXC_F_HTMR_CTRL_READY_INT_EN_POS))
181
#define MXC_F_HTMR_CTRL_ALARM_TOD_FL_POS 6
182
#define MXC_F_HTMR_CTRL_ALARM_TOD_FL ((uint32_t)(0x1UL << MXC_F_HTMR_CTRL_ALARM_TOD_FL_POS))
184
#define MXC_F_HTMR_CTRL_ALARM_SS_FL_POS 7
185
#define MXC_F_HTMR_CTRL_ALARM_SS_FL ((uint32_t)(0x1UL << MXC_F_HTMR_CTRL_ALARM_SS_FL_POS))
187
#define MXC_F_HTMR_CTRL_ACRE_POS 14
188
#define MXC_F_HTMR_CTRL_ACRE ((uint32_t)(0x1UL << MXC_F_HTMR_CTRL_ACRE_POS))
190
#define MXC_F_HTMR_CTRL_WRITE_EN_POS 15
191
#define MXC_F_HTMR_CTRL_WRITE_EN ((uint32_t)(0x1UL << MXC_F_HTMR_CTRL_WRITE_EN_POS))
195
#ifdef __cplusplus
196
}
197
#endif
198
199
#endif
/* _HTMR_REGS_H_ */
mxc_htmr_regs_t
Definition:
htmr_regs.h:88
mxc_htmr_regs_t::sec
__IO uint32_t sec
Definition:
htmr_regs.h:89
mxc_htmr_regs_t::rssa
__IO uint32_t rssa
Definition:
htmr_regs.h:92
mxc_htmr_regs_t::ras
__IO uint32_t ras
Definition:
htmr_regs.h:91
mxc_htmr_regs_t::ssec
__IO uint32_t ssec
Definition:
htmr_regs.h:90
mxc_htmr_regs_t::ctrl
__IO uint32_t ctrl
Definition:
htmr_regs.h:93
CMSIS
Device
Maxim
MAX32665
Include
htmr_regs.h
Generated on Fri Dec 4 2020 11:48:57 for MAX32665 Peripheral Driver API by
1.8.20