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