RTEMS: bsps/arm/tms570/include/bsp/ti_herc/reg_gio.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
reg_gio.h
1/* The header file is generated by make_header.py from GIO.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_GIO
40#define LIBBSP_ARM_TMS570_GIO
41
42#include <bsp/utility.h>
43
44 typedef struct{
45 uint32_t DIR; /*GIO Data Direction Register*/
46 uint32_t DIN; /*GIO Data Input Register*/
47 uint32_t DOUT; /*GIO Data Output Register*/
48 uint32_t DSET; /*GIO Data Set Register*/
49 uint32_t DCLR; /*GIO Data Clear Register*/
50 uint32_t PDR; /*GIO Open Drain Register*/
51 uint32_t PULDIS; /*GIO Pull Disable Register*/
52 uint32_t PSL; /*GIO Pull Select Register*/
53} tms570_gio_port_t;
54
55 typedef struct{
56 uint32_t GCR0; /*GIO Global Control Register*/
57 uint8_t reserved1 [4];
58 uint32_t INTDET; /*GIO Interrupt Detect Register*/
59 uint32_t POL; /*GIO Interrupt Polarity Register*/
60 uint32_t ENASET; /*GIO Interrupt Enable Set Register*/
61 uint32_t ENACLR; /*GIO Interrupt Enable Clear Register*/
62 uint32_t LVLSET; /*GIO Interrupt Priority Set Register*/
63 uint32_t LVLCLR; /*GIO Interrupt Priority Clear Register*/
64 uint32_t FLG; /*GIO Interrupt Flag Register*/
65 uint32_t OFF1; /*GIO Offset 1 Register*/
66 uint32_t OFF2; /*GIO Offset 2 Register*/
67 uint32_t EMU1; /*GIO Emulation 1 Register*/
68 uint32_t EMU2; /*GIO Emulation 2 Register*/
69 tms570_gio_port_t ports[8]; /*GIO ports*/
70} tms570_gio_t;
71
72
73/*-----------------------TMS570_GIO_DIR-----------------------*/
74/* field: GIODIR - GIO data direction, pins [7:0] */
75#define TMS570_GIO_DIR_GIODIR(val) BSP_FLD32(val,0, 7)
76#define TMS570_GIO_DIR_GIODIR_GET(reg) BSP_FLD32GET(reg,0, 7)
77#define TMS570_GIO_DIR_GIODIR_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
78
79
80/*-----------------------TMS570_GIO_DIN-----------------------*/
81/* field: GIODIN - GIO data input, pins [7:0] */
82#define TMS570_GIO_DIN_GIODIN(val) BSP_FLD32(val,0, 7)
83#define TMS570_GIO_DIN_GIODIN_GET(reg) BSP_FLD32GET(reg,0, 7)
84#define TMS570_GIO_DIN_GIODIN_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
85
86
87/*----------------------TMS570_GIO_DOUT----------------------*/
88/* field: GIODOUT - IO data output, pins[7:0]. */
89#define TMS570_GIO_DOUT_GIODOUT(val) BSP_FLD32(val,0, 7)
90#define TMS570_GIO_DOUT_GIODOUT_GET(reg) BSP_FLD32GET(reg,0, 7)
91#define TMS570_GIO_DOUT_GIODOUT_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
92
93
94/*----------------------TMS570_GIO_DSET----------------------*/
95/* field: GIODSET - GIO data set, pins[7:0]. This bit drives the output of GIO pin high. */
96#define TMS570_GIO_DSET_GIODSET(val) BSP_FLD32(val,0, 7)
97#define TMS570_GIO_DSET_GIODSET_GET(reg) BSP_FLD32GET(reg,0, 7)
98#define TMS570_GIO_DSET_GIODSET_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
99
100
101/*----------------------TMS570_GIO_DCLR----------------------*/
102/* field: GIODCLR - GIO data clear, pins[7:0]. This bit drives the output of GIO pin low. */
103#define TMS570_GIO_DCLR_GIODCLR(val) BSP_FLD32(val,0, 7)
104#define TMS570_GIO_DCLR_GIODCLR_GET(reg) BSP_FLD32GET(reg,0, 7)
105#define TMS570_GIO_DCLR_GIODCLR_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
106
107
108/*-----------------------TMS570_GIO_PDR-----------------------*/
109/* field: 7_0 - GIOPDRH GIO open drain, pins[7:0] */
110#define TMS570_GIO_PDR_7_0(val) BSP_FLD32(val,0, 7)
111#define TMS570_GIO_PDR_7_0_GET(reg) BSP_FLD32GET(reg,0, 7)
112#define TMS570_GIO_PDR_7_0_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
113
114
115/*---------------------TMS570_GIO_PULDIS---------------------*/
116/* field: GIOPULDIS - GIO pull disable, pins[7:0]. */
117#define TMS570_GIO_PULDIS_GIOPULDIS(val) BSP_FLD32(val,0, 7)
118#define TMS570_GIO_PULDIS_GIOPULDIS_GET(reg) BSP_FLD32GET(reg,0, 7)
119#define TMS570_GIO_PULDIS_GIOPULDIS_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
120
121
122/*-----------------------TMS570_GIO_PSL-----------------------*/
123/* field: GIOPSL - GIO pull select, pins[7:0] */
124#define TMS570_GIO_PSL_GIOPSL(val) BSP_FLD32(val,0, 7)
125#define TMS570_GIO_PSL_GIOPSL_GET(reg) BSP_FLD32GET(reg,0, 7)
126#define TMS570_GIO_PSL_GIOPSL_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
127
128
129/*----------------------TMS570_GIO_GCR0----------------------*/
130/* field: RESET - GIO reset. */
131#define TMS570_GIO_GCR0_RESET BSP_BIT32(0)
132
133
134/*---------------------TMS570_GIO_INTDET---------------------*/
135/* field: GIOINTDET_3 - Interrupt detection select for pins GIOD[7:0] */
136#define TMS570_GIO_INTDET_GIOINTDET_3(val) BSP_FLD32(val,24, 31)
137#define TMS570_GIO_INTDET_GIOINTDET_3_GET(reg) BSP_FLD32GET(reg,24, 31)
138#define TMS570_GIO_INTDET_GIOINTDET_3_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
139
140/* field: GIOINTDET_2 - Interrupt detection select for pins GIOC[7:0] */
141#define TMS570_GIO_INTDET_GIOINTDET_2(val) BSP_FLD32(val,16, 23)
142#define TMS570_GIO_INTDET_GIOINTDET_2_GET(reg) BSP_FLD32GET(reg,16, 23)
143#define TMS570_GIO_INTDET_GIOINTDET_2_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
144
145/* field: GIOINTDET_1 - Interrupt detection select for pins GIOB[7:0] */
146#define TMS570_GIO_INTDET_GIOINTDET_1(val) BSP_FLD32(val,8, 15)
147#define TMS570_GIO_INTDET_GIOINTDET_1_GET(reg) BSP_FLD32GET(reg,8, 15)
148#define TMS570_GIO_INTDET_GIOINTDET_1_SET(reg,val) BSP_FLD32SET(reg, val,8, 15)
149
150/* field: GIOINTDET_0 - Interrupt detection select for pins GIOA[7:0] */
151#define TMS570_GIO_INTDET_GIOINTDET_0(val) BSP_FLD32(val,0, 7)
152#define TMS570_GIO_INTDET_GIOINTDET_0_GET(reg) BSP_FLD32GET(reg,0, 7)
153#define TMS570_GIO_INTDET_GIOINTDET_0_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
154
155
156/*-----------------------TMS570_GIO_POL-----------------------*/
157/* field: GIOPOL_3 - Interrupt polarity select for pins GIOD[7:0] */
158#define TMS570_GIO_POL_GIOPOL_3(val) BSP_FLD32(val,24, 31)
159#define TMS570_GIO_POL_GIOPOL_3_GET(reg) BSP_FLD32GET(reg,24, 31)
160#define TMS570_GIO_POL_GIOPOL_3_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
161
162/* field: GIOPOL_2 - Interrupt polarity select for pins GIOC[7:0] */
163#define TMS570_GIO_POL_GIOPOL_2(val) BSP_FLD32(val,16, 23)
164#define TMS570_GIO_POL_GIOPOL_2_GET(reg) BSP_FLD32GET(reg,16, 23)
165#define TMS570_GIO_POL_GIOPOL_2_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
166
167/* field: GIOPOL_1 - Interrupt polarity select for pins GIOB[7:0] */
168#define TMS570_GIO_POL_GIOPOL_1(val) BSP_FLD32(val,8, 15)
169#define TMS570_GIO_POL_GIOPOL_1_GET(reg) BSP_FLD32GET(reg,8, 15)
170#define TMS570_GIO_POL_GIOPOL_1_SET(reg,val) BSP_FLD32SET(reg, val,8, 15)
171
172/* field: GIOPOL_0 - Interrupt polarity select for pins GIOA[7:0] */
173#define TMS570_GIO_POL_GIOPOL_0(val) BSP_FLD32(val,0, 7)
174#define TMS570_GIO_POL_GIOPOL_0_GET(reg) BSP_FLD32GET(reg,0, 7)
175#define TMS570_GIO_POL_GIOPOL_0_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
176
177
178/*---------------------TMS570_GIO_ENASET---------------------*/
179/* field: GIOENASET_3 - nterrupt enable for pins GIOD[7:0] */
180#define TMS570_GIO_ENASET_GIOENASET_3(val) BSP_FLD32(val,24, 31)
181#define TMS570_GIO_ENASET_GIOENASET_3_GET(reg) BSP_FLD32GET(reg,24, 31)
182#define TMS570_GIO_ENASET_GIOENASET_3_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
183
184/* field: GIOENASET_2 - Interrupt enable for pins GIOC[7:0] */
185#define TMS570_GIO_ENASET_GIOENASET_2(val) BSP_FLD32(val,16, 23)
186#define TMS570_GIO_ENASET_GIOENASET_2_GET(reg) BSP_FLD32GET(reg,16, 23)
187#define TMS570_GIO_ENASET_GIOENASET_2_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
188
189/* field: GIOENASET_1 - Interrupt enable for pins GIOB[7:0] */
190#define TMS570_GIO_ENASET_GIOENASET_1(val) BSP_FLD32(val,8, 15)
191#define TMS570_GIO_ENASET_GIOENASET_1_GET(reg) BSP_FLD32GET(reg,8, 15)
192#define TMS570_GIO_ENASET_GIOENASET_1_SET(reg,val) BSP_FLD32SET(reg, val,8, 15)
193
194/* field: GIOENASET_0 - Interrupt enable for pins GIOA[7:0] */
195#define TMS570_GIO_ENASET_GIOENASET_0(val) BSP_FLD32(val,0, 7)
196#define TMS570_GIO_ENASET_GIOENASET_0_GET(reg) BSP_FLD32GET(reg,0, 7)
197#define TMS570_GIO_ENASET_GIOENASET_0_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
198
199
200/*---------------------TMS570_GIO_ENACLR---------------------*/
201/* field: GIOENACLR_3 - Interrupt enable for pins GIOD[7:0] */
202#define TMS570_GIO_ENACLR_GIOENACLR_3(val) BSP_FLD32(val,24, 31)
203#define TMS570_GIO_ENACLR_GIOENACLR_3_GET(reg) BSP_FLD32GET(reg,24, 31)
204#define TMS570_GIO_ENACLR_GIOENACLR_3_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
205
206/* field: GIOENACLR_2 - Interrupt enable for pins GIOC[7:0] */
207#define TMS570_GIO_ENACLR_GIOENACLR_2(val) BSP_FLD32(val,16, 23)
208#define TMS570_GIO_ENACLR_GIOENACLR_2_GET(reg) BSP_FLD32GET(reg,16, 23)
209#define TMS570_GIO_ENACLR_GIOENACLR_2_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
210
211/* field: GIOENACLR_1 - Interrupt enable for pins GIOB[7:0] */
212#define TMS570_GIO_ENACLR_GIOENACLR_1(val) BSP_FLD32(val,8, 15)
213#define TMS570_GIO_ENACLR_GIOENACLR_1_GET(reg) BSP_FLD32GET(reg,8, 15)
214#define TMS570_GIO_ENACLR_GIOENACLR_1_SET(reg,val) BSP_FLD32SET(reg, val,8, 15)
215
216/* field: GIOENACLR_0 - Interrupt enable for pins GIOA[7:0] */
217#define TMS570_GIO_ENACLR_GIOENACLR_0(val) BSP_FLD32(val,0, 7)
218#define TMS570_GIO_ENACLR_GIOENACLR_0_GET(reg) BSP_FLD32GET(reg,0, 7)
219#define TMS570_GIO_ENACLR_GIOENACLR_0_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
220
221
222/*---------------------TMS570_GIO_LVLSET---------------------*/
223/* field: GIOLVLSET_3 - GIO high priority interrupt for pins GIOD[7:0]. */
224#define TMS570_GIO_LVLSET_GIOLVLSET_3(val) BSP_FLD32(val,24, 31)
225#define TMS570_GIO_LVLSET_GIOLVLSET_3_GET(reg) BSP_FLD32GET(reg,24, 31)
226#define TMS570_GIO_LVLSET_GIOLVLSET_3_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
227
228/* field: GIOLVLSET_2 - GIO high priority interrupt for pins GIOC[7:0]. */
229#define TMS570_GIO_LVLSET_GIOLVLSET_2(val) BSP_FLD32(val,16, 23)
230#define TMS570_GIO_LVLSET_GIOLVLSET_2_GET(reg) BSP_FLD32GET(reg,16, 23)
231#define TMS570_GIO_LVLSET_GIOLVLSET_2_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
232
233/* field: GIOLVLSET_1 - GIO high priority interrupt for pins GIOB[7:0]. */
234#define TMS570_GIO_LVLSET_GIOLVLSET_1(val) BSP_FLD32(val,8, 15)
235#define TMS570_GIO_LVLSET_GIOLVLSET_1_GET(reg) BSP_FLD32GET(reg,8, 15)
236#define TMS570_GIO_LVLSET_GIOLVLSET_1_SET(reg,val) BSP_FLD32SET(reg, val,8, 15)
237
238/* field: GIOLVLSET_0 - GIO high priority interrupt for pins GIOA[7:0]. */
239#define TMS570_GIO_LVLSET_GIOLVLSET_0(val) BSP_FLD32(val,0, 7)
240#define TMS570_GIO_LVLSET_GIOLVLSET_0_GET(reg) BSP_FLD32GET(reg,0, 7)
241#define TMS570_GIO_LVLSET_GIOLVLSET_0_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
242
243
244/*---------------------TMS570_GIO_LVLCLR---------------------*/
245/* field: GIOLVLCLR_3 - GIO low priority interrupt for pins GIOD[7:0] */
246#define TMS570_GIO_LVLCLR_GIOLVLCLR_3(val) BSP_FLD32(val,24, 31)
247#define TMS570_GIO_LVLCLR_GIOLVLCLR_3_GET(reg) BSP_FLD32GET(reg,24, 31)
248#define TMS570_GIO_LVLCLR_GIOLVLCLR_3_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
249
250/* field: GIOLVLCLR_2 - GIO low priority interrupt for pins GIOC[7:0] */
251#define TMS570_GIO_LVLCLR_GIOLVLCLR_2(val) BSP_FLD32(val,16, 23)
252#define TMS570_GIO_LVLCLR_GIOLVLCLR_2_GET(reg) BSP_FLD32GET(reg,16, 23)
253#define TMS570_GIO_LVLCLR_GIOLVLCLR_2_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
254
255/* field: GIOLVLCLR_1 - GIO low priority interrupt for pins GIOB[7:0] */
256#define TMS570_GIO_LVLCLR_GIOLVLCLR_1(val) BSP_FLD32(val,8, 15)
257#define TMS570_GIO_LVLCLR_GIOLVLCLR_1_GET(reg) BSP_FLD32GET(reg,8, 15)
258#define TMS570_GIO_LVLCLR_GIOLVLCLR_1_SET(reg,val) BSP_FLD32SET(reg, val,8, 15)
259
260/* field: GIOLVLCLR_0 - GIO low priority interrupt for pins GIOA[7:0] */
261#define TMS570_GIO_LVLCLR_GIOLVLCLR_0(val) BSP_FLD32(val,0, 7)
262#define TMS570_GIO_LVLCLR_GIOLVLCLR_0_GET(reg) BSP_FLD32GET(reg,0, 7)
263#define TMS570_GIO_LVLCLR_GIOLVLCLR_0_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
264
265
266/*-----------------------TMS570_GIO_FLG-----------------------*/
267/* field: GIOFLG_3 - GIO flag for pins GIOD[7:0]. */
268#define TMS570_GIO_FLG_GIOFLG_3(val) BSP_FLD32(val,24, 31)
269#define TMS570_GIO_FLG_GIOFLG_3_GET(reg) BSP_FLD32GET(reg,24, 31)
270#define TMS570_GIO_FLG_GIOFLG_3_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
271
272/* field: GIOFLG_2 - GIO flag for pins GIOC[7:0]. */
273#define TMS570_GIO_FLG_GIOFLG_2(val) BSP_FLD32(val,16, 23)
274#define TMS570_GIO_FLG_GIOFLG_2_GET(reg) BSP_FLD32GET(reg,16, 23)
275#define TMS570_GIO_FLG_GIOFLG_2_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
276
277/* field: GIOFLG_1 - GIO flag for pins GIOB[7:0]. */
278#define TMS570_GIO_FLG_GIOFLG_1(val) BSP_FLD32(val,8, 15)
279#define TMS570_GIO_FLG_GIOFLG_1_GET(reg) BSP_FLD32GET(reg,8, 15)
280#define TMS570_GIO_FLG_GIOFLG_1_SET(reg,val) BSP_FLD32SET(reg, val,8, 15)
281
282/* field: GIOFLG_0 - GIO flag for pins GIOA[7:0]. */
283#define TMS570_GIO_FLG_GIOFLG_0(val) BSP_FLD32(val,0, 7)
284#define TMS570_GIO_FLG_GIOFLG_0_GET(reg) BSP_FLD32GET(reg,0, 7)
285#define TMS570_GIO_FLG_GIOFLG_0_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
286
287
288/*----------------------TMS570_GIO_OFF1----------------------*/
289/* field: GIOOFF1 - GIO offset 1. These bits index the currently pending high-priority interrupt. */
290#define TMS570_GIO_OFF1_GIOOFF1(val) BSP_FLD32(val,0, 5)
291#define TMS570_GIO_OFF1_GIOOFF1_GET(reg) BSP_FLD32GET(reg,0, 5)
292#define TMS570_GIO_OFF1_GIOOFF1_SET(reg,val) BSP_FLD32SET(reg, val,0, 5)
293
294
295/*----------------------TMS570_GIO_OFF2----------------------*/
296/* field: GIOOFF2 - GIO offset 2. These bits index the currently pending low-priority interrupt. */
297#define TMS570_GIO_OFF2_GIOOFF2(val) BSP_FLD32(val,0, 5)
298#define TMS570_GIO_OFF2_GIOOFF2_GET(reg) BSP_FLD32GET(reg,0, 5)
299#define TMS570_GIO_OFF2_GIOOFF2_SET(reg,val) BSP_FLD32SET(reg, val,0, 5)
300
301
302/*----------------------TMS570_GIO_EMU1----------------------*/
303/* field: GIOEMU1 - GIO offset emulation 1. These bits index the currently pending high-priority interrupt. */
304#define TMS570_GIO_EMU1_GIOEMU1(val) BSP_FLD32(val,0, 5)
305#define TMS570_GIO_EMU1_GIOEMU1_GET(reg) BSP_FLD32GET(reg,0, 5)
306#define TMS570_GIO_EMU1_GIOEMU1_SET(reg,val) BSP_FLD32SET(reg, val,0, 5)
307
308
309/*----------------------TMS570_GIO_EMU2----------------------*/
310/* field: GIOEMU2 - GIO offset emulation 2. These bits index the currently pending low-priority interrupt. */
311#define TMS570_GIO_EMU2_GIOEMU2(val) BSP_FLD32(val,0, 5)
312#define TMS570_GIO_EMU2_GIOEMU2_GET(reg) BSP_FLD32GET(reg,0, 5)
313#define TMS570_GIO_EMU2_GIOEMU2_SET(reg,val) BSP_FLD32SET(reg, val,0, 5)
314
315
316/*----------------------TMS570_GIO_ports----------------------*/
317/* field: GIOEMU2 - GIO offset emulation 2. These bits index the currently pending low-priority interrupt. */
318#define TMS570_GIO_ports_GIOEMU2(val) BSP_FLD32(val,0, 5)
319#define TMS570_GIO_ports_GIOEMU2_GET(reg) BSP_FLD32GET(reg,0, 5)
320#define TMS570_GIO_ports_GIOEMU2_SET(reg,val) BSP_FLD32SET(reg, val,0, 5)
321
322
323
324#endif /* LIBBSP_ARM_TMS570_GIO */
utility.h
Utility macros.
tms570_gio_port_t
Definition: reg_gio.h:44
tms570_gio_t
Definition: reg_gio.h:55