|
RTEMS
5.1
|
39 #ifndef LIBBSP_ARM_TMS570_DMM 40 #define LIBBSP_ARM_TMS570_DMM 86 #define TMS570_DMM_GLBCTRL_BUSY BSP_BIT32(24) 89 #define TMS570_DMM_GLBCTRL_CONTCLK BSP_BIT32(18) 92 #define TMS570_DMM_GLBCTRL_COS BSP_BIT32(17) 95 #define TMS570_DMM_GLBCTRL_RESET BSP_BIT32(16) 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) 103 #define TMS570_DMM_GLBCTRL_TM_DMM BSP_BIT32(8) 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) 113 #define TMS570_DMM_INTSET_PROG_BUFF BSP_BIT32(17) 116 #define TMS570_DMM_INTSET_EO_BUFF BSP_BIT32(16) 119 #define TMS570_DMM_INTSET_DEST3REG2 BSP_BIT32(15) 122 #define TMS570_DMM_INTSET_DEST3REG1 BSP_BIT32(14) 125 #define TMS570_DMM_INTSET_DEST2REG2 BSP_BIT32(13) 128 #define TMS570_DMM_INTSET_DEST2REG1 BSP_BIT32(12) 131 #define TMS570_DMM_INTSET_DEST1REG2 BSP_BIT32(11) 134 #define TMS570_DMM_INTSET_DEST1REG1 BSP_BIT32(10) 137 #define TMS570_DMM_INTSET_DEST0REG2 BSP_BIT32(9) 140 #define TMS570_DMM_INTSET_DEST0REG1 BSP_BIT32(8) 143 #define TMS570_DMM_INTSET_BUSERROR BSP_BIT32(7) 146 #define TMS570_DMM_INTSET_BUFF_OVF BSP_BIT32(6) 149 #define TMS570_DMM_INTSET_SRC_OVF BSP_BIT32(5) 152 #define TMS570_DMM_INTSET_DEST3_ERR BSP_BIT32(4) 155 #define TMS570_DMM_INTSET_DEST2_ERR BSP_BIT32(3) 158 #define TMS570_DMM_INTSET_DEST1_ERR BSP_BIT32(2) 161 #define TMS570_DMM_INTSET_DEST0_ERR BSP_BIT32(1) 164 #define TMS570_DMM_INTSET_PACKET_ERR_INT BSP_BIT32(0) 169 #define TMS570_DMM_INTCLR_PROG_BUFF BSP_BIT32(17) 172 #define TMS570_DMM_INTCLR_EO_BUFF BSP_BIT32(16) 175 #define TMS570_DMM_INTCLR_DEST3REG2 BSP_BIT32(15) 178 #define TMS570_DMM_INTCLR_DEST3REG1 BSP_BIT32(14) 181 #define TMS570_DMM_INTCLR_DEST2REG2 BSP_BIT32(13) 184 #define TMS570_DMM_INTCLR_DEST2REG1 BSP_BIT32(12) 187 #define TMS570_DMM_INTCLR_DEST1REG2 BSP_BIT32(11) 190 #define TMS570_DMM_INTCLR_DEST1REG1 BSP_BIT32(10) 193 #define TMS570_DMM_INTCLR_DEST0REG2 BSP_BIT32(9) 196 #define TMS570_DMM_INTCLR_DEST0REG1 BSP_BIT32(8) 199 #define TMS570_DMM_INTCLR_BUSERROR BSP_BIT32(7) 202 #define TMS570_DMM_INTCLR_BUFF_OVF BSP_BIT32(6) 205 #define TMS570_DMM_INTCLR_SRC_OVF BSP_BIT32(5) 208 #define TMS570_DMM_INTCLR_DEST3_ERR BSP_BIT32(4) 211 #define TMS570_DMM_INTCLR_DEST2_ERR BSP_BIT32(3) 214 #define TMS570_DMM_INTCLR_DEST1_ERR BSP_BIT32(2) 217 #define TMS570_DMM_INTCLR_DEST0_ERR BSP_BIT32(1) 220 #define TMS570_DMM_INTCLR_PACKET_ERR_INT BSP_BIT32(0) 225 #define TMS570_DMM_INTLVL_PROG_BUFF BSP_BIT32(17) 228 #define TMS570_DMM_INTLVL_EO_BUFF BSP_BIT32(16) 231 #define TMS570_DMM_INTLVL_DEST3REG2 BSP_BIT32(15) 234 #define TMS570_DMM_INTLVL_DEST3REG1 BSP_BIT32(14) 237 #define TMS570_DMM_INTLVL_DEST2REG2 BSP_BIT32(13) 240 #define TMS570_DMM_INTLVL_DEST2REG1 BSP_BIT32(12) 243 #define TMS570_DMM_INTLVL_DEST1REG2 BSP_BIT32(11) 246 #define TMS570_DMM_INTLVL_DEST1REG1 BSP_BIT32(10) 249 #define TMS570_DMM_INTLVL_DEST0REG2 BSP_BIT32(9) 252 #define TMS570_DMM_INTLVL_DEST0REG1 BSP_BIT32(8) 255 #define TMS570_DMM_INTLVL_BUSERROR BSP_BIT32(7) 258 #define TMS570_DMM_INTLVL_BUFF_OVF BSP_BIT32(6) 261 #define TMS570_DMM_INTLVL_SRC_OVF BSP_BIT32(5) 264 #define TMS570_DMM_INTLVL_DEST3_ERR BSP_BIT32(4) 267 #define TMS570_DMM_INTLVL_DEST2_ERR BSP_BIT32(3) 270 #define TMS570_DMM_INTLVL_DEST1_ERR BSP_BIT32(2) 273 #define TMS570_DMM_INTLVL_DEST0_ERR BSP_BIT32(1) 276 #define TMS570_DMM_INTLVL_PACKET_ERR_INT BSP_BIT32(0) 281 #define TMS570_DMM_INTFLG_PROG_BUFF BSP_BIT32(17) 284 #define TMS570_DMM_INTFLG_EO_BUFF BSP_BIT32(16) 287 #define TMS570_DMM_INTFLG_DEST3REG2 BSP_BIT32(15) 290 #define TMS570_DMM_INTFLG_DEST3REG1 BSP_BIT32(14) 293 #define TMS570_DMM_INTFLG_DEST2REG2 BSP_BIT32(13) 296 #define TMS570_DMM_INTFLG_DEST2REG1 BSP_BIT32(12) 299 #define TMS570_DMM_INTFLG_DEST1REG2 BSP_BIT32(11) 302 #define TMS570_DMM_INTFLG_DEST1REG1 BSP_BIT32(10) 305 #define TMS570_DMM_INTFLG_DEST0REG2 BSP_BIT32(9) 308 #define TMS570_DMM_INTFLG_DEST0REG1 BSP_BIT32(8) 311 #define TMS570_DMM_INTFLG_BUSERROR BSP_BIT32(7) 314 #define TMS570_DMM_INTFLG_BUFF_OVF BSP_BIT32(6) 317 #define TMS570_DMM_INTFLG_SRC_OVF BSP_BIT32(5) 320 #define TMS570_DMM_INTFLG_DEST3_ERR BSP_BIT32(4) 323 #define TMS570_DMM_INTFLG_DEST2_ERR BSP_BIT32(3) 326 #define TMS570_DMM_INTFLG_DEST1_ERR BSP_BIT32(2) 329 #define TMS570_DMM_INTFLG_DEST0_ERR BSP_BIT32(1) 332 #define TMS570_DMM_INTFLG_PACKET_ERR_INT BSP_BIT32(0) 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) 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) 355 #define TMS570_DMM_DDMBL_BLOCKSIZE(val) BSP_FLD32(val,0, 3) 356 #define TMS570_DMM_DDMBL_BLOCKSIZE_GET(reg) BSP_FLD32GET(reg,0, 3) 357 #define TMS570_DMM_DDMBL_BLOCKSIZE_SET(reg,val) BSP_FLD32SET(reg, val,0, 3) 362 #define TMS570_DMM_DDMPT_POINTER(val) BSP_FLD32(val,0, 14) 363 #define TMS570_DMM_DDMPT_POINTER_GET(reg) BSP_FLD32GET(reg,0, 14) 364 #define TMS570_DMM_DDMPT_POINTER_SET(reg,val) BSP_FLD32SET(reg, val,0, 14) 369 #define TMS570_DMM_INTPT_INTPT(val) BSP_FLD32(val,0, 14) 370 #define TMS570_DMM_INTPT_INTPT_GET(reg) BSP_FLD32GET(reg,0, 14) 371 #define TMS570_DMM_INTPT_INTPT_SET(reg,val) BSP_FLD32SET(reg, val,0, 14) 376 #define TMS570_DMM_DESTxREG1_BASEADDR(val) BSP_FLD32(val,18, 31) 377 #define TMS570_DMM_DESTxREG1_BASEADDR_GET(reg) BSP_FLD32GET(reg,18, 31) 378 #define TMS570_DMM_DESTxREG1_BASEADDR_SET(reg,val) BSP_FLD32SET(reg, val,18, 31) 381 #define TMS570_DMM_DESTxREG1_BLOCKADDR(val) BSP_FLD32(val,0, 17) 382 #define TMS570_DMM_DESTxREG1_BLOCKADDR_GET(reg) BSP_FLD32GET(reg,0, 17) 383 #define TMS570_DMM_DESTxREG1_BLOCKADDR_SET(reg,val) BSP_FLD32SET(reg, val,0, 17) 388 #define TMS570_DMM_DESTxBL1_BLOCKSIZE(val) BSP_FLD32(val,0, 3) 389 #define TMS570_DMM_DESTxBL1_BLOCKSIZE_GET(reg) BSP_FLD32GET(reg,0, 3) 390 #define TMS570_DMM_DESTxBL1_BLOCKSIZE_SET(reg,val) BSP_FLD32SET(reg, val,0, 3) 395 #define TMS570_DMM_DESTxREG2_BASEADDR(val) BSP_FLD32(val,18, 31) 396 #define TMS570_DMM_DESTxREG2_BASEADDR_GET(reg) BSP_FLD32GET(reg,18, 31) 397 #define TMS570_DMM_DESTxREG2_BASEADDR_SET(reg,val) BSP_FLD32SET(reg, val,18, 31) 400 #define TMS570_DMM_DESTxREG2_BLOCKADDR(val) BSP_FLD32(val,0, 17) 401 #define TMS570_DMM_DESTxREG2_BLOCKADDR_GET(reg) BSP_FLD32GET(reg,0, 17) 402 #define TMS570_DMM_DESTxREG2_BLOCKADDR_SET(reg,val) BSP_FLD32SET(reg, val,0, 17) 407 #define TMS570_DMM_DESTxBL2_BLOCKSIZE(val) BSP_FLD32(val,0, 3) 408 #define TMS570_DMM_DESTxBL2_BLOCKSIZE_GET(reg) BSP_FLD32GET(reg,0, 3) 409 #define TMS570_DMM_DESTxBL2_BLOCKSIZE_SET(reg,val) BSP_FLD32SET(reg, val,0, 3) 414 #define TMS570_DMM_PC0_ENAFUNC BSP_BIT32(18) 417 #define TMS570_DMM_PC0_DATAxFUNC(val) BSP_FLD32(val,2, 17) 418 #define TMS570_DMM_PC0_DATAxFUNC_GET(reg) BSP_FLD32GET(reg,2, 17) 419 #define TMS570_DMM_PC0_DATAxFUNC_SET(reg,val) BSP_FLD32SET(reg, val,2, 17) 422 #define TMS570_DMM_PC0_CLKFUNC BSP_BIT32(1) 425 #define TMS570_DMM_PC0_SYNCFUNC BSP_BIT32(0) 430 #define TMS570_DMM_PC1_ENADIR BSP_BIT32(18) 433 #define TMS570_DMM_PC1_DATAxDIR(val) BSP_FLD32(val,2, 17) 434 #define TMS570_DMM_PC1_DATAxDIR_GET(reg) BSP_FLD32GET(reg,2, 17) 435 #define TMS570_DMM_PC1_DATAxDIR_SET(reg,val) BSP_FLD32SET(reg, val,2, 17) 438 #define TMS570_DMM_PC1_CLKDIR BSP_BIT32(1) 441 #define TMS570_DMM_PC1_SYNCDIR BSP_BIT32(0) 446 #define TMS570_DMM_PC2_ENAIN BSP_BIT32(18) 449 #define TMS570_DMM_PC2_DATAxIN(val) BSP_FLD32(val,2, 17) 450 #define TMS570_DMM_PC2_DATAxIN_GET(reg) BSP_FLD32GET(reg,2, 17) 451 #define TMS570_DMM_PC2_DATAxIN_SET(reg,val) BSP_FLD32SET(reg, val,2, 17) 454 #define TMS570_DMM_PC2_CLKIN BSP_BIT32(1) 457 #define TMS570_DMM_PC2_SYNCIN BSP_BIT32(0) 462 #define TMS570_DMM_PC3_ENAOUT BSP_BIT32(18) 465 #define TMS570_DMM_PC3_DATAxOUT(val) BSP_FLD32(val,2, 17) 466 #define TMS570_DMM_PC3_DATAxOUT_GET(reg) BSP_FLD32GET(reg,2, 17) 467 #define TMS570_DMM_PC3_DATAxOUT_SET(reg,val) BSP_FLD32SET(reg, val,2, 17) 470 #define TMS570_DMM_PC3_CLKOUT BSP_BIT32(1) 473 #define TMS570_DMM_PC3_SYNCOUT BSP_BIT32(0) 478 #define TMS570_DMM_PC4_ENASET BSP_BIT32(18) 481 #define TMS570_DMM_PC4_DATAxSET(val) BSP_FLD32(val,2, 17) 482 #define TMS570_DMM_PC4_DATAxSET_GET(reg) BSP_FLD32GET(reg,2, 17) 483 #define TMS570_DMM_PC4_DATAxSET_SET(reg,val) BSP_FLD32SET(reg, val,2, 17) 486 #define TMS570_DMM_PC4_CLKSET BSP_BIT32(1) 489 #define TMS570_DMM_PC4_SYNCSET BSP_BIT32(0) 494 #define TMS570_DMM_PC5_ENACLR BSP_BIT32(18) 497 #define TMS570_DMM_PC5_DATAxCLR(val) BSP_FLD32(val,2, 17) 498 #define TMS570_DMM_PC5_DATAxCLR_GET(reg) BSP_FLD32GET(reg,2, 17) 499 #define TMS570_DMM_PC5_DATAxCLR_SET(reg,val) BSP_FLD32SET(reg, val,2, 17) 502 #define TMS570_DMM_PC5_CLKCLR BSP_BIT32(1) 505 #define TMS570_DMM_PC5_SYNCCLR BSP_BIT32(0) 510 #define TMS570_DMM_PC6_ENAPDR BSP_BIT32(18) 513 #define TMS570_DMM_PC6_DATAxPDR(val) BSP_FLD32(val,2, 17) 514 #define TMS570_DMM_PC6_DATAxPDR_GET(reg) BSP_FLD32GET(reg,2, 17) 515 #define TMS570_DMM_PC6_DATAxPDR_SET(reg,val) BSP_FLD32SET(reg, val,2, 17) 518 #define TMS570_DMM_PC6_CLKPDR BSP_BIT32(1) 521 #define TMS570_DMM_PC6_SYNCPDR BSP_BIT32(0) 526 #define TMS570_DMM_PC7_ENAPDIS BSP_BIT32(18) 529 #define TMS570_DMM_PC7_DATAxPDIS(val) BSP_FLD32(val,2, 17) 530 #define TMS570_DMM_PC7_DATAxPDIS_GET(reg) BSP_FLD32GET(reg,2, 17) 531 #define TMS570_DMM_PC7_DATAxPDIS_SET(reg,val) BSP_FLD32SET(reg, val,2, 17) 534 #define TMS570_DMM_PC7_CLKPDIS BSP_BIT32(1) 537 #define TMS570_DMM_PC7_SYNCPDIS BSP_BIT32(0) 542 #define TMS570_DMM_PC8_ENAPSEL BSP_BIT32(18) 545 #define TMS570_DMM_PC8_DATAxPSEL(val) BSP_FLD32(val,2, 17) 546 #define TMS570_DMM_PC8_DATAxPSEL_GET(reg) BSP_FLD32GET(reg,2, 17) 547 #define TMS570_DMM_PC8_DATAxPSEL_SET(reg,val) BSP_FLD32SET(reg, val,2, 17) 550 #define TMS570_DMM_PC8_CLKPSEL BSP_BIT32(1) 553 #define TMS570_DMM_PC8_SYNCPSEL BSP_BIT32(0)