1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
|
//###########################################################################
//
// FILE: F2837xD_cla.h
//
// TITLE: CLA Register Definitions.
//
//###########################################################################
// $TI Release: F2837xD Support Library v3.05.00.00 $
// $Release Date: Tue Jun 26 03:15:23 CDT 2018 $
// $Copyright:
// Copyright (C) 2013-2018 Texas Instruments Incorporated - http://www.ti.com/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the
// distribution.
//
// Neither the name of Texas Instruments Incorporated nor the names of
// its contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// $
//###########################################################################
#ifndef __F2837xD_CLA_H__
#define __F2837xD_CLA_H__
#ifdef __cplusplus
extern "C" {
#endif
//---------------------------------------------------------------------------
// CLA Individual Register Bit Definitions:
struct MCTL_BITS { // bits description
Uint16 HARDRESET:1; // 0 Hard Reset
Uint16 SOFTRESET:1; // 1 Soft Reset
Uint16 IACKE:1; // 2 IACK enable
Uint16 rsvd1:13; // 15:3 Reserved
};
union MCTL_REG {
Uint16 all;
struct MCTL_BITS bit;
};
struct MIFR_BITS { // bits description
Uint16 INT1:1; // 0 Task 1 Interrupt Flag
Uint16 INT2:1; // 1 Task 2 Interrupt Flag
Uint16 INT3:1; // 2 Task 3 Interrupt Flag
Uint16 INT4:1; // 3 Task 4 Interrupt Flag
Uint16 INT5:1; // 4 Task 5 Interrupt Flag
Uint16 INT6:1; // 5 Task 6 Interrupt Flag
Uint16 INT7:1; // 6 Task 7 Interrupt Flag
Uint16 INT8:1; // 7 Task 8 Interrupt Flag
Uint16 rsvd1:8; // 15:8 Reserved
};
union MIFR_REG {
Uint16 all;
struct MIFR_BITS bit;
};
struct MIOVF_BITS { // bits description
Uint16 INT1:1; // 0 Task 1 Interrupt Overflow Flag
Uint16 INT2:1; // 1 Task 2 Interrupt Overflow Flag
Uint16 INT3:1; // 2 Task 3 Interrupt Overflow Flag
Uint16 INT4:1; // 3 Task 4 Interrupt Overflow Flag
Uint16 INT5:1; // 4 Task 5 Interrupt Overflow Flag
Uint16 INT6:1; // 5 Task 6 Interrupt Overflow Flag
Uint16 INT7:1; // 6 Task 7 Interrupt Overflow Flag
Uint16 INT8:1; // 7 Task 8 Interrupt Overflow Flag
Uint16 rsvd1:8; // 15:8 Reserved
};
union MIOVF_REG {
Uint16 all;
struct MIOVF_BITS bit;
};
struct MIFRC_BITS { // bits description
Uint16 INT1:1; // 0 Task 1 Interrupt Force
Uint16 INT2:1; // 1 Task 2 Interrupt Force
Uint16 INT3:1; // 2 Task 3 Interrupt Force
Uint16 INT4:1; // 3 Task 4 Interrupt Force
Uint16 INT5:1; // 4 Task 5 Interrupt Force
Uint16 INT6:1; // 5 Task 6 Interrupt Force
Uint16 INT7:1; // 6 Task 7 Interrupt Force
Uint16 INT8:1; // 7 Task 8 Interrupt Force
Uint16 rsvd1:8; // 15:8 Reserved
};
union MIFRC_REG {
Uint16 all;
struct MIFRC_BITS bit;
};
struct MICLR_BITS { // bits description
Uint16 INT1:1; // 0 Task 1 Interrupt Flag Clear
Uint16 INT2:1; // 1 Task 2 Interrupt Flag Clear
Uint16 INT3:1; // 2 Task 3 Interrupt Flag Clear
Uint16 INT4:1; // 3 Task 4 Interrupt Flag Clear
Uint16 INT5:1; // 4 Task 5 Interrupt Flag Clear
Uint16 INT6:1; // 5 Task 6 Interrupt Flag Clear
Uint16 INT7:1; // 6 Task 7 Interrupt Flag Clear
Uint16 INT8:1; // 7 Task 8 Interrupt Flag Clear
Uint16 rsvd1:8; // 15:8 Reserved
};
union MICLR_REG {
Uint16 all;
struct MICLR_BITS bit;
};
struct MICLROVF_BITS { // bits description
Uint16 INT1:1; // 0 Task 1 Interrupt Overflow Flag Clear
Uint16 INT2:1; // 1 Task 2 Interrupt Overflow Flag Clear
Uint16 INT3:1; // 2 Task 3 Interrupt Overflow Flag Clear
Uint16 INT4:1; // 3 Task 4 Interrupt Overflow Flag Clear
Uint16 INT5:1; // 4 Task 5 Interrupt Overflow Flag Clear
Uint16 INT6:1; // 5 Task 6 Interrupt Overflow Flag Clear
Uint16 INT7:1; // 6 Task 7 Interrupt Overflow Flag Clear
Uint16 INT8:1; // 7 Task 8 Interrupt Overflow Flag Clear
Uint16 rsvd1:8; // 15:8 Reserved
};
union MICLROVF_REG {
Uint16 all;
struct MICLROVF_BITS bit;
};
struct MIER_BITS { // bits description
Uint16 INT1:1; // 0 Task 1 Interrupt Enable
Uint16 INT2:1; // 1 Task 2 Interrupt Enable
Uint16 INT3:1; // 2 Task 3 Interrupt Enable
Uint16 INT4:1; // 3 Task 4 Interrupt Enable
Uint16 INT5:1; // 4 Task 5 Interrupt Enable
Uint16 INT6:1; // 5 Task 6 Interrupt Enable
Uint16 INT7:1; // 6 Task 7 Interrupt Enable
Uint16 INT8:1; // 7 Task 8 Interrupt Enable
Uint16 rsvd1:8; // 15:8 Reserved
};
union MIER_REG {
Uint16 all;
struct MIER_BITS bit;
};
struct MIRUN_BITS { // bits description
Uint16 INT1:1; // 0 Task 1 Run Status
Uint16 INT2:1; // 1 Task 2 Run Status
Uint16 INT3:1; // 2 Task 3 Run Status
Uint16 INT4:1; // 3 Task 4 Run Status
Uint16 INT5:1; // 4 Task 5 Run Status
Uint16 INT6:1; // 5 Task 6 Run Status
Uint16 INT7:1; // 6 Task 7 Run Status
Uint16 INT8:1; // 7 Task 8 Run Status
Uint16 rsvd1:8; // 15:8 Reserved
};
union MIRUN_REG {
Uint16 all;
struct MIRUN_BITS bit;
};
struct _MSTF_BITS { // bits description
Uint16 LVF:1; // 0 Latched Overflow Flag
Uint16 LUF:1; // 1 Latched Underflow Flag
Uint16 NF:1; // 2 Negative Float Flag
Uint16 ZF:1; // 3 Zero Float Flag
Uint16 rsvd1:2; // 5:4 Reserved
Uint16 TF:1; // 6 Test Flag
Uint16 rsvd2:2; // 8:7 Reserved
Uint16 RNDF32:1; // 9 Round 32-bit Floating-Point Mode
Uint16 rsvd3:1; // 10 Reserved
Uint16 MEALLOW:1; // 11 MEALLOW Status
Uint32 _RPC:16; // 27:12 Return PC
Uint16 rsvd4:4; // 31:28 Reserved
};
union _MSTF_REG {
Uint32 all;
struct _MSTF_BITS bit;
};
union MR_REG {
Uint32 i32;
float f32;
};
struct CLA_REGS {
Uint16 MVECT1; // Task Interrupt Vector
Uint16 MVECT2; // Task Interrupt Vector
Uint16 MVECT3; // Task Interrupt Vector
Uint16 MVECT4; // Task Interrupt Vector
Uint16 MVECT5; // Task Interrupt Vector
Uint16 MVECT6; // Task Interrupt Vector
Uint16 MVECT7; // Task Interrupt Vector
Uint16 MVECT8; // Task Interrupt Vector
Uint16 rsvd1[8]; // Reserved
union MCTL_REG MCTL; // Control Register
Uint16 rsvd2[15]; // Reserved
union MIFR_REG MIFR; // Interrupt Flag Register
union MIOVF_REG MIOVF; // Interrupt Overflow Flag Register
union MIFRC_REG MIFRC; // Interrupt Force Register
union MICLR_REG MICLR; // Interrupt Flag Clear Register
union MICLROVF_REG MICLROVF; // Interrupt Overflow Flag Clear Register
union MIER_REG MIER; // Interrupt Enable Register
union MIRUN_REG MIRUN; // Interrupt Run Status Register
Uint16 rsvd3; // Reserved
Uint16 _MPC; // CLA Program Counter
Uint16 rsvd4; // Reserved
Uint16 _MAR0; // CLA Auxiliary Register 0
Uint16 _MAR1; // CLA Auxiliary Register 1
Uint16 rsvd5[2]; // Reserved
union _MSTF_REG _MSTF; // CLA Floating-Point Status Register
union MR_REG _MR0; // CLA Floating-Point Result Register 0
Uint16 rsvd6[2]; // Reserved
union MR_REG _MR1; // CLA Floating-Point Result Register 1
Uint16 rsvd7[2]; // Reserved
union MR_REG _MR2; // CLA Floating-Point Result Register 2
Uint16 rsvd8[2]; // Reserved
union MR_REG _MR3; // CLA Floating-Point Result Register 3
};
struct SOFTINTEN_BITS { // bits description
Uint16 TASK1:1; // 0 Task 1 Software Interrupt Enable
Uint16 TASK2:1; // 1 Task 2 Software Interrupt Enable
Uint16 TASK3:1; // 2 Task 3 Software Interrupt Enable
Uint16 TASK4:1; // 3 Task 4 Software Interrupt Enable
Uint16 TASK5:1; // 4 Task 5 Software Interrupt Enable
Uint16 TASK6:1; // 5 Task 6 Software Interrupt Enable
Uint16 TASK7:1; // 6 Task 7 Software Interrupt Enable
Uint16 TASK8:1; // 7 Task 8 Software Interrupt Enable
Uint16 rsvd1:8; // 15:8 Reserved
Uint16 rsvd2:16; // 31:16 Reserved
};
union SOFTINTEN_REG {
Uint32 all;
struct SOFTINTEN_BITS bit;
};
struct SOFTINTFRC_BITS { // bits description
Uint16 TASK1:1; // 0 Task 1 Software Interrupt Force
Uint16 TASK2:1; // 1 Task 2 Software Interrupt Force
Uint16 TASK3:1; // 2 Task 3 Software Interrupt Force
Uint16 TASK4:1; // 3 Task 4 Software Interrupt Force
Uint16 TASK5:1; // 4 Task 5 Software Interrupt Force
Uint16 TASK6:1; // 5 Task 6 Software Interrupt Force
Uint16 TASK7:1; // 6 Task 7 Software Interrupt Force
Uint16 TASK8:1; // 7 Task 8 Software Interrupt Force
Uint16 rsvd1:8; // 15:8 Reserved
Uint16 rsvd2:16; // 31:16 Reserved
};
union SOFTINTFRC_REG {
Uint32 all;
struct SOFTINTFRC_BITS bit;
};
struct CLA_SOFTINT_REGS {
union SOFTINTEN_REG SOFTINTEN; // CLA Software Interrupt Enable Register
union SOFTINTFRC_REG SOFTINTFRC; // CLA Software Interrupt Force Register
};
//---------------------------------------------------------------------------
// CLA External References & Function Declarations:
//
#ifdef CPU1
extern volatile struct CLA_SOFTINT_REGS Cla1SoftIntRegs;
extern volatile struct CLA_REGS Cla1Regs;
#endif
#ifdef CPU2
extern volatile struct CLA_SOFTINT_REGS Cla1SoftIntRegs;
extern volatile struct CLA_REGS Cla1Regs;
#endif
#ifdef __cplusplus
}
#endif /* extern "C" */
#endif
//===========================================================================
// End of file.
//===========================================================================
|