OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [Common/] [drivers/] [LuminaryMicro/] [hw_hibernate.h] - Blame information for rev 831

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 610 jeremybenn
//*****************************************************************************
2
//
3
// hw_hibernate.h - Defines and Macros for the Hibernation module.
4
//
5
// Copyright (c) 2007-2008 Luminary Micro, Inc.  All rights reserved.
6
// 
7
// Software License Agreement
8
// 
9
// Luminary Micro, Inc. (LMI) is supplying this software for use solely and
10
// exclusively on LMI's microcontroller products.
11
// 
12
// The software is owned by LMI and/or its suppliers, and is protected under
13
// applicable copyright laws.  All rights are reserved.  You may not combine
14
// this software with "viral" open-source software in order to form a larger
15
// program.  Any use in violation of the foregoing restrictions may subject
16
// the user to criminal sanctions under applicable laws, as well as to civil
17
// liability for the breach of the terms and conditions of this license.
18
// 
19
// THIS SOFTWARE IS PROVIDED "AS IS".  NO WARRANTIES, WHETHER EXPRESS, IMPLIED
20
// OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
21
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
22
// LMI SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
23
// CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
24
// 
25
// This is part of revision 2523 of the Stellaris Peripheral Driver Library.
26
//
27
//*****************************************************************************
28
 
29
#ifndef __HW_HIBERNATE_H__
30
#define __HW_HIBERNATE_H__
31
 
32
//*****************************************************************************
33
//
34
// The following are defines for the Hibernation module register addresses.
35
//
36
//*****************************************************************************
37
#define HIB_RTCC                0x400FC000  // Hibernate RTC counter
38
#define HIB_RTCM0               0x400FC004  // Hibernate RTC match 0
39
#define HIB_RTCM1               0x400FC008  // Hibernate RTC match 1
40
#define HIB_RTCLD               0x400FC00C  // Hibernate RTC load
41
#define HIB_CTL                 0x400FC010  // Hibernate RTC control
42
#define HIB_IM                  0x400FC014  // Hibernate interrupt mask
43
#define HIB_RIS                 0x400FC018  // Hibernate raw interrupt status
44
#define HIB_MIS                 0x400FC01C  // Hibernate masked interrupt stat
45
#define HIB_IC                  0x400FC020  // Hibernate interrupt clear
46
#define HIB_RTCT                0x400FC024  // Hibernate RTC trim
47
#define HIB_DATA                0x400FC030  // Hibernate data area
48
 
49
//*****************************************************************************
50
//
51
// The following are defines for the bit fields in the Hibernate RTC counter
52
// register.
53
//
54
//*****************************************************************************
55
#define HIB_RTCC_M              0xFFFFFFFF  // RTC Counter.
56
#define HIB_RTCC_S              0
57
 
58
//*****************************************************************************
59
//
60
// The following are defines for the bit fields in the Hibernate RTC match 0
61
// register.
62
//
63
//*****************************************************************************
64
#define HIB_RTCM0_M             0xFFFFFFFF  // RTC Match 0.
65
#define HIB_RTCM0_S             0
66
 
67
//*****************************************************************************
68
//
69
// The following are defines for the bit fields in the Hibernate RTC match 1
70
// register.
71
//
72
//*****************************************************************************
73
#define HIB_RTCM1_M             0xFFFFFFFF  // RTC Match 1.
74
#define HIB_RTCM1_S             0
75
 
76
//*****************************************************************************
77
//
78
// The following are defines for the bit fields in the Hibernate RTC load
79
// register.
80
//
81
//*****************************************************************************
82
#define HIB_RTCLD_M             0xFFFFFFFF  // RTC Load.
83
#define HIB_RTCLD_S             0
84
 
85
//*****************************************************************************
86
//
87
// The following are defines for the bit fields in the Hibernate control
88
// register
89
//
90
//*****************************************************************************
91
#define HIB_CTL_WRC             0x80000000  // Write Complete/Capable.
92
#define HIB_CTL_VABORT          0x00000080  // low bat abort
93
#define HIB_CTL_CLK32EN         0x00000040  // enable clock/oscillator
94
#define HIB_CTL_LOWBATEN        0x00000020  // enable low battery detect
95
#define HIB_CTL_PINWEN          0x00000010  // enable wake on WAKE pin
96
#define HIB_CTL_RTCWEN          0x00000008  // enable wake on RTC match
97
#define HIB_CTL_CLKSEL          0x00000004  // clock input selection
98
#define HIB_CTL_HIBREQ          0x00000002  // request hibernation
99
#define HIB_CTL_RTCEN           0x00000001  // RTC enable
100
 
101
//*****************************************************************************
102
//
103
// The following are defines for the bit fields in the Hibernate interrupt mask
104
// reg.
105
//
106
//*****************************************************************************
107
#define HIB_IM_EXTW             0x00000008  // wake from external pin interrupt
108
#define HIB_IM_LOWBAT           0x00000004  // low battery interrupt
109
#define HIB_IM_RTCALT1          0x00000002  // RTC match 1 interrupt
110
#define HIB_IM_RTCALT0          0x00000001  // RTC match 0 interrupt
111
 
