Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:38

0001 /* SPDX-License-Identifier: BSD-2-Clause */
0002 
0003 /**
0004  * @file
0005  *
0006  * @ingroup RTEMSBSPsARMTMS570
0007  *
0008  * @brief This header file provides GIO interfaces.
0009  */
0010 
0011 /* The header file is generated by make_header.py from GIO.json */
0012 /* Current script's version can be found at: */
0013 /* https://github.com/AoLaD/rtems-tms570-utils/tree/headers/headers/python */
0014 
0015 /*
0016  * Copyright (c) 2014-2015, Premysl Houdek <kom541000@gmail.com>
0017  *
0018  * Czech Technical University in Prague
0019  * Zikova 1903/4
0020  * 166 36 Praha 6
0021  * Czech Republic
0022  *
0023  * All rights reserved.
0024  *
0025  * Redistribution and use in source and binary forms, with or without
0026  * modification, are permitted provided that the following conditions are met:
0027  *
0028  * 1. Redistributions of source code must retain the above copyright notice, this
0029  *    list of conditions and the following disclaimer.
0030  * 2. Redistributions in binary form must reproduce the above copyright notice,
0031  *    this list of conditions and the following disclaimer in the documentation
0032  *    and/or other materials provided with the distribution.
0033  *
0034  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
0035  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
0036  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
0037  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
0038  * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
0039  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
0040  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
0041  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
0042  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
0043  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
0044  *
0045  * The views and conclusions contained in the software and documentation are those
0046  * of the authors and should not be interpreted as representing official policies,
0047  * either expressed or implied, of the FreeBSD Project.
0048 */
0049 #ifndef LIBBSP_ARM_TMS570_GIO
0050 #define LIBBSP_ARM_TMS570_GIO
0051 
0052 #include <bsp/utility.h>
0053 
0054 typedef struct{
0055   uint32_t DIR;               /*GIO Data Direction Register*/
0056   uint32_t DIN;               /*GIO Data Input Register*/
0057   uint32_t DOUT;              /*GIO Data Output Register*/
0058   uint32_t DSET;              /*GIO Data Set Register*/
0059   uint32_t DCLR;              /*GIO Data Clear Register*/
0060   uint32_t PDR;               /*GIO Open Drain Register*/
0061   uint32_t PULDIS;            /*GIO Pull Disable Register*/
0062   uint32_t PSL;               /*GIO Pull Select Register*/
0063 } tms570_gio_port_t;
0064 
0065 typedef struct{
0066   uint32_t GCR0;              /*GIO Global Control Register*/
0067   uint8_t reserved1 [4];
0068   uint32_t INTDET;            /*GIO Interrupt Detect Register*/
0069   uint32_t POL;               /*GIO Interrupt Polarity Register*/
0070   uint32_t ENASET;            /*GIO Interrupt Enable Set Register*/
0071   uint32_t ENACLR;            /*GIO Interrupt Enable Clear Register*/
0072   uint32_t LVLSET;            /*GIO Interrupt Priority Set Register*/
0073   uint32_t LVLCLR;            /*GIO Interrupt Priority Clear Register*/
0074   uint32_t FLG;               /*GIO Interrupt Flag Register*/
0075   uint32_t OFF1;              /*GIO Offset 1 Register*/
0076   uint32_t OFF2;              /*GIO Offset 2 Register*/
0077   uint32_t EMU1;              /*GIO Emulation 1 Register*/
0078   uint32_t EMU2;              /*GIO Emulation 2 Register*/
0079   tms570_gio_port_t ports[8]; /*GIO ports*/
0080 } tms570_gio_t;
0081 
0082 
0083 /*-----------------------TMS570_GIO_DIR-----------------------*/
0084 /* field: GIODIR - GIO data direction, pins [7:0] */
0085 #define TMS570_GIO_DIR_GIODIR(val) BSP_FLD32(val,0, 7)
0086 #define TMS570_GIO_DIR_GIODIR_GET(reg) BSP_FLD32GET(reg,0, 7)
0087 #define TMS570_GIO_DIR_GIODIR_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
0088 
0089 
0090 /*-----------------------TMS570_GIO_DIN-----------------------*/
0091 /* field: GIODIN - GIO data input, pins [7:0] */
0092 #define TMS570_GIO_DIN_GIODIN(val) BSP_FLD32(val,0, 7)
0093 #define TMS570_GIO_DIN_GIODIN_GET(reg) BSP_FLD32GET(reg,0, 7)
0094 #define TMS570_GIO_DIN_GIODIN_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
0095 
0096 
0097 /*----------------------TMS570_GIO_DOUT----------------------*/
0098 /* field: GIODOUT - IO data output, pins[7:0]. */
0099 #define TMS570_GIO_DOUT_GIODOUT(val) BSP_FLD32(val,0, 7)
0100 #define TMS570_GIO_DOUT_GIODOUT_GET(reg) BSP_FLD32GET(reg,0, 7)
0101 #define TMS570_GIO_DOUT_GIODOUT_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
0102 
0103 
0104 /*----------------------TMS570_GIO_DSET----------------------*/
0105 /* field: GIODSET - GIO data set, pins[7:0]. This bit drives the output of GIO pin high. */
0106 #define TMS570_GIO_DSET_GIODSET(val) BSP_FLD32(val,0, 7)
0107 #define TMS570_GIO_DSET_GIODSET_GET(reg) BSP_FLD32GET(reg,0, 7)
0108 #define TMS570_GIO_DSET_GIODSET_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
0109 
0110 
0111 /*----------------------TMS570_GIO_DCLR----------------------*/
0112 /* field: GIODCLR - GIO data clear, pins[7:0]. This bit drives the output of GIO pin low. */
0113 #define TMS570_GIO_DCLR_GIODCLR(val) BSP_FLD32(val,0, 7)
0114 #define TMS570_GIO_DCLR_GIODCLR_GET(reg) BSP_FLD32GET(reg,0, 7)
0115 #define TMS570_GIO_DCLR_GIODCLR_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
0116 
0117 
0118 /*-----------------------TMS570_GIO_PDR-----------------------*/
0119 /* field: 7_0 - GIOPDRH GIO open drain, pins[7:0] */
0120 #define TMS570_GIO_PDR_7_0(val) BSP_FLD32(val,0, 7)
0121 #define TMS570_GIO_PDR_7_0_GET(reg) BSP_FLD32GET(reg,0, 7)
0122 #define TMS570_GIO_PDR_7_0_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
0123 
0124 
0125 /*---------------------TMS570_GIO_PULDIS---------------------*/
0126 /* field: GIOPULDIS - GIO pull disable, pins[7:0]. */
0127 #define TMS570_GIO_PULDIS_GIOPULDIS(val) BSP_FLD32(val,0, 7)
0128 #define TMS570_GIO_PULDIS_GIOPULDIS_GET(reg) BSP_FLD32GET(reg,0, 7)
0129 #define TMS570_GIO_PULDIS_GIOPULDIS_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
0130 
0131 
0132 /*-----------------------TMS570_GIO_PSL-----------------------*/
0133 /* field: GIOPSL - GIO pull select, pins[7:0] */
0134 #define TMS570_GIO_PSL_GIOPSL(val) BSP_FLD32(val,0, 7)
0135 #define TMS570_GIO_PSL_GIOPSL_GET(reg) BSP_FLD32GET(reg,0, 7)
0136 #define TMS570_GIO_PSL_GIOPSL_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
0137 
0138 
0139 /*----------------------TMS570_GIO_GCR0----------------------*/
0140 /* field: RESET - GIO reset. */
0141 #define TMS570_GIO_GCR0_RESET BSP_BIT32(0)
0142 
0143 
0144 /*---------------------TMS570_GIO_INTDET---------------------*/
0145 /* field: GIOINTDET_3 - Interrupt detection select for pins GIOD[7:0] */
0146 #define TMS570_GIO_INTDET_GIOINTDET_3(val) BSP_FLD32(val,24, 31)
0147 #define TMS570_GIO_INTDET_GIOINTDET_3_GET(reg) BSP_FLD32GET(reg,24, 31)
0148 #define TMS570_GIO_INTDET_GIOINTDET_3_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
0149 
0150 /* field: GIOINTDET_2 - Interrupt detection select for pins GIOC[7:0] */
0151 #define TMS570_GIO_INTDET_GIOINTDET_2(val) BSP_FLD32(val,16, 23)
0152 #define TMS570_GIO_INTDET_GIOINTDET_2_GET(reg) BSP_FLD32GET(reg,16, 23)
0153 #define TMS570_GIO_INTDET_GIOINTDET_2_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
0154 
0155 /* field: GIOINTDET_1 - Interrupt detection select for pins GIOB[7:0] */
0156 #define TMS570_GIO_INTDET_GIOINTDET_1(val) BSP_FLD32(val,8, 15)
0157 #define TMS570_GIO_INTDET_GIOINTDET_1_GET(reg) BSP_FLD32GET(reg,8, 15)
0158 #define TMS570_GIO_INTDET_GIOINTDET_1_SET(reg,val) BSP_FLD32SET(reg, val,8, 15)
0159 
0160 /* field: GIOINTDET_0 - Interrupt detection select for pins GIOA[7:0] */
0161 #define TMS570_GIO_INTDET_GIOINTDET_0(val) BSP_FLD32(val,0, 7)
0162 #define TMS570_GIO_INTDET_GIOINTDET_0_GET(reg) BSP_FLD32GET(reg,0, 7)
0163 #define TMS570_GIO_INTDET_GIOINTDET_0_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
0164 
0165 
0166 /*-----------------------TMS570_GIO_POL-----------------------*/
0167 /* field: GIOPOL_3 - Interrupt polarity select for pins GIOD[7:0] */
0168 #define TMS570_GIO_POL_GIOPOL_3(val) BSP_FLD32(val,24, 31)
0169 #define TMS570_GIO_POL_GIOPOL_3_GET(reg) BSP_FLD32GET(reg,24, 31)
0170 #define TMS570_GIO_POL_GIOPOL_3_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
0171 
0172 /* field: GIOPOL_2 - Interrupt polarity select for pins GIOC[7:0] */
0173 #define TMS570_GIO_POL_GIOPOL_2(val) BSP_FLD32(val,16, 23)
0174 #define TMS570_GIO_POL_GIOPOL_2_GET(reg) BSP_FLD32GET(reg,16, 23)
0175 #define TMS570_GIO_POL_GIOPOL_2_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
0176 
0177 /* field: GIOPOL_1 - Interrupt polarity select for pins GIOB[7:0] */
0178 #define TMS570_GIO_POL_GIOPOL_1(val) BSP_FLD32(val,8, 15)
0179 #define TMS570_GIO_POL_GIOPOL_1_GET(reg) BSP_FLD32GET(reg,8, 15)
0180 #define TMS570_GIO_POL_GIOPOL_1_SET(reg,val) BSP_FLD32SET(reg, val,8, 15)
0181 
0182 /* field: GIOPOL_0 - Interrupt polarity select for pins GIOA[7:0] */
0183 #define TMS570_GIO_POL_GIOPOL_0(val) BSP_FLD32(val,0, 7)
0184 #define TMS570_GIO_POL_GIOPOL_0_GET(reg) BSP_FLD32GET(reg,0, 7)
0185 #define TMS570_GIO_POL_GIOPOL_0_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
0186 
0187 
0188 /*---------------------TMS570_GIO_ENASET---------------------*/
0189 /* field: GIOENASET_3 - nterrupt enable for pins GIOD[7:0] */
0190 #define TMS570_GIO_ENASET_GIOENASET_3(val) BSP_FLD32(val,24, 31)
0191 #define TMS570_GIO_ENASET_GIOENASET_3_GET(reg) BSP_FLD32GET(reg,24, 31)
0192 #define TMS570_GIO_ENASET_GIOENASET_3_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
0193 
0194 /* field: GIOENASET_2 - Interrupt enable for pins GIOC[7:0] */
0195 #define TMS570_GIO_ENASET_GIOENASET_2(val) BSP_FLD32(val,16, 23)
0196 #define TMS570_GIO_ENASET_GIOENASET_2_GET(reg) BSP_FLD32GET(reg,16, 23)
0197 #define TMS570_GIO_ENASET_GIOENASET_2_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
0198 
0199 /* field: GIOENASET_1 - Interrupt enable for pins GIOB[7:0] */
0200 #define TMS570_GIO_ENASET_GIOENASET_1(val) BSP_FLD32(val,8, 15)
0201 #define TMS570_GIO_ENASET_GIOENASET_1_GET(reg) BSP_FLD32GET(reg,8, 15)
0202 #define TMS570_GIO_ENASET_GIOENASET_1_SET(reg,val) BSP_FLD32SET(reg, val,8, 15)
0203 
0204 /* field: GIOENASET_0 - Interrupt enable for pins GIOA[7:0] */
0205 #define TMS570_GIO_ENASET_GIOENASET_0(val) BSP_FLD32(val,0, 7)
0206 #define TMS570_GIO_ENASET_GIOENASET_0_GET(reg) BSP_FLD32GET(reg,0, 7)
0207 #define TMS570_GIO_ENASET_GIOENASET_0_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
0208 
0209 
0210 /*---------------------TMS570_GIO_ENACLR---------------------*/
0211 /* field: GIOENACLR_3 - Interrupt enable for pins GIOD[7:0] */
0212 #define TMS570_GIO_ENACLR_GIOENACLR_3(val) BSP_FLD32(val,24, 31)
0213 #define TMS570_GIO_ENACLR_GIOENACLR_3_GET(reg) BSP_FLD32GET(reg,24, 31)
0214 #define TMS570_GIO_ENACLR_GIOENACLR_3_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
0215 
0216 /* field: GIOENACLR_2 - Interrupt enable for pins GIOC[7:0] */
0217 #define TMS570_GIO_ENACLR_GIOENACLR_2(val) BSP_FLD32(val,16, 23)
0218 #define TMS570_GIO_ENACLR_GIOENACLR_2_GET(reg) BSP_FLD32GET(reg,16, 23)
0219 #define TMS570_GIO_ENACLR_GIOENACLR_2_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
0220 
0221 /* field: GIOENACLR_1 - Interrupt enable for pins GIOB[7:0] */
0222 #define TMS570_GIO_ENACLR_GIOENACLR_1(val) BSP_FLD32(val,8, 15)
0223 #define TMS570_GIO_ENACLR_GIOENACLR_1_GET(reg) BSP_FLD32GET(reg,8, 15)
0224 #define TMS570_GIO_ENACLR_GIOENACLR_1_SET(reg,val) BSP_FLD32SET(reg, val,8, 15)
0225 
0226 /* field: GIOENACLR_0 - Interrupt enable for pins GIOA[7:0] */
0227 #define TMS570_GIO_ENACLR_GIOENACLR_0(val) BSP_FLD32(val,0, 7)
0228 #define TMS570_GIO_ENACLR_GIOENACLR_0_GET(reg) BSP_FLD32GET(reg,0, 7)
0229 #define TMS570_GIO_ENACLR_GIOENACLR_0_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
0230 
0231 
0232 /*---------------------TMS570_GIO_LVLSET---------------------*/
0233 /* field: GIOLVLSET_3 - GIO high priority interrupt for pins GIOD[7:0]. */
0234 #define TMS570_GIO_LVLSET_GIOLVLSET_3(val) BSP_FLD32(val,24, 31)
0235 #define TMS570_GIO_LVLSET_GIOLVLSET_3_GET(reg) BSP_FLD32GET(reg,24, 31)
0236 #define TMS570_GIO_LVLSET_GIOLVLSET_3_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
0237 
0238 /* field: GIOLVLSET_2 - GIO high priority interrupt for pins GIOC[7:0]. */
0239 #define TMS570_GIO_LVLSET_GIOLVLSET_2(val) BSP_FLD32(val,16, 23)
0240 #define TMS570_GIO_LVLSET_GIOLVLSET_2_GET(reg) BSP_FLD32GET(reg,16, 23)
0241 #define TMS570_GIO_LVLSET_GIOLVLSET_2_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
0242 
0243 /* field: GIOLVLSET_1 - GIO high priority interrupt for pins GIOB[7:0]. */
0244 #define TMS570_GIO_LVLSET_GIOLVLSET_1(val) BSP_FLD32(val,8, 15)
0245 #define TMS570_GIO_LVLSET_GIOLVLSET_1_GET(reg) BSP_FLD32GET(reg,8, 15)
0246 #define TMS570_GIO_LVLSET_GIOLVLSET_1_SET(reg,val) BSP_FLD32SET(reg, val,8, 15)
0247 
0248 /* field: GIOLVLSET_0 - GIO high priority interrupt for pins GIOA[7:0]. */
0249 #define TMS570_GIO_LVLSET_GIOLVLSET_0(val) BSP_FLD32(val,0, 7)
0250 #define TMS570_GIO_LVLSET_GIOLVLSET_0_GET(reg) BSP_FLD32GET(reg,0, 7)
0251 #define TMS570_GIO_LVLSET_GIOLVLSET_0_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
0252 
0253 
0254 /*---------------------TMS570_GIO_LVLCLR---------------------*/
0255 /* field: GIOLVLCLR_3 - GIO low priority interrupt for pins GIOD[7:0] */
0256 #define TMS570_GIO_LVLCLR_GIOLVLCLR_3(val) BSP_FLD32(val,24, 31)
0257 #define TMS570_GIO_LVLCLR_GIOLVLCLR_3_GET(reg) BSP_FLD32GET(reg,24, 31)
0258 #define TMS570_GIO_LVLCLR_GIOLVLCLR_3_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
0259 
0260 /* field: GIOLVLCLR_2 - GIO low priority interrupt for pins GIOC[7:0] */
0261 #define TMS570_GIO_LVLCLR_GIOLVLCLR_2(val) BSP_FLD32(val,16, 23)
0262 #define TMS570_GIO_LVLCLR_GIOLVLCLR_2_GET(reg) BSP_FLD32GET(reg,16, 23)
0263 #define TMS570_GIO_LVLCLR_GIOLVLCLR_2_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
0264 
0265 /* field: GIOLVLCLR_1 - GIO low priority interrupt for pins GIOB[7:0] */
0266 #define TMS570_GIO_LVLCLR_GIOLVLCLR_1(val) BSP_FLD32(val,8, 15)
0267 #define TMS570_GIO_LVLCLR_GIOLVLCLR_1_GET(reg) BSP_FLD32GET(reg,8, 15)
0268 #define TMS570_GIO_LVLCLR_GIOLVLCLR_1_SET(reg,val) BSP_FLD32SET(reg, val,8, 15)
0269 
0270 /* field: GIOLVLCLR_0 - GIO low priority interrupt for pins GIOA[7:0] */
0271 #define TMS570_GIO_LVLCLR_GIOLVLCLR_0(val) BSP_FLD32(val,0, 7)
0272 #define TMS570_GIO_LVLCLR_GIOLVLCLR_0_GET(reg) BSP_FLD32GET(reg,0, 7)
0273 #define TMS570_GIO_LVLCLR_GIOLVLCLR_0_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
0274 
0275 
0276 /*-----------------------TMS570_GIO_FLG-----------------------*/
0277 /* field: GIOFLG_3 - GIO flag for pins GIOD[7:0]. */
0278 #define TMS570_GIO_FLG_GIOFLG_3(val) BSP_FLD32(val,24, 31)
0279 #define TMS570_GIO_FLG_GIOFLG_3_GET(reg) BSP_FLD32GET(reg,24, 31)
0280 #define TMS570_GIO_FLG_GIOFLG_3_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
0281 
0282 /* field: GIOFLG_2 - GIO flag for pins GIOC[7:0]. */
0283 #define TMS570_GIO_FLG_GIOFLG_2(val) BSP_FLD32(val,16, 23)
0284 #define TMS570_GIO_FLG_GIOFLG_2_GET(reg) BSP_FLD32GET(reg,16, 23)
0285 #define TMS570_GIO_FLG_GIOFLG_2_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
0286 
0287 /* field: GIOFLG_1 - GIO flag for pins GIOB[7:0]. */
0288 #define TMS570_GIO_FLG_GIOFLG_1(val) BSP_FLD32(val,8, 15)
0289 #define TMS570_GIO_FLG_GIOFLG_1_GET(reg) BSP_FLD32GET(reg,8, 15)
0290 #define TMS570_GIO_FLG_GIOFLG_1_SET(reg,val) BSP_FLD32SET(reg, val,8, 15)
0291 
0292 /* field: GIOFLG_0 - GIO flag for pins GIOA[7:0]. */
0293 #define TMS570_GIO_FLG_GIOFLG_0(val) BSP_FLD32(val,0, 7)
0294 #define TMS570_GIO_FLG_GIOFLG_0_GET(reg) BSP_FLD32GET(reg,0, 7)
0295 #define TMS570_GIO_FLG_GIOFLG_0_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
0296 
0297 
0298 /*----------------------TMS570_GIO_OFF1----------------------*/
0299 /* field: GIOOFF1 - GIO offset 1. These bits index the currently pending high-priority interrupt. */
0300 #define TMS570_GIO_OFF1_GIOOFF1(val) BSP_FLD32(val,0, 5)
0301 #define TMS570_GIO_OFF1_GIOOFF1_GET(reg) BSP_FLD32GET(reg,0, 5)
0302 #define TMS570_GIO_OFF1_GIOOFF1_SET(reg,val) BSP_FLD32SET(reg, val,0, 5)
0303 
0304 
0305 /*----------------------TMS570_GIO_OFF2----------------------*/
0306 /* field: GIOOFF2 - GIO offset 2. These bits index the currently pending low-priority interrupt. */
0307 #define TMS570_GIO_OFF2_GIOOFF2(val) BSP_FLD32(val,0, 5)
0308 #define TMS570_GIO_OFF2_GIOOFF2_GET(reg) BSP_FLD32GET(reg,0, 5)
0309 #define TMS570_GIO_OFF2_GIOOFF2_SET(reg,val) BSP_FLD32SET(reg, val,0, 5)
0310 
0311 
0312 /*----------------------TMS570_GIO_EMU1----------------------*/
0313 /* field: GIOEMU1 - GIO offset emulation 1. These bits index the currently pending high-priority interrupt. */
0314 #define TMS570_GIO_EMU1_GIOEMU1(val) BSP_FLD32(val,0, 5)
0315 #define TMS570_GIO_EMU1_GIOEMU1_GET(reg) BSP_FLD32GET(reg,0, 5)
0316 #define TMS570_GIO_EMU1_GIOEMU1_SET(reg,val) BSP_FLD32SET(reg, val,0, 5)
0317 
0318 
0319 /*----------------------TMS570_GIO_EMU2----------------------*/
0320 /* field: GIOEMU2 - GIO offset emulation 2. These bits index the currently pending low-priority interrupt. */
0321 #define TMS570_GIO_EMU2_GIOEMU2(val) BSP_FLD32(val,0, 5)
0322 #define TMS570_GIO_EMU2_GIOEMU2_GET(reg) BSP_FLD32GET(reg,0, 5)
0323 #define TMS570_GIO_EMU2_GIOEMU2_SET(reg,val) BSP_FLD32SET(reg, val,0, 5)
0324 
0325 
0326 /*----------------------TMS570_GIO_ports----------------------*/
0327 /* field: GIOEMU2 - GIO offset emulation 2. These bits index the currently pending low-priority interrupt. */
0328 #define TMS570_GIO_ports_GIOEMU2(val) BSP_FLD32(val,0, 5)
0329 #define TMS570_GIO_ports_GIOEMU2_GET(reg) BSP_FLD32GET(reg,0, 5)
0330 #define TMS570_GIO_ports_GIOEMU2_SET(reg,val) BSP_FLD32SET(reg, val,0, 5)
0331 
0332 
0333 
0334 #endif /* LIBBSP_ARM_TMS570_GIO */