|
RTEMS
5.1
|
39 #ifndef LIBBSP_ARM_TMS570_SCI 40 #define LIBBSP_ARM_TMS570_SCI 69 uint8_t reserved1 [48];
76 #define TMS570_SCI_GCR0_Reserved(val) BSP_FLD32(val,1, 31) 77 #define TMS570_SCI_GCR0_Reserved_GET(reg) BSP_FLD32GET(reg,1, 31) 78 #define TMS570_SCI_GCR0_Reserved_SET(reg,val) BSP_FLD32SET(reg, val,1, 31) 81 #define TMS570_SCI_GCR0_RESET BSP_BIT32(0) 86 #define TMS570_SCI_GCR1_TXENA BSP_BIT32(25) 89 #define TMS570_SCI_GCR1_RXENA BSP_BIT32(24) 92 #define TMS570_SCI_GCR1_CONT BSP_BIT32(17) 95 #define TMS570_SCI_GCR1_LOOP_BACK BSP_BIT32(16) 98 #define TMS570_SCI_GCR1_POWERDOWN BSP_BIT32(9) 101 #define TMS570_SCI_GCR1_SLEEP BSP_BIT32(8) 104 #define TMS570_SCI_GCR1_SWnRST BSP_BIT32(7) 107 #define TMS570_SCI_GCR1_CLOCK BSP_BIT32(5) 110 #define TMS570_SCI_GCR1_STOP BSP_BIT32(4) 113 #define TMS570_SCI_GCR1_PARITY BSP_BIT32(3) 116 #define TMS570_SCI_GCR1_PARITY_ENA BSP_BIT32(2) 119 #define TMS570_SCI_GCR1_TIMING_MODE BSP_BIT32(1) 122 #define TMS570_SCI_GCR1_COMM_MODE BSP_BIT32(0) 127 #define TMS570_SCI_GCR2_CC BSP_BIT32(17) 130 #define TMS570_SCI_GCR2_SC BSP_BIT32(16) 133 #define TMS570_SCI_GCR2_GEN_WU BSP_BIT32(8) 136 #define TMS570_SCI_GCR2_POWERDOWN BSP_BIT32(0) 141 #define TMS570_SCI_SETINT_SET_FE_INT BSP_BIT32(26) 144 #define TMS570_SCI_SETINT_SET_OE_INT BSP_BIT32(25) 147 #define TMS570_SCI_SETINT_SET_PE_INT BSP_BIT32(24) 150 #define TMS570_SCI_SETINT_SET_RX_DMA_ALL BSP_BIT32(18) 153 #define TMS570_SCI_SETINT_SET_RX_DMA BSP_BIT32(17) 156 #define TMS570_SCI_SETINT_SET_TX_DMA BSP_BIT32(16) 159 #define TMS570_SCI_SETINT_SET_RX_INT BSP_BIT32(9) 162 #define TMS570_SCI_SETINT_SET_TX_INT BSP_BIT32(8) 165 #define TMS570_SCI_SETINT_SET_WAKEUP_INT BSP_BIT32(1) 168 #define TMS570_SCI_SETINT_SET_BRKDT_INT BSP_BIT32(0) 173 #define TMS570_SCI_CLEARINT_CLR_FE_INT BSP_BIT32(26) 176 #define TMS570_SCI_CLEARINT_CLR_CE_INT BSP_BIT32(25) 179 #define TMS570_SCI_CLEARINT_CLR_PE_INT BSP_BIT32(24) 182 #define TMS570_SCI_CLEARINT_CLR_RX_DMA_ALL BSP_BIT32(18) 185 #define TMS570_SCI_CLEARINT_CLR_RX_DMA BSP_BIT32(17) 188 #define TMS570_SCI_CLEARINT_CLR_TX_DMA BSP_BIT32(16) 191 #define TMS570_SCI_CLEARINT_CLR_RX_INT BSP_BIT32(9) 194 #define TMS570_SCI_CLEARINT_CLR_TX_INT BSP_BIT32(8) 197 #define TMS570_SCI_CLEARINT_CLR_WAKEUP_INT BSP_BIT32(1) 200 #define TMS570_SCI_CLEARINT_CLR_BRKDT_INT BSP_BIT32(0) 205 #define TMS570_SCI_SETINTLVL_SET_FE_INT_LVL BSP_BIT32(26) 208 #define TMS570_SCI_SETINTLVL_SET_CE_INT_LVL BSP_BIT32(25) 211 #define TMS570_SCI_SETINTLVL_SET_PE_INT_LVL BSP_BIT32(24) 214 #define TMS570_SCI_SETINTLVL_SET_RX_DMA_ALL_LVL BSP_BIT32(18) 217 #define TMS570_SCI_SETINTLVL_SET_RX_INT_LVL BSP_BIT32(9) 220 #define TMS570_SCI_SETINTLVL_SET_TX_INT_LVL BSP_BIT32(8) 223 #define TMS570_SCI_SETINTLVL_SET_WAKEUP_INT_LVL BSP_BIT32(1) 226 #define TMS570_SCI_SETINTLVL_SET_BRKDT_INT_LVL BSP_BIT32(0) 231 #define TMS570_SCI_CLEARINTLVL_CLR_FE_INT_LVL BSP_BIT32(26) 234 #define TMS570_SCI_CLEARINTLVL_CLR_CE_INT_LVL BSP_BIT32(25) 237 #define TMS570_SCI_CLEARINTLVL_CLR_CE_INT_LVL BSP_BIT32(25) 240 #define TMS570_SCI_CLEARINTLVL_CLR_PE_INT_LVL BSP_BIT32(24) 243 #define TMS570_SCI_CLEARINTLVL_CLR_RX_DMA_ALL_LVL BSP_BIT32(18) 246 #define TMS570_SCI_CLEARINTLVL_CLR_RX_INT_LVL BSP_BIT32(9) 249 #define TMS570_SCI_CLEARINTLVL_8 BSP_BIT32(8) 252 #define TMS570_SCI_CLEARINTLVL_CLR_WAKEUP_INT_LVL BSP_BIT32(1) 255 #define TMS570_SCI_CLEARINTLVL_CLR_BRKDT_INT_LVL BSP_BIT32(0) 260 #define TMS570_SCI_FLR_FE BSP_BIT32(26) 263 #define TMS570_SCI_FLR_OE BSP_BIT32(25) 266 #define TMS570_SCI_FLR_PE BSP_BIT32(24) 269 #define TMS570_SCI_FLR_RXWAKE BSP_BIT32(12) 272 #define TMS570_SCI_FLR_TX_EMPTY BSP_BIT32(11) 275 #define TMS570_SCI_FLR_TXWAKE BSP_BIT32(10) 278 #define TMS570_SCI_FLR_RXRDY BSP_BIT32(9) 281 #define TMS570_SCI_FLR_TXRDY BSP_BIT32(8) 284 #define TMS570_SCI_FLR_BUSY BSP_BIT32(3) 287 #define TMS570_SCI_FLR_IDLE BSP_BIT32(2) 290 #define TMS570_SCI_FLR_WAKEUP BSP_BIT32(1) 293 #define TMS570_SCI_FLR_BRKDT BSP_BIT32(0) 298 #define TMS570_SCI_INTVECT0_INVECT0(val) BSP_FLD32(val,0, 3) 299 #define TMS570_SCI_INTVECT0_INVECT0_GET(reg) BSP_FLD32GET(reg,0, 3) 300 #define TMS570_SCI_INTVECT0_INVECT0_SET(reg,val) BSP_FLD32SET(reg, val,0, 3) 305 #define TMS570_SCI_INTVECT1_INVECT1(val) BSP_FLD32(val,0, 3) 306 #define TMS570_SCI_INTVECT1_INVECT1_GET(reg) BSP_FLD32GET(reg,0, 3) 307 #define TMS570_SCI_INTVECT1_INVECT1_SET(reg,val) BSP_FLD32SET(reg, val,0, 3) 312 #define TMS570_SCI_FORMAT_CHAR(val) BSP_FLD32(val,0, 2) 313 #define TMS570_SCI_FORMAT_CHAR_GET(reg) BSP_FLD32GET(reg,0, 2) 314 #define TMS570_SCI_FORMAT_CHAR_SET(reg,val) BSP_FLD32SET(reg, val,0, 2) 319 #define TMS570_SCI_BRS_BAUD(val) BSP_FLD32(val,0, 23) 320 #define TMS570_SCI_BRS_BAUD_GET(reg) BSP_FLD32GET(reg,0, 23) 321 #define TMS570_SCI_BRS_BAUD_SET(reg,val) BSP_FLD32SET(reg, val,0, 23) 326 #define TMS570_SCI_ED_ED(val) BSP_FLD32(val,0, 7) 327 #define TMS570_SCI_ED_ED_GET(reg) BSP_FLD32GET(reg,0, 7) 328 #define TMS570_SCI_ED_ED_SET(reg,val) BSP_FLD32SET(reg, val,0, 7) 333 #define TMS570_SCI_RD_RD(val) BSP_FLD32(val,0, 7) 334 #define TMS570_SCI_RD_RD_GET(reg) BSP_FLD32GET(reg,0, 7) 335 #define TMS570_SCI_RD_RD_SET(reg,val) BSP_FLD32SET(reg, val,0, 7) 340 #define TMS570_SCI_TD_TD(val) BSP_FLD32(val,0, 7) 341 #define TMS570_SCI_TD_TD_GET(reg) BSP_FLD32GET(reg,0, 7) 342 #define TMS570_SCI_TD_TD_SET(reg,val) BSP_FLD32SET(reg, val,0, 7) 347 #define TMS570_SCI_PIO0_TX_FUNC BSP_BIT32(2) 350 #define TMS570_SCI_PIO0_RX_FUNC BSP_BIT32(1) 355 #define TMS570_SCI_PIO1_TX_DIR BSP_BIT32(2) 358 #define TMS570_SCI_PIO1_RX_DIR BSP_BIT32(1) 363 #define TMS570_SCI_PIO2_TX_IN BSP_BIT32(2) 366 #define TMS570_SCI_PIO2_RX_IN BSP_BIT32(1) 371 #define TMS570_SCI_PIO3_TX_OUT BSP_BIT32(2) 374 #define TMS570_SCI_PIO3_RX_OUT BSP_BIT32(1) 379 #define TMS570_SCI_PIO4_TX_SET BSP_BIT32(2) 382 #define TMS570_SCI_PIO4_RX_SET BSP_BIT32(1) 387 #define TMS570_SCI_PIO5_TX_CLR BSP_BIT32(2) 390 #define TMS570_SCI_PIO5_RX_CLR BSP_BIT32(1) 395 #define TMS570_SCI_PIO6_TX_PDR BSP_BIT32(2) 398 #define TMS570_SCI_PIO6_RX_PDR BSP_BIT32(1) 403 #define TMS570_SCI_PIO7_TX_PD BSP_BIT32(2) 406 #define TMS570_SCI_PIO7_RX_PD BSP_BIT32(1) 411 #define TMS570_SCI_PIO8_TX_PSL BSP_BIT32(2) 414 #define TMS570_SCI_PIO8_RX_PSL BSP_BIT32(1) 419 #define TMS570_SCI_IODFTCTRL_FEN BSP_BIT32(26) 422 #define TMS570_SCI_IODFTCTRL_PEN BSP_BIT32(25) 425 #define TMS570_SCI_IODFTCTRL_BRKD_TENA BSP_BIT32(24) 428 #define TMS570_SCI_IODFTCTRL_PIN_SAMPLE_MASK(val) BSP_FLD32(val,19, 20) 429 #define TMS570_SCI_IODFTCTRL_PIN_SAMPLE_MASK_GET(reg) BSP_FLD32GET(reg,19, 20) 430 #define TMS570_SCI_IODFTCTRL_PIN_SAMPLE_MASK_SET(reg,val) BSP_FLD32SET(reg, val,19, 20) 433 #define TMS570_SCI_IODFTCTRL_TX_SHIFT(val) BSP_FLD32(val,16, 18) 434 #define TMS570_SCI_IODFTCTRL_TX_SHIFT_GET(reg) BSP_FLD32GET(reg,16, 18) 435 #define TMS570_SCI_IODFTCTRL_TX_SHIFT_SET(reg,val) BSP_FLD32SET(reg, val,16, 18) 438 #define TMS570_SCI_IODFTCTRL_IODFTENA(val) BSP_FLD32(val,8, 11) 439 #define TMS570_SCI_IODFTCTRL_IODFTENA_GET(reg) BSP_FLD32GET(reg,8, 11) 440 #define TMS570_SCI_IODFTCTRL_IODFTENA_SET(reg,val) BSP_FLD32SET(reg, val,8, 11) 443 #define TMS570_SCI_IODFTCTRL_LPBENA BSP_BIT32(1) 446 #define TMS570_SCI_IODFTCTRL_RXPENA BSP_BIT32(0)