112
//*****************************************************************************
113
//
114
// The following are defines for the bit fields in the Hibernate raw interrupt
115
// status.
116
//
117
//*****************************************************************************
118
#define HIB_RIS_EXTW            0x00000008  // wake from external pin interrupt
119
#define HIB_RIS_LOWBAT          0x00000004  // low battery interrupt
120
#define HIB_RIS_RTCALT1         0x00000002  // RTC match 1 interrupt
121
#define HIB_RIS_RTCALT0         0x00000001  // RTC Alert0 Raw Interrupt Status.
122
 
123
//*****************************************************************************
124
//
125
// The following are defines for the bit fields in the Hibernate masked int
126
// status.
127
//
128
//*****************************************************************************
129
#define HIB_MIS_EXTW            0x00000008  // wake from external pin interrupt
130
#define HIB_MIS_LOWBAT          0x00000004  // low battery interrupt
131
#define HIB_MIS_RTCALT1         0x00000002  // RTC match 1 interrupt
132
#define HIB_MIS_RTCALT0         0x00000001  // RTC Alert0 Masked Interrupt
133
                                            // Status.
134
 
135
//*****************************************************************************
136
//
137
// The following are defines for the bit fields in the Hibernate interrupt
138
// clear reg.
139
//
140
//*****************************************************************************
141
#define HIB_IC_EXTW             0x00000008  // wake from external pin interrupt
142
#define HIB_IC_LOWBAT           0x00000004  // low battery interrupt
143
#define HIB_IC_RTCALT1          0x00000002  // RTC match 1 interrupt
144
#define HIB_IC_RTCALT0          0x00000001  // RTC match 0 interrupt
145
 
146
//*****************************************************************************
147
//
148
// The following are defines for the bit fields in the Hibernate RTC trim
149
// register.
150
//
151
//*****************************************************************************
152
#define HIB_RTCT_TRIM_M         0x0000FFFF  // RTC Trim Value.
153
#define HIB_RTCT_TRIM_S         0
154
 
155
//*****************************************************************************
156
//
157
// The following are defines for the bit fields in the Hibernate data register.
158
//
159
//*****************************************************************************
160
#define HIB_DATA_RTD_M          0xFFFFFFFF  // Hibernation Module NV
161
                                            // Registers[63:0].
162
#define HIB_DATA_RTD_S          0
163
 
164
//*****************************************************************************
165
//
166
// The following definitions are deprecated.
167
//
168
//*****************************************************************************
169
#ifndef DEPRECATED
170
 
171
//*****************************************************************************
172
//
173
// The following are deprecated defines for the Hibernation module register
174
// addresses.
175
//
176
//*****************************************************************************
177
#define HIB_DATA_END            0x400FC130  // end of data area, exclusive
178
 
179
//*****************************************************************************
180
//
181
// The following are deprecated defines for the bit fields in the Hibernate RTC
182
// counter register.
183
//
184
//*****************************************************************************
185
#define HIB_RTCC_MASK           0xFFFFFFFF  // RTC counter mask
186
 
187
//*****************************************************************************
188
//
189
// The following are deprecated defines for the bit fields in the Hibernate RTC
190
// match 0 register.
191
//
192
//*****************************************************************************
193
#define HIB_RTCM0_MASK          0xFFFFFFFF  // RTC match 0 mask
194
 
195
//*****************************************************************************
196
//
197
// The following are deprecated defines for the bit fields in the Hibernate RTC
198
// match 1 register.
199
//
200
//*****************************************************************************
201
#define HIB_RTCM1_MASK          0xFFFFFFFF  // RTC match 1 mask
202
 
203
//*****************************************************************************
204
//
205
// The following are deprecated defines for the bit fields in the Hibernate RTC
206
// load register.
207
//
208
//*****************************************************************************
209
#define HIB_RTCLD_MASK          0xFFFFFFFF  // RTC load mask
210
 
211
//*****************************************************************************
212
//
213
// The following are deprecated defines for the bit fields in the Hibernate raw
214
// interrupt status.
215
//
216
//*****************************************************************************
217
#define HIB_RID_RTCALT0         0x00000001  // RTC match 0 interrupt
218
 
219
//*****************************************************************************
220
//
221
// The following are deprecated defines for the bit fields in the Hibernate
222
// masked int status.
223
//
224
//*****************************************************************************
225
#define HIB_MID_RTCALT0         0x00000001  // RTC match 0 interrupt
226
 
227
//*****************************************************************************
228
//
229
// The following are deprecated defines for the bit fields in the Hibernate RTC
230
// trim register.
231
//
232
//*****************************************************************************
233
#define HIB_RTCT_MASK           0x0000FFFF  // RTC trim mask
234
 
235
//*****************************************************************************
236
//
237
// The following are deprecated defines for the bit fields in the Hibernate
238
// data register.
239
//
240
//*****************************************************************************
241
#define HIB_DATA_MASK           0xFFFFFFFF  // NV memory data mask
242
 
243
#endif
244
 
245
#endif // __HW_HIBERNATE_H__

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.