source: rtems/c/src/lib/libbsp/arm/tms570/include/ti_herc/reg_dmm.h @ bea49c9

4.11
Last change on this file since bea49c9 was bea49c9, checked in by Premysl Houdek <kom541000@…>, on Jul 16, 2015 at 2:26:09 PM

bsp/tms570: New/generated header files for TMS570 SoC peripherals registers.

The header files are generated by script make_header.py.
Current script's version can be found at:

https://github.com/AoLaD/rtems-tms570-utils/tree/headers/headers/python

Registers offsets and fields have been extracted from reference manual.

Signed-off-by: Premysl Houdek <kom541000@…>

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