RTEMS
6.1-rc4
Loading...
Searching...
No Matches
bsps
arm
tms570
include
bsp
ti_herc
reg_dmm.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: BSD-2-Clause */
2
11
/* The header file is generated by make_header.py from DMM.json */
12
/* Current script's version can be found at: */
13
/* https://github.com/AoLaD/rtems-tms570-utils/tree/headers/headers/python */
14
15
/*
16
* Copyright (c) 2014-2015, Premysl Houdek <kom541000@gmail.com>
17
*
18
* Czech Technical University in Prague
19
* Zikova 1903/4
20
* 166 36 Praha 6
21
* Czech Republic
22
*
23
* All rights reserved.
24
*
25
* Redistribution and use in source and binary forms, with or without
26
* modification, are permitted provided that the following conditions are met:
27
*
28
* 1. Redistributions of source code must retain the above copyright notice, this
29
* list of conditions and the following disclaimer.
30
* 2. Redistributions in binary form must reproduce the above copyright notice,
31
* this list of conditions and the following disclaimer in the documentation
32
* and/or other materials provided with the distribution.
33
*
34
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
35
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
36
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
37
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
38
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
39
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
40
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
41
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
42
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
43
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
44
*
45
* The views and conclusions contained in the software and documentation are those
46
* of the authors and should not be interpreted as representing official policies,
47
* either expressed or implied, of the FreeBSD Project.
48
*/
49
#ifndef LIBBSP_ARM_TMS570_DMM
50
#define LIBBSP_ARM_TMS570_DMM
51
52
#include <
bsp/utility.h
>
53
54
typedef
struct
{
55
uint32_t GLBCTRL;
/*DMM Global Control Register*/
56
uint32_t INTSET;
/*DMM Interrupt Set Register*/
57
uint32_t INTCLR;
/*DMM Interrupt Clear Register*/
58
uint32_t INTLVL;
/*DMM Interrupt Level Register*/
59
uint32_t INTFLG;
/*DMM Interrupt Flag Register*/
60
uint32_t OFF1;
/*DMM Interrupt Offset 1 Register*/
61
uint32_t OFF2;
/*DMM Interrupt Offset 2 Register*/
62
uint32_t DDMDEST;
/*DMM Direct Data Mode Destination Register*/
63
uint32_t DDMBL;
/*DMM Direct Data Mode Blocksize Register*/
64
uint32_t DDMPT;
/*DMM Direct Data Mode Pointer Register*/
65
uint32_t INTPT;
/*DMM Direct Data Mode Interrupt Pointer Register*/
66
uint32_t DEST0REG1;
/*DMM Destination 0 Region 1*/
67
uint32_t DEST0BL1;
/*DMM Destination 0 Blocksize 1*/
68
uint32_t DEST0REG2;
/*DMM Destination 0 Region 2*/
69
uint32_t DEST0BL2;
/*DMM Destination 0 Blocksize 2*/
70
uint32_t DEST1REG1;
/*DMM Destination 1 Region 1*/
71
uint32_t DEST1BL1;
/*DMM Destination 1 Blocksize 1*/
72
uint32_t DEST1REG2;
/*DMM Destination 1 Region 2*/
73
uint32_t DEST1BL2;
/*DMM Destination 1 Blocksize 2*/
74
uint32_t DEST2REG1;
/*DMM Destination 2 Region 1*/
75
uint32_t DEST2BL1;
/*DMM Destination 2 Blocksize 1*/
76
uint32_t DEST2REG2;
/*DMM Destination 2 Region 2*/
77
uint32_t DEST2BL2;
/*DMM Destination 2 Blocksize 2*/
78
uint32_t DEST3REG1;
/*DMM Destination 3 Region 1*/
79
uint32_t DEST3BL1;
/*DMM Destination 3 Blocksize 1*/
80
uint32_t DEST3REG2;
/*DMM Destination 3 Region 2*/
81
uint32_t DEST3BL2;
/*DMM Destination 3 Blocksize 2*/
82
uint32_t PC0;
/*DMM Pin Control 0*/
83
uint32_t PC1;
/*DMM Pin Control 1*/
84
uint32_t PC2;
/*DMM Pin Control 2*/
85
uint32_t PC3;
/*DMM Pin Control 3*/
86
uint32_t PC4;
/*DMM Pin Control 4*/
87
uint32_t PC5;
/*DMM Pin Control 5*/
88
uint32_t PC6;
/*DMM Pin Control 6*/
89
uint32_t PC7;
/*DMM Pin Control 7*/
90
uint32_t PC8;
/*DMM Pin Control 8*/
91
}
tms570_dmm_t
;
92
93
94
/*---------------------TMS570_DMM_GLBCTRL---------------------*/
95
/* field: BUSY - Busy indicator. */
96
#define TMS570_DMM_GLBCTRL_BUSY BSP_BIT32(24)
97
98
/* field: CONTCLK - Continuous DMMCLK input. */
99
#define TMS570_DMM_GLBCTRL_CONTCLK BSP_BIT32(18)
100
101
/* field: COS - Continue on suspend. Influences behavior of module while in debug mode. */
102
#define TMS570_DMM_GLBCTRL_COS BSP_BIT32(17)
103
104
/* field: RESET - Reset. */
105
#define TMS570_DMM_GLBCTRL_RESET BSP_BIT32(16)
106
107
/* field: DDM_WIDTH - Packet Width in direct data mode. */
108
#define TMS570_DMM_GLBCTRL_DDM_WIDTH(val) BSP_FLD32(val,9, 10)
109
#define TMS570_DMM_GLBCTRL_DDM_WIDTH_GET(reg) BSP_FLD32GET(reg,9, 10)
110
#define TMS570_DMM_GLBCTRL_DDM_WIDTH_SET(reg,val) BSP_FLD32SET(reg, val,9, 10)
111
112
/* field: TM_DMM - Packet Format. */
113
#define TMS570_DMM_GLBCTRL_TM_DMM BSP_BIT32(8)
114
115
/* field: ON_OFF - Switch module on or off */
116
#define TMS570_DMM_GLBCTRL_ON_OFF(val) BSP_FLD32(val,0, 3)
117
#define TMS570_DMM_GLBCTRL_ON_OFF_GET(reg) BSP_FLD32GET(reg,0, 3)
118
#define TMS570_DMM_GLBCTRL_ON_OFF_SET(reg,val) BSP_FLD32SET(reg, val,0, 3)
119
120
121
/*---------------------TMS570_DMM_INTSET---------------------*/
122
/* field: PROG_BUFF - Programmable Buffer Interrupt Set. */
123
#define TMS570_DMM_INTSET_PROG_BUFF BSP_BIT32(17)
124
125
/* field: EO_BUFF - EO_BUFF */
126
#define TMS570_DMM_INTSET_EO_BUFF BSP_BIT32(16)
127
128
/* field: DEST3REG2 - Destination 3 Region 2 Interrupt Set. */
129
#define TMS570_DMM_INTSET_DEST3REG2 BSP_BIT32(15)
130
131
/* field: DEST3REG1 - Destination 3 Region 1 Interrupt Set. */
132
#define TMS570_DMM_INTSET_DEST3REG1 BSP_BIT32(14)
133
134
/* field: DEST2REG2 - Destination 2 Region 2 Interrupt Set. */
135
#define TMS570_DMM_INTSET_DEST2REG2 BSP_BIT32(13)
136
137
/* field: DEST2REG1 - Destination 2 Region 1 Interrupt Set. */
138
#define TMS570_DMM_INTSET_DEST2REG1 BSP_BIT32(12)
139
140
/* field: DEST1REG2 - Destination 1 Region 2 Interrupt Set. */
141
#define TMS570_DMM_INTSET_DEST1REG2 BSP_BIT32(11)
142
143
/* field: DEST1REG1 - DEST1REG1 */
144
#define TMS570_DMM_INTSET_DEST1REG1 BSP_BIT32(10)
145
146
/* field: DEST0REG2 - Destination 0 Region 2 Interrupt Set. */
147
#define TMS570_DMM_INTSET_DEST0REG2 BSP_BIT32(9)
148
149
/* field: DEST0REG1 - Destination 0 Region 1 Interrupt Set. */
150
#define TMS570_DMM_INTSET_DEST0REG1 BSP_BIT32(8)
151
152
/* field: BUSERROR - Bus Error Response for errors generated when doing internal bus transfers. */
153
#define TMS570_DMM_INTSET_BUSERROR BSP_BIT32(7)
154
155
/* field: BUFF_OVF - Buffer Overflow. */
156
#define TMS570_DMM_INTSET_BUFF_OVF BSP_BIT32(6)
157
158
/* field: SRC_OVF - Source Overflow. */
159
#define TMS570_DMM_INTSET_SRC_OVF BSP_BIT32(5)
160
161
/* field: DEST3_ERR - Destination 3 Error. */
162
#define TMS570_DMM_INTSET_DEST3_ERR BSP_BIT32(4)
163
164
/* field: DEST2_ERR - Destination 2 Error Interrupt Set. */
165
#define TMS570_DMM_INTSET_DEST2_ERR BSP_BIT32(3)
166
167
/* field: DEST1_ERR - Destination 1 Error Interrupt Set. */
168
#define TMS570_DMM_INTSET_DEST1_ERR BSP_BIT32(2)
169
170
/* field: DEST0_ERR - Destination 0 Error Interrupt Set. */
171
#define TMS570_DMM_INTSET_DEST0_ERR BSP_BIT32(1)
172
173
/* field: PACKET_ERR_INT - Packet Error. */
174
#define TMS570_DMM_INTSET_PACKET_ERR_INT BSP_BIT32(0)
175
176
177
/*---------------------TMS570_DMM_INTCLR---------------------*/
178
/* field: PROG_BUFF - Programmable Buffer Interrupt Set. */
179
#define TMS570_DMM_INTCLR_PROG_BUFF BSP_BIT32(17)
180
181
/* field: EO_BUFF - End of Buffer Interrupt Set. */
182
#define TMS570_DMM_INTCLR_EO_BUFF BSP_BIT32(16)
183
184
/* field: DEST3REG2 - was accessed at the startaddress of Destination 3 Region 2. */
185
#define TMS570_DMM_INTCLR_DEST3REG2 BSP_BIT32(15)
186
187
/* field: DEST3REG1 - Destination 3 Region 1 Interrupt Set. */
188
#define TMS570_DMM_INTCLR_DEST3REG1 BSP_BIT32(14)
189
190
/* field: DEST2REG2 - Destination 2 Region 2 Interrupt Set. */
191
#define TMS570_DMM_INTCLR_DEST2REG2 BSP_BIT32(13)
192
193
/* field: DEST2REG1 - Destination 2 Region 1 Interrupt Set. */
194
#define TMS570_DMM_INTCLR_DEST2REG1 BSP_BIT32(12)
195
196
/* field: DEST1REG2 - Destination 1 Region 2 Interrupt Set. */
197
#define TMS570_DMM_INTCLR_DEST1REG2 BSP_BIT32(11)
198
199
/* field: DEST1REG1 - Destination 1 Region 1 Interrupt Set. */
200
#define TMS570_DMM_INTCLR_DEST1REG1 BSP_BIT32(10)
201
202
/* field: DEST0REG2 - Destination 0 Region 2 Interrupt Set. */
203
#define TMS570_DMM_INTCLR_DEST0REG2 BSP_BIT32(9)
204
205
/* field: DEST0REG1 - Destination 0 Region 1 Interrupt Set. */
206
#define TMS570_DMM_INTCLR_DEST0REG1 BSP_BIT32(8)
207
208
/* field: BUSERROR - Bus Error Response for errors generated when doing internal bus transfers. */
209
#define TMS570_DMM_INTCLR_BUSERROR BSP_BIT32(7)
210
211
/* field: BUFF_OVF - Buffer Overflow. */
212
#define TMS570_DMM_INTCLR_BUFF_OVF BSP_BIT32(6)
213
214
/* field: SRC_OVF - Source Overflow. */
215
#define TMS570_DMM_INTCLR_SRC_OVF BSP_BIT32(5)
216
217
/* field: DEST3_ERR - Destination 3 Error. */
218
#define TMS570_DMM_INTCLR_DEST3_ERR BSP_BIT32(4)
219
220
/* field: DEST2_ERR - Destination 2 Error Interrupt Set. */
221
#define TMS570_DMM_INTCLR_DEST2_ERR BSP_BIT32(3)
222
223
/* field: DEST1_ERR - Destination 1 Error Interrupt Set. */
224
#define TMS570_DMM_INTCLR_DEST1_ERR BSP_BIT32(2)
225
226
/* field: DEST0_ERR - Destination 0 Error Interrupt Set. */
227
#define TMS570_DMM_INTCLR_DEST0_ERR BSP_BIT32(1)
228
229
/* field: PACKET_ERR_INT - Packet Error. */
230
#define TMS570_DMM_INTCLR_PACKET_ERR_INT BSP_BIT32(0)
231
232
233
/*---------------------TMS570_DMM_INTLVL---------------------*/
234
/* field: PROG_BUFF - Programmable Buffer Interrupt Level */
235
#define TMS570_DMM_INTLVL_PROG_BUFF BSP_BIT32(17)
236
237
/* field: EO_BUFF - End of Buffer Interrupt Level */
238
#define TMS570_DMM_INTLVL_EO_BUFF BSP_BIT32(16)
239
240
/* field: DEST3REG2 - Destination 3 Region 2 Interrupt Level */
241
#define TMS570_DMM_INTLVL_DEST3REG2 BSP_BIT32(15)
242
243
/* field: DEST3REG1 - Destination 3 Region 1 Interrupt Level */
244
#define TMS570_DMM_INTLVL_DEST3REG1 BSP_BIT32(14)
245
246
/* field: DEST2REG2 - Destination 2 Region 2 Interrupt Level */
247
#define TMS570_DMM_INTLVL_DEST2REG2 BSP_BIT32(13)
248
249
/* field: DEST2REG1 - Destination 2 Region 1 Interrupt Level */
250
#define TMS570_DMM_INTLVL_DEST2REG1 BSP_BIT32(12)
251
252
/* field: DEST1REG2 - Destination 1 Region 2 Interrupt Level */
253
#define TMS570_DMM_INTLVL_DEST1REG2 BSP_BIT32(11)
254
255
/* field: DEST1REG1 - Destination 1 Region 1 Interrupt Level */
256
#define TMS570_DMM_INTLVL_DEST1REG1 BSP_BIT32(10)
257
258
/* field: DEST0REG2 - Destination 0 Region 2 Interrupt Level */
259
#define TMS570_DMM_INTLVL_DEST0REG2 BSP_BIT32(9)
260
261
/* field: DEST0REG1 - Destination 0 Region 1 Interrupt Level */
262
#define TMS570_DMM_INTLVL_DEST0REG1 BSP_BIT32(8)
263
264
/* field: BUSERROR - BMM Bus Error Response */
265
#define TMS570_DMM_INTLVL_BUSERROR BSP_BIT32(7)
266
267
/* field: BUFF_OVF - Write Buffer Overflow Interrupt Level */
268
#define TMS570_DMM_INTLVL_BUFF_OVF BSP_BIT32(6)
269
270
/* field: SRC_OVF - Source Overflow Interrupt Level */
271
#define TMS570_DMM_INTLVL_SRC_OVF BSP_BIT32(5)
272
273
/* field: DEST3_ERR - Destination 3 Error Interrupt Level */
274
#define TMS570_DMM_INTLVL_DEST3_ERR BSP_BIT32(4)
275
276
/* field: DEST2_ERR - Destination 2 Error Interrupt Level */
277
#define TMS570_DMM_INTLVL_DEST2_ERR BSP_BIT32(3)
278
279
/* field: DEST1_ERR - Destination 1 Error Interrupt Level */
280
#define TMS570_DMM_INTLVL_DEST1_ERR BSP_BIT32(2)
281
282
/* field: DEST0_ERR - Destination 0 Error Interrupt Level */
283
#define TMS570_DMM_INTLVL_DEST0_ERR BSP_BIT32(1)
284
285
/* field: PACKET_ERR_INT - Packet Error Interrupt Level */
286
#define TMS570_DMM_INTLVL_PACKET_ERR_INT BSP_BIT32(0)
287
288
289
/*---------------------TMS570_DMM_INTFLG---------------------*/
290
/* field: PROG_BUFF - Programmable Buffer Interrupt Flag */
291
#define TMS570_DMM_INTFLG_PROG_BUFF BSP_BIT32(17)
292
293
/* field: EO_BUFF - End of Buffer Interrupt Flag */
294
#define TMS570_DMM_INTFLG_EO_BUFF BSP_BIT32(16)
295
296
/* field: DEST3REG2 - Destination 3 Region 2 Interrupt Flag */
297
#define TMS570_DMM_INTFLG_DEST3REG2 BSP_BIT32(15)
298
299
/* field: DEST3REG1 - Destination 3 Region 1 Interrupt Flag */
300
#define TMS570_DMM_INTFLG_DEST3REG1 BSP_BIT32(14)
301
302
/* field: DEST2REG2 - Destination 2 Region 2 Interrupt Flag */
303
#define TMS570_DMM_INTFLG_DEST2REG2 BSP_BIT32(13)
304
305
/* field: DEST2REG1 - Destination 2 Region 1 Interrupt Flag */
306
#define TMS570_DMM_INTFLG_DEST2REG1 BSP_BIT32(12)
307
308
/* field: DEST1REG2 - Destination 1 Region 2 Interrupt Flag */
309
#define TMS570_DMM_INTFLG_DEST1REG2 BSP_BIT32(11)
310
311
/* field: DEST1REG1 - Destination 1 Region 1 Interrupt Flag */
312
#define TMS570_DMM_INTFLG_DEST1REG1 BSP_BIT32(10)
313
314
/* field: DEST0REG2 - Destination 0 Region 2 Interrupt Flag */
315
#define TMS570_DMM_INTFLG_DEST0REG2 BSP_BIT32(9)
316
317
/* field: DEST0REG1 - Destination 0 Region 1 Interrupt Flag */
318
#define TMS570_DMM_INTFLG_DEST0REG1 BSP_BIT32(8)
319
320
/* field: BUSERROR - BMM Bus Error Response. */
321
#define TMS570_DMM_INTFLG_BUSERROR BSP_BIT32(7)
322
323
/* field: BUFF_OVF - Write Buffer Overflow Interrupt Flag */
324
#define TMS570_DMM_INTFLG_BUFF_OVF BSP_BIT32(6)
325
326
/* field: SRC_OVF - Source Overflow Interrupt Flag */
327
#define TMS570_DMM_INTFLG_SRC_OVF BSP_BIT32(5)
328
329
/* field: DEST3_ERR - Destination 3 Error Interrupt Flag */
330
#define TMS570_DMM_INTFLG_DEST3_ERR BSP_BIT32(4)
331
332
/* field: DEST2_ERR - Destination 2 Error Interrupt Flag */
333
#define TMS570_DMM_INTFLG_DEST2_ERR BSP_BIT32(3)
334
335
/* field: DEST1_ERR - Destination 1 Error Interrupt Flag */
336
#define TMS570_DMM_INTFLG_DEST1_ERR BSP_BIT32(2)
337
338
/* field: DEST0_ERR - Destination 0 Error Interrupt Flag */
339
#define TMS570_DMM_INTFLG_DEST0_ERR BSP_BIT32(1)
340
341
/* field: PACKET_ERR_INT - Packet Error Interrupt Flag */
342
#define TMS570_DMM_INTFLG_PACKET_ERR_INT BSP_BIT32(0)
343
344
345
/*----------------------TMS570_DMM_OFF1----------------------*/
346
/* field: OFFSET - User and privilege mode (read): */
347
#define TMS570_DMM_OFF1_OFFSET(val) BSP_FLD32(val,0, 4)
348
#define TMS570_DMM_OFF1_OFFSET_GET(reg) BSP_FLD32GET(reg,0, 4)
349
#define TMS570_DMM_OFF1_OFFSET_SET(reg,val) BSP_FLD32SET(reg, val,0, 4)
350
351
352
/*----------------------TMS570_DMM_OFF2----------------------*/
353
/* field: OFFSET - User and privilege mode (read): */
354
#define TMS570_DMM_OFF2_OFFSET(val) BSP_FLD32(val,0, 4)
355
#define TMS570_DMM_OFF2_OFFSET_GET(reg) BSP_FLD32GET(reg,0, 4)
356
#define TMS570_DMM_OFF2_OFFSET_SET(reg,val) BSP_FLD32SET(reg, val,0, 4)
357
358
359
/*---------------------TMS570_DMM_DDMDEST---------------------*/
360
/* field: STARTADDR - These bits define the starting address of the buffer. */
361
/* Whole 32 bits */
362
363
/*----------------------TMS570_DMM_DDMBL----------------------*/
364
/* field: BLOCKSIZE - These bits define the size of the buffer region */
365
#define TMS570_DMM_DDMBL_BLOCKSIZE(val) BSP_FLD32(val,0, 3)
366
#define TMS570_DMM_DDMBL_BLOCKSIZE_GET(reg) BSP_FLD32GET(reg,0, 3)
367
#define TMS570_DMM_DDMBL_BLOCKSIZE_SET(reg,val) BSP_FLD32SET(reg, val,0, 3)
368
369
370
/*----------------------TMS570_DMM_DDMPT----------------------*/
371
/* field: POINTER - These bits hold the pointer to the next entry to be written in the buffer. */
372
#define TMS570_DMM_DDMPT_POINTER(val) BSP_FLD32(val,0, 14)
373
#define TMS570_DMM_DDMPT_POINTER_GET(reg) BSP_FLD32GET(reg,0, 14)
374
#define TMS570_DMM_DDMPT_POINTER_SET(reg,val) BSP_FLD32SET(reg, val,0, 14)
375
376
377
/*----------------------TMS570_DMM_INTPT----------------------*/
378
/* field: INTPT - Interrupt Pointer. When the buffer pointer (Section 30.3. */
379
#define TMS570_DMM_INTPT_INTPT(val) BSP_FLD32(val,0, 14)
380
#define TMS570_DMM_INTPT_INTPT_GET(reg) BSP_FLD32GET(reg,0, 14)
381
#define TMS570_DMM_INTPT_INTPT_SET(reg,val) BSP_FLD32SET(reg, val,0, 14)
382
383
384
/*--------------------TMS570_DMM_DESTxREG1--------------------*/
385
/* field: BASEADDR - These bits define the base address of the 256kB region where the buffer is located. */
386
#define TMS570_DMM_DESTxREG1_BASEADDR(val) BSP_FLD32(val,18, 31)
387
#define TMS570_DMM_DESTxREG1_BASEADDR_GET(reg) BSP_FLD32GET(reg,18, 31)
388
#define TMS570_DMM_DESTxREG1_BASEADDR_SET(reg,val) BSP_FLD32SET(reg, val,18, 31)
389
390
/* field: BLOCKADDR - These bits define the starting address of the buffer in the 256kB page. */
391
#define TMS570_DMM_DESTxREG1_BLOCKADDR(val) BSP_FLD32(val,0, 17)
392
#define TMS570_DMM_DESTxREG1_BLOCKADDR_GET(reg) BSP_FLD32GET(reg,0, 17)
393
#define TMS570_DMM_DESTxREG1_BLOCKADDR_SET(reg,val) BSP_FLD32SET(reg, val,0, 17)
394
395
396
/*--------------------TMS570_DMM_DESTxBL1--------------------*/
397
/* field: BLOCKSIZE - These bits define the length of the buffer region. */
398
#define TMS570_DMM_DESTxBL1_BLOCKSIZE(val) BSP_FLD32(val,0, 3)
399
#define TMS570_DMM_DESTxBL1_BLOCKSIZE_GET(reg) BSP_FLD32GET(reg,0, 3)
400
#define TMS570_DMM_DESTxBL1_BLOCKSIZE_SET(reg,val) BSP_FLD32SET(reg, val,0, 3)
401
402
403
/*--------------------TMS570_DMM_DESTxREG2--------------------*/
404
/* field: BASEADDR - These bits define the base address of the 256kB region where the buffer is located. */
405
#define TMS570_DMM_DESTxREG2_BASEADDR(val) BSP_FLD32(val,18, 31)
406
#define TMS570_DMM_DESTxREG2_BASEADDR_GET(reg) BSP_FLD32GET(reg,18, 31)
407
#define TMS570_DMM_DESTxREG2_BASEADDR_SET(reg,val) BSP_FLD32SET(reg, val,18, 31)
408
409
/* field: BLOCKADDR - These bits define the starting address of the buffer in the 256kB page. */
410
#define TMS570_DMM_DESTxREG2_BLOCKADDR(val) BSP_FLD32(val,0, 17)
411
#define TMS570_DMM_DESTxREG2_BLOCKADDR_GET(reg) BSP_FLD32GET(reg,0, 17)
412
#define TMS570_DMM_DESTxREG2_BLOCKADDR_SET(reg,val) BSP_FLD32SET(reg, val,0, 17)
413
414
415
/*--------------------TMS570_DMM_DESTxBL2--------------------*/
416
/* field: BLOCKSIZE - These bits define the length of the buffer region. */
417
#define TMS570_DMM_DESTxBL2_BLOCKSIZE(val) BSP_FLD32(val,0, 3)
418
#define TMS570_DMM_DESTxBL2_BLOCKSIZE_GET(reg) BSP_FLD32GET(reg,0, 3)
419
#define TMS570_DMM_DESTxBL2_BLOCKSIZE_SET(reg,val) BSP_FLD32SET(reg, val,0, 3)
420
421
422
/*-----------------------TMS570_DMM_PC0-----------------------*/
423
/* field: ENAFUNC - Functional mode of DMMENA pin. */
424
#define TMS570_DMM_PC0_ENAFUNC BSP_BIT32(18)
425
426
/* field: DATAxFUNC - Functional mode of DMMDATA[x] pin. */
427
#define TMS570_DMM_PC0_DATAxFUNC(val) BSP_FLD32(val,2, 17)
428
#define TMS570_DMM_PC0_DATAxFUNC_GET(reg) BSP_FLD32GET(reg,2, 17)
429
#define TMS570_DMM_PC0_DATAxFUNC_SET(reg,val) BSP_FLD32SET(reg, val,2, 17)
430
431
/* field: CLKFUNC - Functional mode of DMMCLK pin. */
432
#define TMS570_DMM_PC0_CLKFUNC BSP_BIT32(1)
433
434
/* field: SYNCFUNC - Functional mode of DMMSYNC pin. */
435
#define TMS570_DMM_PC0_SYNCFUNC BSP_BIT32(0)
436
437
438
/*-----------------------TMS570_DMM_PC1-----------------------*/
439
/* field: ENADIR - Direction of DMMENA pin. */
440
#define TMS570_DMM_PC1_ENADIR BSP_BIT32(18)
441
442
/* field: DATAxDIR - Direction of DMMDATA[x] pin. */
443
#define TMS570_DMM_PC1_DATAxDIR(val) BSP_FLD32(val,2, 17)
444
#define TMS570_DMM_PC1_DATAxDIR_GET(reg) BSP_FLD32GET(reg,2, 17)
445
#define TMS570_DMM_PC1_DATAxDIR_SET(reg,val) BSP_FLD32SET(reg, val,2, 17)
446
447
/* field: CLKDIR - Direction of DMMCLK pin. */
448
#define TMS570_DMM_PC1_CLKDIR BSP_BIT32(1)
449
450
/* field: SYNCDIR - Direction of DMMSYNC pin. */
451
#define TMS570_DMM_PC1_SYNCDIR BSP_BIT32(0)
452
453
454
/*-----------------------TMS570_DMM_PC2-----------------------*/
455
/* field: ENAIN - DMMENA input. This bit reflects the state of the pin in all modes. */
456
#define TMS570_DMM_PC2_ENAIN BSP_BIT32(18)
457
458
/* field: DATAxIN - DMMDATA[x] input. This bit reflects the state of the pin in all modes. */
459
#define TMS570_DMM_PC2_DATAxIN(val) BSP_FLD32(val,2, 17)
460
#define TMS570_DMM_PC2_DATAxIN_GET(reg) BSP_FLD32GET(reg,2, 17)
461
#define TMS570_DMM_PC2_DATAxIN_SET(reg,val) BSP_FLD32SET(reg, val,2, 17)
462
463
/* field: CLKIN - DMMCLK input. This bit reflects the state of the pin in all modes. */
464
#define TMS570_DMM_PC2_CLKIN BSP_BIT32(1)
465
466
/* field: SYNCIN - DMMSYNC input. */
467
#define TMS570_DMM_PC2_SYNCIN BSP_BIT32(0)
468
469
470
/*-----------------------TMS570_DMM_PC3-----------------------*/
471
/* field: ENAOUT - Output state of DMMENA pin. */
472
#define TMS570_DMM_PC3_ENAOUT BSP_BIT32(18)
473
474
/* field: DATAxOUT - Output state of DMMDATA[x] pin. This bit sets the pin to logic low or high level. */
475
#define TMS570_DMM_PC3_DATAxOUT(val) BSP_FLD32(val,2, 17)
476
#define TMS570_DMM_PC3_DATAxOUT_GET(reg) BSP_FLD32GET(reg,2, 17)
477
#define TMS570_DMM_PC3_DATAxOUT_SET(reg,val) BSP_FLD32SET(reg, val,2, 17)
478
479
/* field: CLKOUT - Output state of DMMCLK pin. */
480
#define TMS570_DMM_PC3_CLKOUT BSP_BIT32(1)
481
482
/* field: SYNCOUT - Output state of DMMSYNC pin. This bit sets the pin to logic low or high level. */
483
#define TMS570_DMM_PC3_SYNCOUT BSP_BIT32(0)
484
485
486
/*-----------------------TMS570_DMM_PC4-----------------------*/
487
/* field: ENASET - control register bit to 1 regardless of the current value in the ENAOUT bit. */
488
#define TMS570_DMM_PC4_ENASET BSP_BIT32(18)
489
490
/* field: DATAxSET - Sets output state of DMMDATA[x] pin to logic high. */
491
#define TMS570_DMM_PC4_DATAxSET(val) BSP_FLD32(val,2, 17)
492
#define TMS570_DMM_PC4_DATAxSET_GET(reg) BSP_FLD32GET(reg,2, 17)
493
#define TMS570_DMM_PC4_DATAxSET_SET(reg,val) BSP_FLD32SET(reg, val,2, 17)
494
495
/* field: CLKSET - Sets output state of DMMCLK pin to logic high. */
496
#define TMS570_DMM_PC4_CLKSET BSP_BIT32(1)
497
498
/* field: SYNCSET - Sets output state of DMMSYNC pin logic high. */
499
#define TMS570_DMM_PC4_SYNCSET BSP_BIT32(0)
500
501
502
/*-----------------------TMS570_DMM_PC5-----------------------*/
503
/* field: ENACLR - Sets output state of DMMENA pin to logic low. */
504
#define TMS570_DMM_PC5_ENACLR BSP_BIT32(18)
505
506
/* field: DATAxCLR - Sets output state of DMMDATA[x] pin to logic low. */
507
#define TMS570_DMM_PC5_DATAxCLR(val) BSP_FLD32(val,2, 17)
508
#define TMS570_DMM_PC5_DATAxCLR_GET(reg) BSP_FLD32GET(reg,2, 17)
509
#define TMS570_DMM_PC5_DATAxCLR_SET(reg,val) BSP_FLD32SET(reg, val,2, 17)
510
511
/* field: CLKCLR - Sets output state of DMMCLK pin to logic low. */
512
#define TMS570_DMM_PC5_CLKCLR BSP_BIT32(1)
513
514
/* field: SYNCCLR - Sets output state of DMMSYNC pin to logic low. */
515
#define TMS570_DMM_PC5_SYNCCLR BSP_BIT32(0)
516
517
518
/*-----------------------TMS570_DMM_PC6-----------------------*/
519
/* field: ENAPDR - Open Drain enable. */
520
#define TMS570_DMM_PC6_ENAPDR BSP_BIT32(18)
521
522
/* field: DATAxPDR - Open Drain enable. */
523
#define TMS570_DMM_PC6_DATAxPDR(val) BSP_FLD32(val,2, 17)
524
#define TMS570_DMM_PC6_DATAxPDR_GET(reg) BSP_FLD32GET(reg,2, 17)
525
#define TMS570_DMM_PC6_DATAxPDR_SET(reg,val) BSP_FLD32SET(reg, val,2, 17)
526
527
/* field: CLKPDR - Open Drain enable. */
528
#define TMS570_DMM_PC6_CLKPDR BSP_BIT32(1)
529
530
/* field: SYNCPDR - Open Drain enable. */
531
#define TMS570_DMM_PC6_SYNCPDR BSP_BIT32(0)
532
533
534
/*-----------------------TMS570_DMM_PC7-----------------------*/
535
/* field: ENAPDIS - Pull disable. */
536
#define TMS570_DMM_PC7_ENAPDIS BSP_BIT32(18)
537
538
/* field: DATAxPDIS - Pull disable. */
539
#define TMS570_DMM_PC7_DATAxPDIS(val) BSP_FLD32(val,2, 17)
540
#define TMS570_DMM_PC7_DATAxPDIS_GET(reg) BSP_FLD32GET(reg,2, 17)
541
#define TMS570_DMM_PC7_DATAxPDIS_SET(reg,val) BSP_FLD32SET(reg, val,2, 17)
542
543
/* field: CLKPDIS - Pull disable. */
544
#define TMS570_DMM_PC7_CLKPDIS BSP_BIT32(1)
545
546
/* field: SYNCPDIS - Pull disable. */
547
#define TMS570_DMM_PC7_SYNCPDIS BSP_BIT32(0)
548
549
550
/*-----------------------TMS570_DMM_PC8-----------------------*/
551
/* field: ENAPSEL - Pull disable. */
552
#define TMS570_DMM_PC8_ENAPSEL BSP_BIT32(18)
553
554
/* field: DATAxPSEL - Pull disable. */
555
#define TMS570_DMM_PC8_DATAxPSEL(val) BSP_FLD32(val,2, 17)
556
#define TMS570_DMM_PC8_DATAxPSEL_GET(reg) BSP_FLD32GET(reg,2, 17)
557
#define TMS570_DMM_PC8_DATAxPSEL_SET(reg,val) BSP_FLD32SET(reg, val,2, 17)
558
559
/* field: CLKPSEL - Pull disable. */
560
#define TMS570_DMM_PC8_CLKPSEL BSP_BIT32(1)
561
562
/* field: SYNCPSEL - Pull disable. */
563
#define TMS570_DMM_PC8_SYNCPSEL BSP_BIT32(0)
564
565
566
567
#endif
/* LIBBSP_ARM_TMS570_DMM */
utility.h
This header file provides utility macros for BSPs.
tms570_dmm_t
Definition:
reg_dmm.h:54
Generated by
1.9.6