|
RTEMS
5.1
|
39 #ifndef LIBBSP_ARM_TMS570_GIO 40 #define LIBBSP_ARM_TMS570_GIO 57 uint8_t reserved1 [4];
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) 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) 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) 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) 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) 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) 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) 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) 131 #define TMS570_GIO_GCR0_RESET BSP_BIT32(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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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)